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

Previous Date to be appended in OUTREC


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Fri Sep 29, 2006 3:55 pm
Reply with quote

Hi..
I know that it's possible to append the current date to the end of each record in the input file and copy it to the output file using the DATE parm in OUTREC. I have a requirement, in which I want the previous day's date to be appeneded instead of current date. Is this possible?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Sep 29, 2006 8:29 pm
Reply with quote

You can use DFSORT's relative date support in INREC, OUTREC and OUTFIL to do that. For example:

Code:

   INREC OVERLAY=(81:DATE1-1)


would give you '20060928' in positions 81-88 today. There are lots of other variations you can use for other date formats.

You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's relative date function. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Sat Sep 30, 2006 10:09 am
Reply with quote

Thnkx a lott.. i will give it a try.. ya i know abt the date formats.. and i even tried this -1 but didnt work i guess.. but will try once more.. or ask my system admin.. is there any way i can know if z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) is already istalled?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Sep 30, 2006 9:30 pm
Reply with quote

Quote:
is there any way i can know if z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) is already istalled?


Yes, look at the messages from any DFSORT run. If you see 'ICE201I E', you have the April, 2006 PTF. If you see 'ICE201I 0', you don't have the PTF.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top