Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8646
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 add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts eliminate dups in VB file anatol DFSORT/ICETOOL 6 Tue Feb 13, 2018 2:59 am
No new posts Need all records with high key kalidasvs SYNCSORT 15 Fri Feb 09, 2018 10:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us