Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Eliminate dups and unwanted records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Eliminate dups and unwanted records
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 2:57 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jun 07, 2007 2:59 pm    Post subject:
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    Post subject: Re: Eliminate dups and unwanted records
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    Post subject: Re: Eliminate dups and unwanted records
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us