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

Displaying previous date using SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Thu Jul 31, 2008 5:21 pm
Reply with quote

I need to display the previous date (current-date - 1) in the output file using SYNCSORT.

Can you please let me know how to do this.

My I/P file LRECL=80
RECFM=FB
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Nov 11, 2008 3:36 am
Reply with quote

Where in the output do you want the date? If it is simply as a HEADER record, then you can code the following:
Code:

//SYSIN DD *
    SORT FIELDS=COPY
    OUTFIL OUTREC=(1,80),HEADER2=(1:&DATE-1)
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 -> JCL & VSAM

 


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 Compare only first records of the fil... SYNCSORT 7
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
Search our Forums:

Back to Top