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
 

 

Need help in putting date in filenames

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

New User


Joined: 03 Oct 2006
Posts: 40

PostPosted: Sat Oct 02, 2010 10:43 am    Post subject: Need help in putting date in filenames
Reply with quote

Hi,

We are transmitting a file thry XMIT to some users. The name of the report we are sending is 'XYZ.csv".

We would like to put date at the end of reprt name to make it like "XYZ_mmddyyyy.csv".

We have a date in file1 and rest of transmit command in file2. We want to put date from file1 to be added in filename which is present in file2.

The data in file1 is
10022010

The data in file2 is:
-------------------------------
-------------------------------
SUBJECT: report XYZ
-------------------------------
-------------------------------
filename: "XYZ.csv"

We have shown two rows from file2 where we need to add date. Is there any way to perform this through sort? I would be thankful for the help.

Regards,
Sharad
Back to top
View user's profile Send private message

sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Sun Oct 03, 2010 1:47 am    Post subject:
Reply with quote

sharad_shanu,
What is the expected output for this sample that you have shown? What is the lrecl and recfm for the input and output files?

Thanks,
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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am


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