Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP a file from Mainframe to Text with append Current DATE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP a file from Mainframe to Text with append Current DATE
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Jun 09, 2009 4:26 pm    Post subject: Reply to: FTP a file from Mainframe to Text with append Curr
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
http://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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us