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
 

 

How to get date - 1 year in SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to get date - 1 year in SYNCSORT
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

Site Director


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

PostPosted: Fri Jul 11, 2008 1:35 am    Post subject:
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    Post subject: Reply to: How to get date - 1 year in SYNCSORT
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 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


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