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

How to get date - 1 year in SYNCSORT


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

New User


Joined: 13 Jul 2007
Posts: 18
Location: Pennsylvania

PostPosted: Fri Jul 11, 2008 1:27 am
Reply with quote

Hi
I want to omit all records from a file that is more than two year prior to current year. How would I do this in SYNCSORT?

In DFSORT it would be something like this:
SORT FIELDS=COPY
OUTREC OVERLAY=(69:&DATE2-24)
OUTFIL BUILD=(01,68),INCLUDE=(06,04,Y2T,GE,71,04,Y2T)
this will add current date -24 months to the end of my record and then will compare the year in the 6 byte with the year I just added.... how can one do this in SYNCSORT?

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 11, 2008 1:35 am
Reply with quote

Hello prgaj1 and welcome to the forums,

Which release of Syncsort is in use on your system?

If you are not sure, you can find the release at the top of the sysout from a sort execution.
Back to top
View user's profile Send private message
prgaj1

New User


Joined: 13 Jul 2007
Posts: 18
Location: Pennsylvania

PostPosted: Fri Jul 11, 2008 1:49 am
Reply with quote

Hi
We using SYNCSORT FOR Z/OS 1.2.3.1R
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 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
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top