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
 

 

SYNCSORT to sort out the records with current julian date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ARUN.A.NAIR
Warnings : 1

New User


Joined: 07 Mar 2007
Posts: 12
Location: MAHARASHTRA

PostPosted: Mon Jun 23, 2008 6:52 pm    Post subject: SYNCSORT to sort out the records with current julian date
Reply with quote

Hi,

I went through the different topics but was unable to get the answer for my query.

I have a file which contains Julian date(YYYYDDD) as one of its fields. I need to use SYNCSORT to sort out the records with current julian date into another file. Can anyone help me in this?
Back to top
View user's profile Send private message

Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Mon Jun 23, 2008 8:19 pm    Post subject: Reply to: USE SYNCSORT TO COPY RECORDS ON THE BASIS OF CURRE
Reply with quote

Since you did not provide details as to what position your date field was in, nor did you provide the RECFM or LRECL of the file, let's assume the data set is FB 80 and the date field starts in the first position.

Try this:
Code:
//SYSIN DD *                     
 SORT FIELDS=COPY               
 INCLUDE COND=(1,7,CH,EQ,&DATE3)
/*
Back to top
View user's profile Send private message
ARUN.A.NAIR
Warnings : 1

New User


Joined: 07 Mar 2007
Posts: 12
Location: MAHARASHTRA

PostPosted: Tue Jun 24, 2008 1:42 pm    Post subject: Reply to: USE SYNCSORT TO COPY RECORDS ON THE BASIS OF CURRE
Reply with quote

Thanks a lot. That really helped icon_smile.gif
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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