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
 

 

Adding date to filename when FTPing from mainframe to LAN

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

New User


Joined: 08 Feb 2006
Posts: 1

PostPosted: Wed Feb 08, 2006 9:21 am    Post subject: Adding date to filename when FTPing from mainframe to LAN
Reply with quote

Hi,

I need to upload a file daily from Mainframe to LAN . The same filename is being used as of now. But I need to add a date suffix to distinguish between different dates file.

How do I do this? I have a control card in the JCL having the PUT command

PUT 'mainframe dataset' 'filename'

Now the date must get dynamically appended to this filename when the job runs each day

can anyone pls let me know how to do this
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 Feb 08, 2006 4:17 pm    Post subject: Re: Adding date to filename when FTPing from mainframe to LA
Reply with quote

I'm not exactly sure what you're looking for here. You know that you'll need to dynamically create the FTP "put" statement, either in the application or in the job, with the end result being either:

>put 'mainframe dataset' filename.datevalue

or, my personal preference:

>put //DD:DDNAME filename.datevalue

Your post doesn't mention what the date value is. The current system date? The date of the data?

For a quick and easy datestamp using the current system date, I'd opt to use the TCP/IP symbol translator utility EZACFSM1, or use a simple SORT jobstep, a REXX exec, a CLIST, or a program.
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 FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 1 Thu Mar 23, 2017 5:12 am
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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