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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


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