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

Replace date sufficed to a file name using DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top