IBM Mainframe Forum Index
Log In
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register

Is the Output of Sort/Join dependent on any system config?

IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message

New User

Joined: 14 Jul 2021
Posts: 1
Location: UK

PostPosted: Wed Jul 14, 2021 6:48 pm
Reply with quote

Dear All,

I have been observing different outputs for the same Sort/Join Step across 2 separate Jobs. The input files/sort card are all exactly same. The only difference is that one process is running outside of the Production environment and the other is locally on my spool under my ID.
I can't find any logical reason for such a difference in output.

Skeleton structure of my Step
SortJNF1 DD DSN=FileA,Disp=SHR
SortJNF2 DD DSN=FileB,Disp=SHR
              DD DSN=FileC,Disp=SHR
Sortout   DD DSN=FileD,Disp=OLD
SYSIN - JOIN Card...

So, when i execute the above step in Production, its showing up an extra 100records apart from the 700 old matching ones.

I'm perplexed and wondering what is going wrong. Are there any external parameters that can affect the sorting? Like Region or Memory Space, may be?

Thank you,
Back to top
View user's profile Send private message

Senior Member

Joined: 29 Apr 2008
Posts: 1564

PostPosted: Wed Jul 14, 2021 6:50 pm
Reply with quote

Neither Region, nor Memory Space.
Nor DD statements, too.

Only - the code itself (SORT statements, not shown!), and the input data too (not shown as well!).

Also need to analyze carefully all the messages from SORT utility, in both cases.

In theory, a SORT parameter STOPAFT=700 can be introduced in one of your systems; but this probability is very low. You can also find it from the detailed SORT messages log!
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator

Joined: 21 Sep 2010
Posts: 2916
Location: NYC,USA

PostPosted: Wed Jul 14, 2021 7:50 pm
Reply with quote

I am sure only variable between two is input Dataset. I would suggest to pick up the same Generation or PS used outside production and then see if they are really 100% match.
Second, I don't think DFSORT version difference would impact this but no harm to compare that as well.
Third, remeber you coded DISP=OLD, try creating NEW Data set and compare at both places or look for the SORT messages for IN and OUT counts in the job log.
 Sortout   DD DSN=FileD,Disp=OLD
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours


Similar Topics
Topic Forum Replies
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
No new posts How do I get the desired output using... DFSORT/ICETOOL 2
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Inserting variable length into output... JCL & VSAM 2
Search our Forums:

Back to Top