View previous topic :: View next topic
|
Author |
Message |
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Hi
I have a requirement where in i am receiving the 1,2 or n files over unix HFS.
I have listed these file names in to MVS dataset using SORT. Now in next step i am creating a SORT card which is using the previous dataset so that the new file will have below contents. The number of OGET commands needs to be created for all file names as i have in the previous step.
Example-
My sortin file contents looks like-
Code: |
XYZ_2013-10-19.zip
XYZ_2013-10-20.zip |
Using this I have to create like below-
Code: |
OGET ‘/abc/unix/ XYZ_2013-10-19.zip’ -
‘xdscm.mvs.filename.g0001v00’
OGET ‘/abc/unix/ XYZ_2013-10-20.zip’ -
‘xdscm.mvs.filename.g0002v00’ |
Note- The number of file names can vary it is not going to be fixed like in this case it is 2. It can be 1 or 3 or so on..
Tried with SQZ command but do not know how single quote ' will be considered which is after OGET and also used at several places too.
Also How can I increase the generation number here? like for filename1 - g0001 and so on....
Thanks
Code'd |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Is that really the output you want?
Can you show what you did try?
Have you tried a SEQNUM for your generation generation? |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Thanks Bill,
I tried this today again and this worked now. Also SEQNUM helped me to change the generation. |
|
Back to top |
|
|
|