Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10375
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us