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
 

 

How to append date to a filename in JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: How to append date to a filename in JCL.
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

Site Director


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

PostPosted: Thu Aug 07, 2008 5:41 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Aug 07, 2008 8:31 am    Post subject: Reply to: How to append date to a filename in JCL.
Reply with quote

See any of these:

http://www.ibmmainframes.com/viewtopic.php?t=29170
http://www.ibmmainframes.com/viewtopic.php?t=18244
http://www.ibmmainframes.com/viewtopic.php?t=8837
http://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    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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am


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