IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP the file with dated qualifier


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Jun 10, 2010 2:38 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top