View previous topic :: View next topic
|
Author |
Message |
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
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
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, 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
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Hi Superk,
THANKS A LOT for the reply, it is very clear now...
Thank you..
Venkat |
|
Back to top |
|
|
|