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

FTP with Date and Time Qualifiers


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Tue Mar 18, 2008 1:28 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Mar 18, 2008 1:35 pm
Reply with quote

A few previous topics I found on the same subject:

www.ibmmainframes.com/viewtopic.php?t=18244
www.ibmmainframes.com/viewtopic.php?t=17043
www.ibmmainframes.com/viewtopic.php?t=8837
www.ibmmainframes.com/viewtopic.php?t=4990
www.ibmmainframes.com/viewtopic.php?t=26945
www.ibmmainframes.com/viewtopic.php?t=19330
www.ibmmainframes.com/viewtopic.php?t=13914
www.ibmmainframes.com/viewtopic.php?t=6934
Back to top
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Tue Mar 18, 2008 1:58 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Mar 18, 2008 4:15 pm
Reply with quote

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
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Tue Mar 18, 2008 5:00 pm
Reply with quote

Hi Superk,

THANKS A LOT for the reply, it is very clear now...


Thank you..

Venkat
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top