catsearch, list of aliases?

Discussion of Dovetailed Technologies Dataset Pipes tools
Post Reply
john.mckown
Posts: 47
Joined: Tue Jun 12, 2007 2:46 pm

catsearch, list of aliases?

Post by john.mckown » Mon Aug 27, 2012 12:56 pm

I could really use some way, perhaps using catsearch, to list ALIAS entries in a given catalog. or for a given catalog. I am not sure, but this information may be in the ASSOCSYM field for a catlog entry.

What I want to do is list all of the datasets for TSO users. I envision this doing something like, assuming the returned information is ALIAS CATALOG.NAME:

Code: Select all

catsearch -t  -???? master.catalog |\
awk '$1 ~ /^TSO[[:digit:]]{4}$/ {print $1;}' |\
while read i;do catsearch -l  "$i.**" ; done

D#H
Posts: 4
Joined: Mon Feb 22, 2016 4:00 pm

Re: catsearch, list of aliases?

Post by D#H » Mon Oct 02, 2017 3:38 pm

I have found that the catsearch with the -eX option returns alias entries. For example:
catsearch -l -eX SYS1.COZ.**
Volume Referred Ext Tracks Used Recfm Lrecl BlkSz Dsorg Dsname
ALAI SYS1.COZ.$INSTALL
ALAI SYS1.COZ.LOADLIB
ALAI SYS1.COZ
.....................................................................................
and
catsearch -t -eX SYS1.COZ.**
........ALAI.SYS1.COZ.$INSTALL
........ALAI.SYS1.COZ.LOADLIB
........ALAI.SYS1.COZ
.....................................................................................

Post Reply