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

FTP a file from Mainframe to Text with append Current DATE


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

New User


Joined: 26 May 2008
Posts: 1
Location: mumbai

PostPosted: Tue Jun 09, 2009 4:18 pm
Reply with quote

Hi,
I am trying to FTP a file from Mainframe to LAN Drive in .TXT format.

The download TEXT file should use Current DATE as suffix to the file names to avoid overwriting the previous days' files.

How can I populate .txt file like 'TESTFILE-MMDDYY.txt' (current date of 060909).

The JCL for FTP ( without DATE append to TEST file).

//***********************************************************
//FTPSTP EXEC PGM=FTP,
// PARM='xx.xx.xx.xx (EXIT TIMEOUT 200'
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INPUT DD *
Userid
password
ascii
cd /LANDRIVE/xyz

PUT 'TEST.FILE.MAINFRAME' TESTFILE.TXT
QUIT

//***********************************************************
Please let us know , what needs to be changed in above JCL to add CURRENT DATE to text file.

Thanks in advance..
Mallesh

[/b]
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Jun 09, 2009 4:26 pm
Reply with quote

did You care to search the forums with, for example, "FTP DATE"
( checking the box search for all terms )

there are quite a number of topics dealing with the issue,
I just picked one at random
www.ibmmainframes.com/viewtopic.php?t=18244

anyway the trick is to generate dynamically the FTP control statements
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 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top