![]() ![]()
|
The KEYDIST utility is designed to provide a "partial key" distribution for Key-Sequenced files and is intended to be used in preparing for file repartitioning. The utility accepts an IN file (which must be a Key-Sequenced file), an OUT file (which must be either a spooler location or an existing, unstructured, disk file), and a number representing the number of bytes of the primary key to use in grouping the records. As currently implemented, the utility assumes the primary key begins in the first byte position (KEYOFFSET 0) of each record, and the number of bytes to be used in grouping the records is less than the length of the primary key (KEYLEN).
SYNTAX KEYDIST--/IN--inputfilename,OUT--outputfilename/--numberofbytes--
where:
HOW IS KEYDIST NORMALLY USED
SAMPLE OUTPUT OF KEYDIST
_________________________________________________________ / / Each byte of key shown as decimal value of byte / ________________________________________ / / / / Each byte of key translated to ASCII / / ______________________ / / / / / / # of records with key / / / ______________ / / / / ------------------------------------------------------- | 035,076,049,049,081 ("#","L","1","1","Q") 1 | | 035,076,049,049,083 ("#","L","1","1","S") 1 | | 035,076,049,065,081 ("#","L","1","A","Q") 1 | | 035,076,049,065,083 ("#","L","1","A","S") 1 | | 035,076,049,068,081 ("#","L","1","D","Q") 1 | | 035,076,049,068,082 ("#","L","1","D","R") 1 | | 035,076,049,069,081 ("#","L","1","E","Q") 2 | | 035,076,049,069,082 ("#","L","1","E","R") 1 | \ 035,/\6,049,071/\81 ("#","L","1","/\,"Q") 1 | \035/ \,049,07/ \3 ("#","L","1",/ \"S") /\ 1 | \_/ \049,0/ \ ("/\,"L","1"/ \H") / \1 | \49,/ \_/ \"L","1/ \") / \ | |\ /\ \_/ /\ \L","/ /\ \) / \| | \ /07\ /,0\ \",/ /I"\ \ / /\ | \_/,076\ /3,08\ /\ \/ /"I",\ \_/ / \ | 036,076,\ /76,071\_/$"\ /,"M","\ / 266\ | 036,076,0\_/077,081 ("$",\ /","M","Q\ / 76\ | 036,076,049,077,083 ("$","\ /1","M","S"\ / 38 | | 036,076,049,079,081 ("$","L\/"1","O","Q")\_/ 75960 | | 036,076,049,079,083 ("$","L","1","O","S") 25323 | | 036,076,049,080,081 ("$","L","1","P","Q") 24152 | | 036,076,049,080,082 ("$","L","1","P","R") 24337 | | 036,076,049,082,068 ("$","L","1","R","D") 1194 | | 036,076,049,090,067 ("$","L","1","Z","C") 107130 | ------------------------------------------------------- ![]() |
Copyright © 2007 Joseph Massucco LLC |