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
 

 

NATURAL and COBOL sort compare

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
kvmahesh

New User


Joined: 16 Dec 2009
Posts: 2
Location: Chennai

PostPosted: Wed Dec 16, 2009 1:38 pm    Post subject: NATURAL and COBOL sort compare
Reply with quote

Hi,

We are trying to convert a NATURAL program that does an internal SORT to a COBOL program internal sort routine.

As part of the conversion we tried to compare the sort results of both codes (NATURAL and COBOL) output we found that Sorted records for similar key values are being produced in differently in NATURAL and COBOL.

Can you please with the reason why it is behaving differently, is there any difference in NATURAL and COBOL sorting routines and if so, how to solve the issue.

Thanks in advance.

Regards
Magesh.K.V
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Dec 16, 2009 1:45 pm    Post subject: Reply to: NATURAL and COBOL sort compare
Reply with quote

investigate the options of the sort product installed in Your organization!

for IBM DFSORT at least
it is clearly stated that unless (*) is specified the sort order for records with the same sort key will be unpredictable

(*) OPTIONS EQUALS
check the mauals of Your sort product for the exact syntax
Back to top
View user's profile Send private message
kvmahesh

New User


Joined: 16 Dec 2009
Posts: 2
Location: Chennai

PostPosted: Wed Dec 16, 2009 1:49 pm    Post subject: Reply to: NATURAL and COBOL sort compare
Reply with quote

Thanks for your response...

I know there is a option in SYNCSORT and DFSORT that has EQUALS to preserve the sequence..

How about controlling that in COBOL internal sort.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Dec 16, 2009 1:54 pm    Post subject: Reply to: NATURAL and COBOL sort compare
Reply with quote

in the manuals is explained how to add additional options that cannot be specified when using internal sorts
usually adding a dd with the additional options

quoting from IBM...

Quote:
DFSPARM Data Set

z/OS V1R8.0-V1R9.0 DFSORT Application Programming Guide
SC26-7523-02


Use with direct or program invocation.
Overrides all other sources.
Accepts all DFSORT program control statements, and all EXEC PARM options, including those OPTION statement parameters ignored by SYSIN and SORTCNTL.
Permits comment statements, blank statements, and remarks.



look like the forum is becoming more and more a manual reading and searching service icon_evil.gif
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


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