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

BIAS paramter in SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidhya Kalyanasundaram

New User


Joined: 19 Jul 2007
Posts: 30
Location: chennai

PostPosted: Fri Jan 29, 2010 1:00 pm
Reply with quote

We are aware that Syncsort displays the BIAS option in the SYSOUT when we execute a SORT step which shows the degree of similarity of records between the Input and Output file.

If BIAS=99 - Shows that the input file is already in sorted order of keys and not much SORT process being carried out.
If BIAS=00 - Shows that the input file was entirely sorted to produce the output file meaning much difference exists between i/p and op files.

If SORT FIELDS=COPY is given, BIAS parameter is not displayed in SYSOUT. (which may mean that file is already sorted) - Correct me if i am wrong !

I executed a SORT step with SORT FIELDS=(keys). The i/p file had around 500 Records and the SYSOUT did not show me the BIAS parameter. Is there any reason for it?

Could anyone please let me know why the BIAS was not displayed in SYSOUT.

Vidhya
"If you have knowledge, let others light their candles with it. "
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 29, 2010 1:09 pm
Reply with quote

The BIAS value is not included
in the message for an incore or turnaround sort,
where it is 100 by definition.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 29, 2010 1:33 pm
Reply with quote

Quote:
If SORT FIELDS=COPY is given, BIAS parameter is not displayed in SYSOUT. (which may mean that file is already sorted) - Correct me if i am wrong !


Yes You are icon_lol.gif

a COPY operation is just that a COPY, sort does not care about any kind of expressed or implied sequence ....
ohh well how could it since nobody specified a sort field
Back to top
View user's profile Send private message
Vidhya Kalyanasundaram

New User


Joined: 19 Jul 2007
Posts: 30
Location: chennai

PostPosted: Fri Jan 29, 2010 4:25 pm
Reply with quote

Could you please explain 'incore or turnaround sort'?
Does it mean the i/p file is already sorted in the order of keys?

To conclude that, i tried with the below 2 SORT steps :
1. Ran first step with SORT FIELDS=(1,14,CH,A) and created the output file FILE1 - The step for which it displayed 'WER177I TURNAROUND SORT PERFORMED'
2. Ran the second step with same i/p file of Step.1 coding, SORT FIELDS=COPY and created the output file FILE2
3. Compared the 2 output files FILE1 and FILE2.

The compare results showed differences which implies the i/p file is not in sorted order of keys.

Could you please let me know when the below message will appear in the SYSOUT -
Code:
WER177I  TURNAROUND SORT PERFORMED


Thanks in Advance,
Vidhya
"If you have knowledge, let others light their candles with it. "
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 29, 2010 4:36 pm
Reply with quote

Quote:
Could you please explain 'incore or turnaround sort'?
Does it mean the i/p file is already sorted in the order of keys?


incore sort ==> no need for sortwk.. files because the number of records being sorted fits in virtual storage
turnaround sort ==> a sorting technique/algorithm
NO, sort will find out only after having read up to the last record


Quote:
The compare results showed differences which implies the i/p file is not in sorted order of keys.


since You used fields=copy for what reason do You think that the file should come out sorted ???

read and try to understand the manuals
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 29, 2010 4:58 pm
Reply with quote

WER177I TURNAROUND SORT PERFORMED
EXPLANATION: SyncSort was able to sort the input file without using
intermediate storage (SORTWKnn's). All input data was contained in virtual
storage.

All previous comments are stating info that YOU the TS could have found
yourself in the manual.

This is a waste of my time which i never get back.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jan 29, 2010 6:01 pm
Reply with quote

Why are you so bothered for a message which is just for some information(WER177I) - I, as a Software Engineer, was always bothered about errors ...icon_biggrin.gif

And this
Quote:
We are aware that Syncsort displays the BIAS option in the SYSOUT when we execute a SORT step which shows the degree of similarity of records between the Input and Output file.
is a shop-specific set-up. Just to give you an example, this does not happen at my shop.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 29, 2010 6:45 pm
Reply with quote

what should bother is that the ts does not grasp the difference between
SORT FIELDS=COPY and
SORT FIELDS=(<sort fields description>)
icon_eek.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 29, 2010 8:54 pm
Reply with quote

Hello Vidhya,

Do you have the answer(s) you were looking for?

If not, please clarify what is still needed.
Back to top
View user's profile Send private message
Vidhya Kalyanasundaram

New User


Joined: 19 Jul 2007
Posts: 30
Location: chennai

PostPosted: Mon Feb 01, 2010 12:18 pm
Reply with quote

Hi all,

I just gave an example to explain the 2 scenarios.

I am aware that SORT FIELDS=COPY will just make a copy of the file, without knowing it we could not code a SORT step by the way.

I had a requirement in which the incoming file has around 84924926 records(huge volume). Sorting this file on keys consumes around 4 mins of CPU. In this step only, i am not getting the BIAS keyword but getting the message, 'TURAROUND SORT PERFORMED' in the SYSOUT.

The next PROGRAM step in the JCL needs the file to be sorted with respect to the same keys. The incoming file comes as SORTED on KEYS most of the time.

So,
If we could predict that file is already sorted with any of the parameter(if through BIAS option) before the SORT process
starts,
'Whether we would be able to eliminate this SORT step?
If not, to perform the SORT step?' was my query.

This query was just to know if any tuning technique could be adopted to eliminate that redundant SORT step thereby reducing the CPU cost and Elapsed time savings.

But reply from enrico-sorichetti made me to understood that "sort will find out only after having read up to the last record"

Thanks for all your comments !!!

Vidhya
"If you have knowledge, let others light their candles with it. "
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Feb 01, 2010 8:25 pm
Reply with quote

Hello,

But the good news is that if the file is almost completely in sequence, it should not require the same amount of cpu as sorting a file that is almost completely out of sequence. . . icon_smile.gif
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
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top