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
 

 

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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