View previous topic :: View next topic
|
Author |
Message |
malleshD
New User
Joined: 26 May 2008 Posts: 1 Location: mumbai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
|