SORT Statistical Array

If the MCP is compiled with the compiler control option SORTSTAT set to TRUE, a sort statistical array that contains data collected while SORT was executing is created. This option must be set to TRUE before the first reference to the option.

A copy of the sort statistical array is written into a file titled SORT/STATISTICX and is passed to the output procedure of your program if such a procedure exists. A program SYMBOL/SORTSTAT (source language) or SYSTEM/SORTSTAT (object code) is provided on the system release tapes. This program reads the SORT/STATISTICX file and produces a report from the sort statistical information. The sole purpose of this program is to guide you in using the sort statistical information. Any other use of this program or the sort statistical information is left entirely to you. When the contents of the sort statistical array are changed, those changes are reflected in SYMBOL/SORTSTAT and SYSTEM/SORTSTAT.

Contents of the SORT Statistical Array describes the contents of the SORT statistical array. Unless otherwise specified, units are words.

Table 81. Contents of the SORT Statistical Array

Word

Field

Value

Contents

0

 

 

Control word from compiler.

 

[46:01]

 

 

 

 

1

Merge.

 

 

0

Sort.

 

[43:02]

 

Compiler identification.

 

 

1

COBOL.

 

 

Any other value.

ALGOL.

 

[13:04]

 

Number of merge inputs.

 

[09:01]

 

Output destination of SORT.

 

 

1

Procedure.

 

 

0

File.

 

[08:01]

 

Input source to SORT.

 

 

1

Procedure.

 

 

0

File.

 

[07:08]

 

This word contains eight fields of 1 bit each. The bit number equals the source number; that is, bit 0 = source 0. Source is input to merge.

 

 

1

Merge input procedure.

 

 

0

Merge file.

1

 

 

Memory utilization information.

 

[47:12]

 

Merge order (records).

 

[35:16]

 

Stringing vector size (records).

 

[19:20]

 

Specified memory size (words).

2

 

 

Work file information.

 

[47:06]

 

Disk work file unit type.

 

[41:10]

 

Number of tapes specified.

 

[31:16]

 

Sort disk block (words).

 

[15:16]

 

Sort tape block (words).

3

 

 

Processor time of stringing phase (units of 2.4 microseconds).

4

 

 

Processor time of merging phase (units of 2.4 microseconds).

5

 

 

Disk input. This word contains six fields of eight bits each.

Each field reflects the number of rows for a particular disk type.

 

[47:08]

 

IIB-6

 

[39:08]

 

IIB-2

 

[31:08]

 

IC-4

 

[23:08]

 

5N

 

[15:08]

 

IC-3

 

[07:08]

 

PACK

6

 

 

Disk output. This word contains six fields of eight bits each. each field reflects the number of rows for a particular disk type.

 

[47:08]

 

IIB-6

 

[39:08]

 

IIB-2

 

[31:08]

 

IC-4

 

[23:08]

 

5N

 

[15:08]

 

IC-3

 

[07:08]

 

PACK

7

 

 

Run date (TIME(15)).

8

 

 

Disk size specified (words).

9

 

 

MCP level.

 

[47:16]

 

First 2 digits of SSR level.

 

[31:16]

 

Cycle level.

 

[15:16]

 

Patch level.

10

 

 

Time(11) at initialization.

11

 

 

Time(11) at end of stringing phase.

12

 

 

Time(11) at end of merging phase.

13

 

 

IO time during string phase (units of 2.4 microseconds).

14

 

 

IO time during merging phase (units of 2.4 microseconds).

15

 

 

Number of strings created when stringing to disk (DISK and ITD sorts).

16

 

 

Number of strings created when stringing to tape (TAPE sort) or merging disk to tape (ITD sort).

17

 

 

Sort record information.

 

[47:16]

 

Sort record size. Size is in characters for COBOL; otherwise, size is in words.

 

[31:32]

 

Number of input records.

18

 

 

Number of calls on compare procedure during merging phase.

19

 

 

Number of calls on compare procedure during stringing phase.

20

 

 

Unit type information. This word contains eight fields of 6 bits each. Each field contains the unit type of one of the eight possible work tape or merge inputs.

 

[47:06]

 

FILE7.

 

[41:06]

 

FILE6.

 

[35:06]

 

FILE5.

 

[29:06]

 

FILE4.

 

[23:06]

 

FILE3.

 

[17:06]

 

FILE2.

 

[11:06]

 

FILE1.

 

[05:06]

 

FILE0.

21

 

 

Input and output file types and file density information for the eight possible work tapes or merge inputs, and input and output files.

 

[47:06]

 

Input file unit type.

 

[41:06]

 

Output file unit type.

 

[35:06]

 

Work file sector formatting.

 

[29:03]

 

File7 density code.

 

[26:03]

 

FILE6 density code.

 

[23:03]

 

FILE5 density code.

 

[20:03]

 

FILE4 density code.

 

[17:03]

 

FILE3 density code.

 

[14:03]

 

FILE2 density code.

 

[11:03]

 

FILE1 density code.

 

[08:03]

 

FILE0 density code.

 

[05:03]

 

Output file density code.

 

[02:03]

 

Input file density code.

22

 

 

Number of rows for various types of work disk files. This word contains six fields of 8 bits each. Each field reflects the number of rows for a particular disk type.

 

[47:08]

 

IIB-6

 

[39:08]

 

IIB-2

 

[31:08]

 

IC-4

 

[23:08]

 

5N

 

[15:08]

 

IC-3

 

[07:08]

 

PACK

23

 

 

Reserved for expansion.

24-29

 

 

Job name in standard form representation.


SORT Collating Sequence shows the collating sequence used by the SORT utility.

Table 82. SORT Collating Sequence

Binary

Hexadecimal

EBCDIC

00000000

00

NUL

00000001

01

SOH

00000010

02

STX

00000011

03

ETX

00000100

04

 

00000101

05

HT

00000110

06

 

00000111

07

DEL

00001000

08

 

00001001

09

 

00001010

0A

 

00001011

0B

VT

00001100

0C

FF

00001101

0D

CR

00001110

0E

S0

00001111

0F

S1

00010000

10

DLE

00010001

11

DC1

00010010

12

DC2

00010011

13

DC3

00010100

14

 

00010101

15

NL

00010110

16

BS

00010111

17

 

00011000

18

CAN

00011001

19

EM

00011010

1A

 

00011011

1B

 

00011100

1C

FS

00011101

1D

GS

00011110

1E

RS

00011111

1F

US

00100000

20

 

00100001

21

 

00100010

22

 

00100011

23

 

00100100

24

 

00100101

25

LF

00100110

26

ETB

00100111

27

ESC

00101000

28

 

00101001

29

 

00101010

2A

 

00101011

2B

 

00101100

2C

 

00101101

2D

ENQ

00101110

2E

ACK

00101111

2F

BEL

00110000

30

 

00110001

31

 

00110010

32

SYN

00110011

33

 

00110100

34

 

00110101

35

 

00110110

36

 

00110111

37

EOT

00111000

38

 

00111001

39

 

00111010

3A

 

00111011

3B

 

00111100

3C

DC4

00111101

3D

NAK

00111110

3E

 

00111111

3F

SUB

01000000

40

SP (blank)

01000001

41

 

01000010

42

 

01000011

43

 

01000100

44

 

01000101

45

 

01000110

46

 

01000111

47

 

01001000

48

 

01001001

49

 

01001010

4A

[

01001011

4B

.

01001100

4C

<

01001101

4D

(

01001110

4E

+

01001111

4F

!

01010000

50

&

01010001

51

 

01010010

52

 

01010011

53

 

01010100

54

 

01010101

55

 

01010110

56

 

01010111

57

 

01011000

58

 

01011001

59

 

01011010

5A

]

01011011

5B

$

01011100

5C

*

01011101

5D

)

01011110

5E

;

01011111

5F

^

01100000

60

-

01100001

61

/

01100010

62

 

01100011

63

 

01100100

64

 

01100101

65

 

01100110

66

 

01100111

67

 

01101000

68

 

01101001

69

 

01101010

6A

2 part vertical bar

01101011

6B

,

01101100

6C

%

01101101

6D

_

01101110

6E

>

01101111

6F

?

01110000

70

 

01110001

71

 

01110010

72

 

01110011

73

 

01110100

74

 

01110101

75

 

01110110

76

 

01110111

77

 

01111000

78

 

01111001

79

\

01111010

7A

:

01111011

7B

;

01111100

7C

@

01111101

7D

'

01111110

7E

=

01111111

7F

"

10000000

80

 

10000001

81

a

10000010

82

b

10000011

83

c

10000100

84

d

10000101

85

e

10000110

86

f

10000111

87

g

10001000

88

h

10001001

89

i

10001010

8A

 

10001011

8B

 

10001100

8C

 

10001101

8D

 

10001110

8E

 

10001111

8F

 

10010000

90

 

10010001

91

j

10010010

92

k

10010011

93

l

10010100

94

m

10010101

95

n

10010110

96

o

10010111

97

p

10011000

98

q

10011001

99

r

10011010

9A

 

10011011

9B

 

10011100

9C

 

10011101

9D

 

10011110

9E

 

10011111

9F

 

10100000

A0

 

10100001

A1

" "

10100010

A2

s

10100011

A3

t

10100100

A4

u

10100101

A5

v

10100110

A6

w

10100111

A7

x

10101000

A8

y

10101001

A9

z

10101010

AA

 

10101011

AB

 

10101100

AC

 

10101101

AD

 

10101110

AE

 

10101111

AF

 

10110000

B0

 

10110001

B1

 

10110010

B2

 

10110011

B3

 

10110100

B4

 

10110101

B5

 

10110110

B6

 

10110111

B7

 

10111000

B8

 

10111001

B9

 

10111010

BA

 

10111011

BB

 

10111100

BC

 

10111101

BD

 

10111110

BE

 

10111111

BF

 

11000000

C0

{

11000001

C1

A

11000010

C2

B

11000011

C3

C

11000100

C4

D

11000101

C5

E

11000110

C6

F

11000111

C7

G

11001000

C8

H

11001001

C9

I

11001010

CA

 

11001011

CB

 

11001100

CC

 

11001101

CD

 

11001110

CE

 

11001111

CF

 

11010000

D0

}

11010001

D1

J

11010010

D2

K

11010011

D3

L

11010100

D4

M

11010101

D5

N

11010110

D6

O

11010111

D7

P

11011000

D8

Q

11011001

D9

R

11011010

DA

 

11011011

DB

 

11011100

DC

 

11011101

DD

 

11011110

DE

 

11011111

DF

 

11100000

E0

\

11100001

E1

 

11100010

E2

S

11100011

E3

T

11100100

E4

U

11100101

E5

V

11100110

E6

W

11100111

E7

X

11101000

E8

Y

11101001

E9

Z

11101010

EA

 

11101011

EB

 

11101100

EC

 

11101101

ED

 

11101110

EE

 

11101111

EF

 

11110000

F0

0

11110001

F1

1

11110010

F2

2

11110011

F3

3

11110100

F4

4

11110101

F5

5

11110110

F6

6

11110111

F7

7

11111000

F8

8

11111001

F9

9

11111010

FA

 

11111011

FB

 

11111100

FC

 

11111101

FD

 

11111110

FE

 

11111111

FF