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 Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm

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