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
 

 

FTP of GDG generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Wed Nov 15, 2006 10:54 am    Post subject: FTP of GDG generation
Reply with quote

For the first time I have a requirement to generate an FTP PUT statement where in the input file is a GDG generation.
Kindly advice if the following PUT statement format is legal:

PUT 'A.B.C.D(+1)' ABC111506.TXT

Wherein A.B.C.D refers to the GDG base entry.
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 11:02 am    Post subject: Re: FTP of GDG generation
Reply with quote

Where is the generation getting created. Could you put some skeleton.
Quote:
PUT 'A.B.C.D(+1)' ABC111506.TXT

Should be (+0).
Back to top
View user's profile Send private message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Wed Nov 15, 2006 11:40 am    Post subject: Re: FTP of GDG generation
Reply with quote

The generation (+1) is getting created in the same job a few steps above the step where it has to get FTP'ed.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 1:34 pm    Post subject: Re: FTP of GDG generation
Reply with quote

Quote:
The generation (+1) is getting created in the same job a few steps above the step where it has to get FTP'ed.

But in FTP step it should be coded as (+0)... I haven't tested... So probably you may want to put a test GDG and check the same.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Nov 15, 2006 4:26 pm    Post subject: Re: FTP of GDG generation
Reply with quote

priyesh.agrawal is right that it should be (0 or +0). However, why not make it easier and assign the current generation to a DD statement, and code a PUT for the DD:

put //DD:DDNAME target_filename

Otherwise, you may want to read about GDG support for FTP:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/4.8?DT=20050708142126
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am
No new posts Report generation senthamizh DFSORT/ICETOOL 1 Sat Jun 20, 2015 2:01 pm
No new posts Reading 0th Generation of GDG in REX S0C7 CLIST & REXX 8 Sat May 31, 2014 3:29 am


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