View previous topic :: View next topic
|
Author |
Message |
Deepa Natarajan
New User
Joined: 06 Jan 2008 Posts: 11 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It is not at all clear what you want to do. Please explain your requirement fully. |
|
Back to top |
|
|
hchinnam
New User
Joined: 18 Oct 2006 Posts: 73
|
|
|
|
Why do you want to do it in JCL.
There is a command called SAVE, which might worth trying. |
|
Back to top |
|
|
Deepa Natarajan
New User
Joined: 06 Jan 2008 Posts: 11 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Deepa Natarajan
New User
Joined: 06 Jan 2008 Posts: 11 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
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 |
|
|
Deepa Natarajan
New User
Joined: 06 Jan 2008 Posts: 11 Location: India
|
|
|
|
Thanks a lot Santha :-)
Thanks,
Deepa |
|
Back to top |
|
|
|