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

Need to append date time stamp to destination file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 161
Location: South Africa

PostPosted: Mon Mar 29, 2010 11:58 pm
Reply with quote

Hi,
I have a ftp statement i.e.
PUT 'TEST.BACKUP(0)' TESTPC

My requirement is whenever we send the file then the destination file name should be appended with current date time stamp i.e. the destination file name should be TESTPC.AYYMMDD.BHHMMSS.
Here A and B are hard-coded values.

Regards,
Abhijit.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 30, 2010 12:13 am
Reply with quote

FTP does not have any method to manipulate file names to add dates. You will need to create the FTP parameter in another way and pass the parameter to the FTP step. This has been discussed many, many times on this forum so a forum search will give you several starting points.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Mar 30, 2010 5:34 am
Reply with quote

I posted a response to a similar question here.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top