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

Adding date to filename when FTPing from mainframe to LAN


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Feb 08, 2006 4:17 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
Search our Forums:

Back to Top