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

how to catalog the list of datasets to a single dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepa Natarajan

New User


Joined: 06 Jan 2008
Posts: 11
Location: India

PostPosted: Thu Sep 25, 2008 4:36 pm
Reply with quote

hi,

i want to catalog a list of datasets into a single dataset.
for example: my files would be of the naming convention:
"HLQ.MY.DATASET.MMMDDYYA.COL"
"HLQ.MY.DATASET.MMMDDYYB.COL"

So, when i give "HLQ.MY.DATASET.*" all the datasets that start with this name should be written to another dataset using JCL.

Note: I cannot use REXX.

Thank you,
Deepa
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 25, 2008 4:48 pm
Reply with quote

It is not at all clear what you want to do. Please explain your requirement fully.
Back to top
View user's profile Send private message
hchinnam

New User


Joined: 18 Oct 2006
Posts: 73

PostPosted: Thu Sep 25, 2008 5:01 pm
Reply with quote

Why do you want to do it in JCL.

There is a command called SAVE, which might worth trying.
Back to top
View user's profile Send private message
Deepa Natarajan

New User


Joined: 06 Jan 2008
Posts: 11
Location: India

PostPosted: Thu Sep 25, 2008 5:20 pm
Reply with quote

using JCL, i want to copy as set of datasets that start with a particular name.

for eg: if ig give, HLQ.MMM.MYDATA.* , then all the datasets that start with HLQ.MMM.MYDATA.* should get copied to a PS file.

i should do this in JCL for a daily job. please let me know if this is still unclear!
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 25, 2008 5:30 pm
Reply with quote

Have you looked at IDCAMS LISTCAT ?

And why can't you use REXX
Take a look HERE - it's one I've written earlier
Back to top
View user's profile Send private message
Deepa Natarajan

New User


Joined: 06 Jan 2008
Posts: 11
Location: India

PostPosted: Thu Sep 25, 2008 5:42 pm
Reply with quote

I saw your post. but unfortunately, I can't use REXX in this particular JCL code. (My client says so).

I tried IDCAMS LISTCAT, but for that I have to give the entire file name!!

is there no way other than REXX?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 25, 2008 5:43 pm
Reply with quote

Deepa Natarajan wrote:

i tried IDCAMS LISTCAT, but for tat v have to give the entire file name!!

Well, your client is crazy !!!

Take a good long read of the IDCAMS manual and pay particular attention to the LEVEL parameter.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 25, 2008 6:06 pm
Reply with quote

Why can't you code a (non-REXX) program and use the ISPF LMDLIST Service to create a list of datasets based on a specified wildcard? There was a recent topic here.
Back to top
View user's profile Send private message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Fri Oct 10, 2008 1:18 pm
Reply with quote

Deepa Natarajan wrote:
hi,

i want to catalog a list of datasets into a single dataset.
for example: my files would be of the naming convention:
"HLQ.MY.DATASET.MMMDDYYA.COL"
"HLQ.MY.DATASET.MMMDDYYB.COL"

So, when i give "HLQ.MY.DATASET.*" all the datasets that start with this name should be written to another dataset using JCL.

Note: I cannot use REXX.

Thank you,
Deepa


Hi Deepa,

You can use the following JCL, surely it will help you.

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=Give the output dataset name,
// DISP=SHR
//SYSIN DD *
LISTCAT LVL(HLQ.MY.DATASET) NONVSAM
/*
Thats all. Instead of NONVSAM you can give ALL keyword also. It will list all the dataset name with this same qualifier. I used this JCL. This is simple and best.


Thanks,
Santha.
Back to top
View user's profile Send private message
Deepa Natarajan

New User


Joined: 06 Jan 2008
Posts: 11
Location: India

PostPosted: Fri Oct 10, 2008 3:57 pm
Reply with quote

Thanks a lot Santha :-)

Thanks,
Deepa
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top