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
 
Need a sort card to select the record in a output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need a sort card to select the record in a output file
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 09, 2010 8:26 pm    Post subject:
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: 500
Location: USA

PostPosted: Wed Mar 10, 2010 10:50 pm    Post subject:
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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