Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP with Date and Time Qualifiers

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP with Date and Time Qualifiers
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

Moderator Team Head


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

PostPosted: Tue Mar 18, 2008 1:35 pm    Post subject: Reply to: Control Card
Reply with quote

A few previous topics I found on the same subject:

http://www.ibmmainframes.com/viewtopic.php?t=18244
http://www.ibmmainframes.com/viewtopic.php?t=17043
http://www.ibmmainframes.com/viewtopic.php?t=8837
http://www.ibmmainframes.com/viewtopic.php?t=4990
http://www.ibmmainframes.com/viewtopic.php?t=26945
http://www.ibmmainframes.com/viewtopic.php?t=19330
http://www.ibmmainframes.com/viewtopic.php?t=13914
http://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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Mar 18, 2008 4:15 pm    Post subject: Reply to: FTP with Date and Time Qualifiers
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us