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: 10903
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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Techm mainframe deveoper 6 to 12 year... Mainframe Jobs 0
Search our Forums:


Back to Top