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

SYNCSORT to sort out the records with current julian date


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 496
Location: USA

PostPosted: Mon Jun 23, 2008 8:19 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 5
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top