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: 4649
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 Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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