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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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