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 - Timestamp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vinay249

New User


Joined: 18 Apr 2007
Posts: 13
Location: Bangalore

PostPosted: Sat Apr 04, 2009 3:41 pm    Post subject: FTP - Timestamp
Reply with quote

Hi,

I have a requirment where I need the mainframedataset creation timestamp to be displayed in the Unix box after the FTP

For eg : If the mainframedataset " XX. ABC " has created from the 'X' job on 20090403.001020, the same timestamp should display at UNIX end after doing the FTP.
And If we FTP the same file again on the next day or after twoday, the timestamp(20090403.001020) that it displays should remain same.

The below code we use currently for FTPing the file

ABC 1111
DEF\GHI
DART3LFLT
PUT 'XX. ABC.G1' TARGET.FEED
PUT 'XX.ABC.TRIGGER.DATASET' TARGET_TRANS.TRIGGER
CLOSE
QUIT

Is there any code which we can fit in the above lines, so that it display the dataset creation timestamp at the Unix end.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Sat Apr 04, 2009 3:56 pm    Post subject: Reply to: FTP - Timestamp
Reply with quote

not without reviewing Your process and doing some <programming>

what do You mean by
Quote:
displayed in the Unix box after the FTP


the unix box might be unattended and ....

the best thing would be to store the unix file with a datestamp
Quote:
PUT 'XX. ABC.G1' TARGET.FEED.<date>

and not ftp an already transmitted dataset

investigate the use of the rexx ftp api
http://www.ibmmainframes.com/viewtopic.php?t=39335&highlight=ftp+api

but IIRC using the LISTDSI rexx external function You get only the date
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 Converting EBCDIC to Unicode (TimeStamp) muralikrishnan_new COBOL Programming 2 Mon Jul 25, 2016 10:42 pm
No new posts Convert Timestamp Value mrdinesh DFSORT/ICETOOL 7 Thu May 05, 2016 6:01 pm
No new posts Comparing timestamp in Synscort l.nethaji SYNCSORT 13 Wed Jan 20, 2016 4:47 pm
No new posts pass numeric value of length 14 to ti... Ralph Zbrog Java & MQSeries 4 Fri Jan 15, 2016 3:20 pm
No new posts Pick a record from a file based on ti... Mani453 COBOL Programming 4 Thu Jan 07, 2016 6:18 am

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