View previous topic :: View next topic
|
Author |
Message |
G1NXU6T
New User
Joined: 22 Jun 2009 Posts: 11 Location: India
|
|
|
|
hi
i am transferring a file from mainframes to a share drive by FTP step .
I want that current date should be appended to my file name when it reach the destination.
FTP card i am using is as follows
//CNBILD10 EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD DSN=IBM045.BATCH.PROCLIB(FTPPARM),
// DISP=SHR
//*
where IBM045.BATCH.PROCLIB(FTPPARM), has following values .
ip
user name
password
put 'ABC.TEST.DATA' ABC_Date.txt
quit.
I want my file should look like ABC_20111212.txt
where 20111212 is 12/12/2011 Current system date.
Could u please help me how can i achieve that.
I have read few earlier post on this forum, but none of then actually worked.
So please if anyone has worked on this problem earlier please post the solution. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You need something to generate the output file name either dynamically, or to speak with your scheduling people regarding the scheduler date variables used with instream cards. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
G1NXU6T
New User
Joined: 22 Jun 2009 Posts: 11 Location: India
|
|
|
|
Thanks Expat and Superk.
SuperK your method finally worked for me, I was making a mistake.
While creating the temporary file, the file is generating with some Junk values at the end, which i was ignoring and because of which my FTP failed. I created the Catalog file instead of temp and found the problem, fixed it and it worked.
Finally it worked for me .. Thanks |
|
Back to top |
|
|
|