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 the file with dated qualifier

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Thu Jun 10, 2010 2:11 pm    Post subject: FTP the file with dated qualifier
Reply with quote

Hi,

Is there anyway to transfer the file to mainframe with dated qualifier.

Like:

lcd 'N123456.'
get PONS.txt PONS.DATA (REPLACE

I will get the mainframe file as N123456.PONS.DATA
I want to get it as PONS.DATA.D010110 (DMMDDYY format)

We can achieve this by copying, but while FTPing itself can we able to achieve this.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Thu Jun 10, 2010 2:38 pm    Post subject: Reply to: FTP the file with dated qualifier
Reply with quote

You'll either have to use a program to create the proper get statement with the desired date value, or you'll need to include the dataset name with the date in your JCL, controlled by an external control (such as your job scheduling system perhaps?).

If you used a SET statement in the JCL to set the date values, then you could do this:

//JOBNAME JOB ...
//*
// SET DMMDDYY=D010110
//*
...
//FTP EXEC PGM=FTP,...
...
//FTPFILE DD DSN=PONS.DATA.&DMMDDYY,
// DISP=(,CATLG,DELETE),UNIT=...
//INPUT DD *
...
get PONS.txt //DD:FTPFILE
...

You could use some of the examples shown here to build either a get or put command.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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