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

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
No new posts Date format correction using dfsort DFSORT/ICETOOL 3
No new posts Sorting Date Field DFSORT/ICETOOL 4
Search our Forums:


Back to Top