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
 
Single sort card rather than the two differnt sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Krishnapriya

New User


Joined: 05 Mar 2007
Posts: 1
Location: kerala

PostPosted: Tue Feb 24, 2009 1:36 pm    Post subject: Single sort card rather than the two differnt sort
Reply with quote

To sort the file with

SORT FIELDS=(2,13,CH,A,617,26,CH,D) and get only one record based on 2,13,CH,A, as output..

i.e if we have 3 rows in the file with 2,13 as

'XXXXXXXXXXXXX' ' time1',
'XXXXXXXXXXXXX' ' time1',
'XXXXXXXXXXXXX' ' time2',

the output should have

'XXXXXXXXXXXXX' and 'time2'.

We need this in one step as we cannot afford multiple sort steps with huge files.


As of now for this sort we have used two steps with the below sort cards.
SORT FIELDS=(2,13,CH,A,617,26,CH,D)
OUTFIL OUTREC=(1:1,751)
SUM FIELDS=NONE

SORT FIELDS=(2,13,CH,A)
SUM FIELDS=NONE

I need to acheive this using a single sort step that uses a single sort card rather than the two differnt sort card
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2294
Location: @my desk

PostPosted: Tue Feb 24, 2009 1:51 pm    Post subject:
Reply with quote

Krishnapriya,

Welcome to the forums. I guess you want to do this using the SORT utility installed in your shop - DFSORT/SyncSort etc . Please be aware that SYNCSORT related questions are discussed in the JCL forum and the DFSORT related queries in the DFSORT part of this forum. If you mention which product you are having, it'll help the moderators to move this topic to the appropriate forum.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 24, 2009 9:56 pm    Post subject:
Reply with quote

Hello,

Quote:
We need this in one step as we cannot afford multiple sort steps with huge files.
The number of steps is not the performance issue - the number of passes of the data is the issue. There are many posted solutions using a single step, but multiple passes of the data (which is what you actually need to avoid if possible).

What percent of the records are discarded as duplicatess in the first pass you posted? It may be that the second pass of the "dups removed" data is not so large. . .
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am

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