|
|
| Author |
Message |
venktv
Active User
Joined: 29 Mar 2006 Posts: 54 Location: Bangalore
|
|
|
|
Hi All,
I am FTPing a file from MVS to NT server, the receiving file name should be in the below given format:
AKDIP.ESW.OR.<date.time>
I am planning to code a control card, with the folllowing info:
ip address
id
pw
ascii
path
put 'BELLDS.DS26460A.FTP' AKDIP.ESW.OR.<date.time>
QUIT
How to get the current date and tme into this file name. I want to put the current date and time as last qualifiers.
Venkat |
|
| Back to top |
|
 |
References
|
|
 |
Moved: Tue Mar 18, 2008 1:30 pm by superk From Off Topics to Other Mainframe Topics |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3258 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
venktv
Active User
Joined: 29 Mar 2006 Posts: 54 Location: Bangalore
|
|
|
|
Hi Kevin,
Thanks very much for the reply, I didn't understand fully whatever is explained in the first link, could you please put that information into points, it will help us to understand the things better...
Thanks
Venkat |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3258 Location: Charlotte,NC USA
|
|
|
|
Step1. Execute the Symbol Translator Program to create the FTP "put" statement with a value for current date & time:
| Code: |
//STEP1 EXEC PGM=EZACFSM1
//SYSIN DD *
put 'BELLDS.DS26460A.FTP' AKDIP.ESW.OR.&LYYMMDD.&LHHMMSS
qui
/*
//SYSOUT DD DSN=&&T,DISP=(,PASS),UNIT=VIO,
// RECFM=FB,LRECL=80
//*
|
Step2. Execute FTP with the "put" statement from Step1.
| Code: |
//STEP2 EXEC PGM=FTP,PARM='whatever'
//OUTPUT DD SYSOUT=*
//INPUT DD *
ip address
id
pw
ascii
path
/*
// DD DSN=&&T,DISP=(OLD,DELETE)
//*
|
|
|
| Back to top |
|
 |
venktv
Active User
Joined: 29 Mar 2006 Posts: 54 Location: Bangalore
|
|
|
|
Hi Superk,
THANKS A LOT for the reply, it is very clear now...
Thank you..
Venkat |
|
| Back to top |
|
 |
|
|