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

FTP - Timestamp


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Apr 04, 2009 3:56 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Timestamp difference and its average ... DB2 11
No new posts To get previous month from current ti... SYNCSORT 7
No new posts Calculate with timestamp PL/I & Assembler 19
Search our Forums:

Back to Top