Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us