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

Need a sort card to select the record in a output file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ibmmainframesyntel

Active User


Joined: 26 Feb 2007
Posts: 126
Location: Chennai

PostPosted: Tue Mar 09, 2010 8:17 pm
Reply with quote

I have a file with LRECL 200 FB,CRO-DCK-STS-CD (2bytes) from the position 72 - 73,UPD-DM (timestamp) from 78 - 103.
I need a sort card using sort utility based on the below condition.

CRO-DCK-STS-CD = 8 , select regardless of date.
CRO-DCK-STS-CD = 5, select when UPD-DM > CURRENT DATE – 60 DAYS
CRO-DCK-STS-CD = 6 and 7, select when UPD-DM > CURRENT DATE – 7 DAYS
CRO-DCK-STS-CD = 1,2,3,4, select when UPD-DM > CURRENT DATE – 365 DAYS

help me out in thsi issue.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 09, 2010 8:26 pm
Reply with quote

Quote:
I need a sort card using sort utility based on the below condition.
Please post what you have tried so far and show us where you are having problems.
Take a look at using the AND / OR parameters.
Which release of SYNCSORT are you using as any solution may vary with the release level being used.

Quote:
CRO-DCK-STS-CD = 6 and 7, select when UPD-DM > CURRENT DATE – 7 DAYS
Do you mean 6 or 7 here
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Wed Mar 10, 2010 10:50 pm
Reply with quote

Hello.

Expat is correct. This can be accomplished using an INCLUDE COND with multiple AND/OR conditions. However, in order for us to better assist you, please provide us with sample records showing the timestamp field so that we can see the actual format. Thank you.
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top