Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7314

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
No new posts Will this code extract 1 byte from fi... pkmurali CLIST & REXX 8 Sat Nov 10, 2018 11:13 pm
No new posts Mainframe + Card domain exp. req. 5-6... capricorn Mainframe Jobs 0 Wed Oct 24, 2018 5:10 pm
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts Get line number where cursor is from ... satish.ms10 CLIST & REXX 3 Wed Oct 24, 2018 12:23 am
No new posts Convert VB file to FB plus special fo... cz016m SYNCSORT 15 Fri Oct 19, 2018 7:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us