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

Getting Date -1 day using SYNCSORT


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

New User


Joined: 05 May 2005
Posts: 31

PostPosted: Thu Jun 19, 2008 2:21 am
Reply with quote

I am using the sort reporting feature for creating one of the reports. The report has previous days date in the heading. Is there a way I can get it in my report heading using sort ?
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Jun 19, 2008 9:07 pm
Reply with quote

If you want yesterday's date in the report heading, you can code an OUTFIL HEADER1 with &DATE-1. If this is not what you are looking for, please be more specific in your requirements.
Back to top
View user's profile Send private message
sudhakarraju

New User


Joined: 05 May 2005
Posts: 31

PostPosted: Fri Jun 20, 2008 1:02 am
Reply with quote

SYNCSORT FOR Z/OS 1.2.3.0R U.S. PATENTS: 4210961, 5117495 (C) 2005 SYNCSORT

PARMEXIT : VSCORE=1024K,VSCORET=8M
SYSIN :
SORT FIELDS=COPY
OUTFIL OUTREC=(1,80),HEADER2=(1:&DATE-1)
*
WER903I SYNCSORT 1.2.3.0 IS NOT LICENSED FOR SERIAL 29A21, TYPE 2097 713, LPAR
WER903I SYNCSORT WILL STOP WORKING IN 41 DAYS UNLESS A VALID KEY IS INSTALLED
WER161B ALTERNATE PARM USED
WER268A OUTFIL STATEMENT : SYNTAX ERROR
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Jun 20, 2008 3:34 am
Reply with quote

sudha,

Quote:
OUTFIL OUTREC=(


In the sort cards i have seen/written OUTFIL is usually followed by FNAMES or BUILD. Just check the syntax of OUTFIL and code.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Fri Jun 20, 2008 10:26 pm
Reply with quote

sudhakarraju wrote:
SYNCSORT FOR Z/OS 1.2.3.0R U.S. PATENTS: 4210961, 5117495 (C) 2005 SYNCSORT

PARMEXIT : VSCORE=1024K,VSCORET=8M
SYSIN :
SORT FIELDS=COPY
OUTFIL OUTREC=(1,80),HEADER2=(1:&DATE-1)
*
WER903I SYNCSORT 1.2.3.0 IS NOT LICENSED FOR SERIAL 29A21, TYPE 2097 713, LPAR
WER903I SYNCSORT WILL STOP WORKING IN 41 DAYS UNLESS A VALID KEY IS INSTALLED
WER161B ALTERNATE PARM USED
WER268A OUTFIL STATEMENT : SYNTAX ERROR

Support for the System Date with an Offset in OUTFIL processing was included in SyncSort for z/OS 1.3. You are running an earlier release of the product. That is why you got the syntax error.
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 Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top