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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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