Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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 How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us