IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Eliminate dups and unwanted records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 2:52 pm
Reply with quote

Good Afternoon:

I have stumbled upon a problem. The situation is I am trying to list all the datasets for a hlq using LISTCAT LVL(HLQ) ALL. Now this comes up with all the dataset characteristics. Since I dont need the dataset characteristics, I thought I would sort the outout(outcome of LISTCAT) and then to use OMIT or INCLUDE condition to have dataset names (displayed against NONVSAM word) alone.

I am displaying a partial output for your reference.

1IDCAMS SYSTEM SERVICES
0
LISTCAT LVL(U142914) ALL
0NONVSAM ------- U142914.COPY
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2007.158
RELEASE----------------2 EXPIRATION------0000.000
ACCOUNT-INFO-----------------------------------(NULL)
SMSDATA
STORAGECLASS -----PUBLIC MANAGEMENTCLASS---(NULL)
DATACLASS --------(NULL) LBACKUP ---0000.000.0000
VOLUMES

Please let me know your thoughts on this.

Thanks very much

Vik Rajagopalan
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 2:57 pm
Reply with quote

Have you tried the LISTCAT without the ALL parameter ???
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jun 07, 2007 2:59 pm
Reply with quote

There probably better way to get a list of DSNs, but....
Which line/lines do you want to keep and what part of those line?
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 3:12 pm
Reply with quote

Thanks for the responses.

Bill, There might be a lot of ways and there is no denying of that. I just used the Listcat command coz I thought it was something I knew. Coming back to what you asked for, I would like to see the datasets alone (for instance, the sample that was posted has a dataset name against a NONVSAM verb, howerver please keep in mind that there might be a possibility of the VSAM file being in the DASD so to have an OMIT verb use NONVSAM in the Constant field migt not be a right for me.

Expat, The intent is to have all the datasets corresponding to the qualifier so if I were to remove that would that not be a problem?
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 3:20 pm
Reply with quote

Expat, In my haste I sent out the response without checking out what you said.

I removed ALL verb and guess what, the listing seems much nicer now. But I still have a problem, I need to do away with the IDCAMS and the IN-CAT thingy.

Lemme check if the OMIT verb can be used and I will continue the research. Thanks so much for your help.

1IDCAMS SYSTEM SERVICES
0
LISTCAT LVL(U142914)
0NONVSAM ------- U142914.COPY
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
0NONVSAM ------- U142914.FILE.TEXT
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
0NONVSAM ------- U142914.ISPF.ISPPROF
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
0NONVSAM ------- U142914.LIST.DATASETS
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
0NONVSAM ------- U142914.PDS
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
0NONVSAM ------- U142914.SPFLOG1.LIST
IN-CAT --- CATALOG.CTSUSER.VZ16CAT
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
Search our Forums:

Back to Top