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

Sort card to OGET a file from UNIX HFS to MVS dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Sat Oct 19, 2013 8:26 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

PostPosted: Sat Oct 19, 2013 9:52 pm
Reply with quote

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
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Mon Oct 21, 2013 9:50 pm
Reply with quote

Thanks Bill,

I tried this today again and this worked now. Also SEQNUM helped me to change the generation.
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 rexx pgm to create multiple ps file IBM Tools 7
No new posts Remove commas from specific positions... DFSORT/ICETOOL 10
No new posts how to list the number of backup data... JCL & VSAM 3
No new posts Uploading from desktop, a CSV file, s... DB2 2
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
Search our Forums:

Back to Top