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

FTP of GDG generation


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 11:02 am
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 1:34 pm
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

Global Moderator


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

PostPosted: Wed Nov 15, 2006 4:26 pm
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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
Search our Forums:

Back to Top