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
 
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 Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm

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