Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 81
Location: bangalore

PostPosted: Sat Oct 19, 2013 8:26 pm    Post subject: Sort card to OGET a file from UNIX HFS to MVS dataset
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Oct 19, 2013 9:52 pm    Post subject: Reply to: Sort card to OGET a file from UNIX HFS to MVS data
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: 81
Location: bangalore

PostPosted: Mon Oct 21, 2013 9:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us