Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us