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
 
Replace date sufficed to a file name using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Karthikeswari

New User


Joined: 12 Jun 2007
Posts: 1
Location: India

PostPosted: Tue Jun 12, 2007 6:41 pm    Post subject: Replace date sufficed to a file name using DFSORT
Reply with quote

Hi,

I have a control card / PS file which has the following details for FTP

login name
password
put 'USERID.FILE.NAME' receiving.file.20070404:062205
QUIT
/*

I am trying to override the date and time sufficed to the file name to the current date and time without giving the exact position where the value occurs .For ex.value can be overridden by using Overlay with the position and IF THEN statement with 1 to 3 char as 'PUT'.
But ,my scenario is trying to replace the value irrespective of the position to the current date and time.
for ex :My solution should be applicable to the case :say if the file name changes to receiving.20070404:062205.file

Is there any way this can be done ?
Back to top
View user's profile Send private message

bansal

New User


Joined: 03 Jan 2007
Posts: 27
Location: Hyderabad

PostPosted: Tue Jun 12, 2007 6:59 pm    Post subject: Re: Replace date sufficed to a file name using DFSORT
Reply with quote

You need the timestamp on the file name. That can be done by using the control card to calculate the timestamp.

But for the FTP purpose, i think u have to hardcore the file name. You can not use any substitute there. So you cannot do it.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am

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