Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us