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

How to append date to a filename in JCL.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Thu Aug 07, 2008 4:04 am
Reply with quote

Hi,

I have to FTP a file to server.
File name should be appended with current date.
Coupld you please let me know how we can do that in JCl.
Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 07, 2008 5:41 am
Reply with quote

Hello,

Please post your ftp jcl and transfer control statements.

What should/will happen when 2 transmissions must be run "today" (i.e. the run did not happen yesterday)? What happens when the remote server is down? What happens when the transfer abends?

As a suggestion, you might consider "pull"ing the file from the server instead of "push"ing the file from the mainframe. If the process is initiated from the server, retries and file renaming would all be local to the server and not part of some manframe process.

If the ftp must run on the mainframe, you could create the ftp control statements (one of which would name the destinaton file) in a step before the ftp step.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Aug 07, 2008 8:31 am
Reply with quote

See any of these:

www.ibmmainframes.com/viewtopic.php?t=29170
www.ibmmainframes.com/viewtopic.php?t=18244
www.ibmmainframes.com/viewtopic.php?t=8837
www.ibmmainframes.com/viewtopic.php?t=4990
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top