• Aucun résultat trouvé

IBM System/3 Disk Sort Reference Manual

N/A
N/A
Protected

Academic year: 2022

Partager "IBM System/3 Disk Sort Reference Manual"

Copied!
182
0
0

Texte intégral

(1)

a a a a a a a a

a a a a a a a a

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a

o a a a a a a a

a a a e a a a a

a a a a a a a a

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a a a a

a a a a a a a a a a a a

a a a a a a a a a a a a

a a a a a a a a a a a a a a a a a a o a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a a a a

a a a a a a a a

a a a a a a a a

a a a a a a a a

a a a a a a a a a o a a a a a e a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a o a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a a a a a a l a a a a a a a

a a a a a o a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a o a a a o a

a a a a a a a a

a a a a a a a a a a a a

a a a a a

a a a a a

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a

a a o a a a a a a

a a a a a a a a a

a a a a a a a a a a a a a

a a a a a a a a a

a a a a a a a a a

a a a a a a a a a

a a a a a

a a a a a

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a o a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a a a a a a a a a a a a a

a a a a a a a

IBM System/3 Disk Sort

Reference Manual

Disk Sort Program Numbers:

5702-SM1 (Modets 8 and 10) S703-SM1 (Modets 4 and 6) 5704-SM1 (Modet 15)

5704-SM9 (Modet 1b) 5705-SM1 (Modet 12)

CCP/Disk Sort Program Numbers:

5703-SM2 (Modet 4) 5704-SM7 (Modet 15)

5799-ATF (Models 8 and 10) 5799-ATG (Model 121

5799-ATH (Modet 1S)

P r o g r a m P r o d u c t

sc21-7522-8 F i l e N o . 53-33

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a a a a a a a a a o a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

a a a a a aa a a a a a a a a a a

(2)

N i n t h E d i t i o n ( A p r i l 1 9 7 8 )

T h i s i s a m a i o r r e v i s i o n o f , a n d o b s o l e t e s , S C 2 l ' 1 5 2 2 - 7 a n d t e c h n i c a l n e w s l e t t e r s S N 2 1 - 5 4 0 5 . S N 2 1 - 5 5 1 1 , a n d S N 2 1 - 5 4 9 5 . B e c a u s e t h e c h a n g e s a n d a d d i t i o n s a r e e x t e n s i v e , t h i s m a n u a l s h o u l d b e r e v i e w e d i n i t s e n t i r e t , .

T h i s e d i t i o n a p p l i e s t o t h e f o l l o w i n q I B M S y s t e m / 3 p r o g r a m s a n d t o a l l s u b s e q u e n t v e r s i o n s a n d m o d i f ic a t i o n s u n t i l o t h e r w i s e i n d i c a t e d i n n e w e d i t i o n s o r t e c h n i c a l n e w s l e t t e r s .

V e r s i o n M o d i f i c a t i o n P r o g r a m N u m b e r P r o g r a m N a m e M o d e l 1 6

1 6 5 7

q

1 6

t o

5 1 4

o 0 0 0 0 0 0 0 0 o

5 7 0 3 - S M 2 5 7 9 9 - A T F 5 7 9 9 - A T G 5 7 9 9 - A T H 5 7 0 4 , S N / 7 5 7 0 3 - S M 1 5 7 0 2 - S M 1 5 7 0 5 - S M 1 5 7 0 4 - S M 1 5 7 0 4 - S M 9

C C P / D i s k S o r t P r o g r a m 4 C C P / D i s k S o r t P r o . r y r a m 8 , 1 0 C C P / D i s k S o r t P r o g r a m 1 2 C C P / D i s k S o r t P r o g t r a m 1 5 C C P / D i s k S o r t P r o q r a m 1 5 D D i s k S o r t P r o g r a t r 6 D i s k S o r t P r o g r a m 8 , 1 O D i s k S o r t P r o g r a m 1 2 D i s k S o r t P r o g r a m 1 5 D i s k S o r t P r o q r a m 1 5 D C h a n g e s a r e p e r i o c l i c a l l y m a d e t o t h e i n f o r m a t i o n h e r e i n ; t h e s e c h a n g e s w i l l b e r c p o r t e d i n t e c h n i c a l n e w s l e t t e r s o r i n n e w e d i t i o n s o f t h i s p u b l i c a t i o n .

U s e t h i s p u b l i c a t i o n o n l y f o r t h e p u r p o s e s s t a t e d i n t h . e P r e f a c e .

P u b l i c a t i o n s a r e n o t s t o c k e d a t t h e a d d r e s s b e l o w . R e q u e s t s f o r c o p i e s o f I B M p u b l i c a t i o n s a n d f o r t e c h n i c a l i n f o r m a t i o n a b o u t t h e s y s t e m s h o u l d b e n l a d e t o y o u r I B M r e p r e s e n t a t i v e o r t o t h e b r a n c h o f f i c e s e f v i n g y o u r l o c a l i t V .

T h i s p u b l i c a t i o n c o u l d c o n t a i n t e c h n i c a l i n a c c u r a c i e s o r t y p o g r a p h i c a l e r r o r s . A d d r e s s c o m m e n t s c o n c e r n i n g t h e c o n t e n t s o f t h i s p u b l i c a t i o n t o I B M C o r p o r a t i o n P u b l i c a t i o n s , D e p a r t m e n t 2 4 5 , R o c h e s t e r , M i n n e s o t a 5 5 9 0 1 . I B M m a y u s e a n d d i s t r i b u t e a n y o f t h e i n f o r m a t i o n y o u s u p p l y i n a n y w a y i t b e l i e v e s a p p r o p r i a t e w i t h o u t i n c u r r i n g a n y o b l i g a t i o n w h a t e v e r . Y o u m a y , o f c o u r s e , c o n t i n u e t o u s e t h e i n f o r m a t i o n V o u s u l ) p l y

(3)

Technical Newsletter

f BM Corporation, Publications, Department 245, Rochester. Minnesota 55901 O I B M C o r p . 1 9 7 8

This Newsletter No.

Date

s N 2 1 - 5 6 5 1 29 September 1978

Base Publication No. SC21-7522

File No. 53'33

Previous Newsletters N o n e

IBM System/3 Disk Sort

Reference Manual

@lBM Corp. 1970, 1971,1972, 1973, 1975, 1976, 1978

T h i s te c h n i c a l n e v r n l e t t e r a p p l i e s t o t h e c u r r e n t v e r s i o n s a n d m o d i f i c a t i o n s o f t h e a p p l i c a b l e I B M System/3 programs listed in the edition notice, and provides replacement pages for the subject publication. These replacement pages remain in effect for subsequent versions and modifications unless specifically altered. Pages to be inserted and/or removed are:

Cover, Edition Notice 1 3 , 1 4

2 1 , 2 2 2 5 , 2 6

9 1 t h r o u g h 1 1 0 1 4 1 , 1 4 2 1 4 9 th r o u g h 1 5 2

Changes to text and illustrations are indicated by a vertical line at the left of the change.

Summary of Amendmen8

o A d d i t i o n of Release/Task C h a i n i n g c a p a b i l i t i e s . o M i s c e l l a n e o u s t e c h n i c a l a n d e d i t o r i a l c h a n g e s ,

y'tlote.' Please file this cover letter at the back of the manual to provide a record of changes.

P r i n t e d in U . S . A .

(4)
(5)

T e c h n i c a l Newsletter

This Newsletter No.

D a t e B a s e P u b l i c a t i o n N o . F i l e N o . Previous Newsletters

s N 2 1 - 5 7 0 4 2 8 M a r c h 1 9 8 0 sc21 -7522-8

5 J - J 5

s N 2 1 - 5 6 5 1

IBM System/3 Disk Sort

Reference Manual

, I B M C o r p . 1 9 7 0 , 1 9 / 1 , 1 9 1 2 , 1 9 7 3 , 1 9 7 5 , 1 9 1 6 , 1 9 1 9

T h i s t e c h n i c a l n e w s l € ) t t e ! ' a p p l i e s t o t h e c u r r e n t v e r s i o n s a n d m o d i f i c a t i o n s o f t h e a p p l i c a b l e IB M S y s t e m / 3 p r o q r a m s l i s t e d i n t h e e d i t i o n n o t i c e , a n d p r o v i d e s r e p l a c e m e n t p a g e s f o r t h e sublect p u b l i c a t r o n . - f h e s e

r e p l a c e m e n t p a g e s r e m a r n i n e f f e c t f o r s u b s e q u e n t v e r s i o n s a n d m o d i f i c a t t o n s u n l e s s s p e c i f i c a i l v a l t e r e d . P a g e s 1 0 b e i n s e r t e d a n d / o r r e m o v e d a r e :

c o v e r , e d i t i o n n o t i c e 7 t h r o u g h 1 0 1 3 . 1 4

1 4 . 1 , 1 4 . 2 ( a d d e d t o a c c o m r n o d a t e n e w a n d m o v e d t e x t )

2 3 , 2 4

2 4 . 1 , 2 4 . 2 ( a d d e d t o a c c o m m o d a t e new and nrovi:d text)

4 5 , 4 6 6 9 , 7 0 1 0 7 . 1 0 8 1 2 3 , 1 2 4 1 4 1 , 1 4 8 1 5 7 1 5 8 1 6 1 t h r o u g h 1 6 4

C h a n g e s t c t e x t a n d i l l u s t r a t i o n s a r e i n d i c a t e d b y a v e r t i c a l li n e a t t h e l e f t o f t h e c h a n q e .

S u m m a r y o f A m e n d m e n t s [ \ 4 i s c r l l a n r : o , u s t e c l r r r r c a l c h a n g e s

N o t e : P i e a s e f i l e t h r s c o v e r le t t e r a t t h e b a c k o f t h em a n u a l t o p r o v i d e a r e c o r d o f c h a n q e s .

I B M C o r p o r a t i o n , P u b l i c a t i o n s , D e p a r t m e n t 2 4 5 , R o c h e s t e r . l \ 4 i n n e s o t a b 5 9 0 1

P r r n t e d i n U . S . A

(6)
(7)

T h i s m a n u a l h e l p s th e S y s t e m / 3 p r o g r a m m e r f i l l o u t t h e s e q u e n c e s p e c i f i c a t i o n s n e e d e d i n o r d e r t o r u n :

o T h e S y s t e m / 3 D i s k S o r t p r o g r a m o n S y s t e m / 3 M o d e l s 4 , 6 , 8 , 1 0 , 1 2 , a n d 1 5

o The Svstem/3 CCPiDisk Sort program on System/3 M o d e l s 4 , 8 , 1 0 , 1 2 , a n d 1 5

T w o c o d i n g s h e e t s a r e d i s c u s s e d i n t h i s m a n u a l : . Sequence Specifications, GX21 9089

c Translation Table and Alternate Collating Sequence Coding Sheel GX2i -9096

fhe How to Use This Manual section in Chapter 1 explains t h e o r g a n i z a t i o n o f t h i s b o o k .

F o r e a s e o f i l l u s t r a t i o n , m a n y o f t h e e x a m p l e s i n t h i s b o o k u s e c a r d - l i k e f i g u r e s to r e p r e s e n t r e c o r d s . T h i s d o e s n o t i m p l y t h a t a c a r d d e v i c e m u s t b e u s e d fo r i n p u t o r o u t p u t i n t h e s e s i t u a t i o n s . A n y o f s e v e r a l i n p u t / o u t p u t d e v i c e s m i g h t b e u s e d , d e p e n d i n g o n w h i c h S y s t e m / 3 m o d e l a n d c o n f i g u r a t i o n y o u a r e u s i n g .

f BM System/3 5448 Disk Storage Drive

T h e I B M S v s t e m / 3 5 4 4 8 D i s k S t o r a g e D r i v e o n S y s t e m / 3 M o d e l s 8 a n d 1 0 u s e s t h e s a m e p r o g r a m p r o d u c t s u p p o r t a s t h e I B M 5 4 4 5 D i s k S t o r a g e . H o w e v e r , a s e p a r a t e s y s t e m c o n t r o l p r o g r a m fe a t u r e is r e q u i r e d fo r t h e 5 4 4 8 . I n g e n e r a l , r e f e r e n c e s t o 5 4 4 5 i n t h i s m a n u a l a l s o a p p l y t o 5 4 4 8 . F o r s p e c i f i c i n f o r m a t i o n a b o u t 5 4 4 8 o p e r a t i n g c h a r a c t e r i s t i c s a n d p r o g r a m m i n g s u p p o r t , s e e I B M System/3 5448 Disk Storage Drive Program Reference M a n u a l . G C 2 1 - 5 1 6 8 .

Preface

S y s t e m / 3 M o d e l 4 u s e r s s h o u l d n o t e t h a t :

o S y s t e m / 3 M o d e l 4 i s s u p p o r t e d b y S y s t e m / 3 M o d e l 6 S y s t e m C o n t r o l P r o Q r a m m i n g a n d P r o g r a m P r o d u c t s . T h e f a c i l i t i e s d e s c r i b e d i n t h i s p u b l i c a t i o n fo r t h e M o d e l 6 a r e a l s o a p p l ic a b l e to t h e M o d e l 4 , a l t h o u g h t h e M o d e l 4 i s n o t r e f e r e n c e d .

o N o t a l l d e v i c e s a n d f e a t u r e s a v a i l a b l e o n t h e M o d e l 6 a r e a v a i l a b l e o n t h e M o d e i 4 . T h e r e f o r e , M o d e l 4 u s e r s s h o u l d b e f a m i l i a r w i t h t h e c o n t e n t s o f t h e I B M Svstem/3 Model 4 lntroduction, GC21-5146.

. A l l r e f e r e n c e s t o t h e 5 4 4 4 d i s k s o n s v s t e m s w i t h o u t 3 3 4 0 D i r e c t A c c e s s S t o r a g e F a c i l i t y a l s o a p p l y t o t h e 5 4 4 7 d i s k s u n l e s s o t h e r w i s e rr o t e d .

S v s t e m i 3 M o d e l 8 u s e r s s h n u l d n o t e t h a t :

T h e S y s t e m / 3 M o d e l 8 i s s u p p o r t e d b y S y s t e m / 3 M o d e l ' l

0 D i s k S y s t e m S y s t e m C o n t r o l P r o g r a m m i n g a n d P r o g r a m P r o d u c t s . T h e f a c i l i t i e s d e s c r i b e d i n t h i s p u b l i - c a t i o n f o r t h e M o d e l 1 0 a r e a l s o a p p l i c a b l e t o t h e M o d e l 8 , a l t h o u g h th e M o d e l 8 i s n o t r e f e r e n c e d . N o t a l l d e v i c e s a n d f e a t r r r e s a v a i l a b l e o n t h e M o d e l 1 0 a r e a v a i l a b l e o n t h e M o d e l B . T h e r e f o r e , M o d e l 8 u s e r s s h o u l d b e f a m i l i a r w i t h t h e c o n t e n t s o I t h e I B M System/3 Model 8 lntroduction, GC21 51 14"

S y s t e m / 3 M o d e l 1 0 D i s k S y s t e m u s e r s s h o u l d n o t e t h a t : o I n t h i s p u b l i c a t i o n th e S y s t e m / 3 M o d e l ' 1

0 D i s k S y s t e m i s t e r m e d t h e M o d e l 1 0 . W i t h o u t e x c e p t i o n , a l l r e f e r e n c e s t o M o d e l 1 0 a p p l y t o t h e M o d e l 1 0 D i s k S y s t e m .

System/3 CCP/Disk Sort Program for Models 8, 10, 1 2 . a n d 1 5

A p p e n d i x I p o i n t s o u t t h e d i f f e r e n c e s b e t w e e n th e C C P / D i s k S o r t P r o g r a m s f o r M o d e l s 8 , 1 0 , 1 2 , a n d 1 5 a n d t h e c o r r e s p o n d i n g D i s k S o r t P r o g r a m f o r t h e s e s y s t e m s .

(8)

S y s t e m / 3 M o d e l s 1 2 a n d 1 5 u s e r s s h o u l d n o t e th a t : T h e I B M 3 3 4 0 D i r e c t A c c e s s S t o r a g e F a c i l i t y a t t a c h e s t o t h e S y s t e m / 3 M o d e l 1 2 a n d t o t h e S y s t e m / 3 M o d e l s 1 5 8 , 1 5 C , a n d 1 5 D .

The IBM 3344 Direct Access Storage attaches to the S y s t e m / 3 M o d e l 1 5 D .

C e r t a i n a r e a s o n t h e 3 3 4 0 a n d 3 3 4 4 d i s k s a r e t r e a t e d a s 5444 disks. These areas are known as 5444 simulation areas and are used for the program libraries and can be u s e d fo r d a t a f i l e s . T h e r e m a i n d e r o f t h e d i s k s p a c e i s known as the main data area and can onlv be used for d a t a f i l e s .

R e f e r e n c e s i n t h i s m a n u a l to t h e 5 4 4 4 , 5 4 4 5 , a n d 3 3 4 0 are to be interpreted according to which disk storage d e v i c e ( s ) i s ( a r e ) a t t a c h e d t o y o u r s y s t e m . T h e f o l l o w i n g t a b l e i s u s e d to d e t e r m i n e t h e m e a n i n g o f t h e r e f e r e n c e :

Models 8 a n d 1 0

Model 1 5 A

M o d e l s 1 2 , 1 5 B , 1 5 C

Model 1 5 D

Reference Meaning M e a n i n g M e a n i n g M e a n i n g

5444 5 4 4 4 D i s k

Storage Drive

5 4 4 4 D i s k S t o r a g e D r i v e

5 4 4 4 s i m u l a t i o n a r e a o n 3 3 4 0

5 4 4 4 s i m u l a t i o n a r e a on 3340 or 3344

5445 5 4 4 8 D i s k

Storage D r i v e o r ( M o d e l 1 0 ) 5 4 4 5 D i s k Storage

5 4 4 5 D i s k Storage

M a i n d a t a a r e a on 3340

M a i n d a t a a r e a o n 3340 or 3344

3340

N o t

a p p l i c a b l e

N o t a p p l i c a b l e

M a i n d a t a a r e a on 3340

M a i n d a t a a r e a o n 3340 or 3344

. A i l r e f e r e n c e s t o t h e S y s t e m / 3 M o d e l 1 5 i n t h i s m a n u a l a p p l y t o a l l m o d e l s o f M o d e l 1 5 a s s p e c i f i e d b e l o w u n l e s s o t h e r w i s e in d i c a t e d :

- F o r D i s k S o r t , p r o g r a m n u m b e r 5 7 0 4 - S M 1 fo r M o d e l s 1 5 A , 1 5 8 , a n d 1 5 C ; a n d p r o g r a m n u m b e r 5 7 0 4 - S M 9 fo r M o d e l 1 5 D .

- F o r C C P / D i s k S o r t , p r o g r a m n u m b e r 5 7 0 4 S M 7 f o r M o d e l 1 5 D .

F o r f u r t h e r i n f o r m a t i o n , s e e th e a p p r o p r i a t e p u b l i c a t i o n listed under Related Publications; for more information a b o u t t h e m a n u a l s o r t h e c o d i n g s h e e t s , c o n t a c t y o u r n e a r e s t I B M b r a n c h o f f i c e .

(9)

R E L A T E D P U B L I C A T I O N S

Type of IBM System/3 Publication

O r d e r N u m b e r

Model 4 Model 6 Model 8 Model 10 Model 'l

2 M o d e l 1 5

l n t r o d u c t i o n G C 2 1 - 5 1 4 6 GA21-9122 G C 2 1 - 5 1 1 4 G C 2 1 - 7 5 1 0 G C 2 1 5 1 1 6 G C 2 1 - 5 0 9 4

S y s t e m C o n t r o l P r o g r a m

R e f e r e n c e GC21-1512 G C 2 1 - 5 1 3 0

GC21-5077 ( 5 7 0 4 - S C 1 ) GC21-5"t62 ( 5 7 0 4 SC2)

O C L a n d D i s k U t i l i t i e s G C 2 1 - 7 5 1 6

C o m o o n e n t s R e f e r e n c e GA34-0001 G 4 2 1 - 9 2 3 6

D i s k C o n c e p t s a n d

P l a n n i n g G u i d e G C 2 1 7 5 7 1

O p e r a t o r ' s G u i d e GC21-5149 GC21 7501 G C 2 1 7 5 0 8 GC21-5144 G C 2 1 - 5 0 7 5

M e s s a g e s / H a l t G u i d e GC21-7541 GC21-7540 G C 2 1 5 1 4 5 G C 2 1 - 5 0 7 6

C o m m u n ic a t i o n s C o n tr o l P r o g r a m T e r m i n a l O p e r a t o r ' s G u i d e

G C 2 1 - 7 5 8 0 G C 2 1 - 7 5 8 0

C C P P r o g r a m m e r ' s

R e f e r e n c e M a n u a l G C 2 1 - 5 1 5 0 G C 2 1 7 5 7 9

Program Logic Manuals:

D i s k S o r t a n d

C C P / D i s k S o r t P L M LY21-0517

System Control

P r o g r a m P L M

s Y 2 i 0 5 0 2 s Y 2 1 - 0 0 4 6 s Y 2 1 0 0 3 3

S c h e d u l e r P L M

s Y 2 1 0 0 3 5

D a t a M a n a g e m e n t P L M

s Y 2 1 0 5 ' , t 2 s Y 2 1 0 0 3 4

(10)

Contents

C H A P T E R 1 . I N T R O D U C T I O N . . H o w t o U s e T h i s M a n u a l .

l m p o r t a n t I n f o r m a t i o n fo r U s e r s o f S y s t e m / 3 C C P / D i s k S o r t

S y s t e m C o n f i g u r a t i o n

C H A P T E R 2 . O V E R V I E W O F D I S K S O R T . T h e T h r e e T y p e s o f S o r t : A d d r o u t , T a g A l o r r g , a n d

S u m m a r y T a g A l o n g

R u n n i n g th e D i s k S o r t o r C C P / D i s k S o r t P r o g r a m S e q u e n c e S p e c i f i c a t i o n s S h e e t .

O r d e r o f S e q u e n c e S p e c i f i c a t i o n s . H o w t o S u p p l y S e q u e n c e S p e c i f i c a t i o n s O C L S t a t e m e n t s .

F i l e C o n s i d e r a t t o n s 7 - T r a c k T a p e C o n s i d e r a t i o n s 9 - T r a c k T a p e C o n s i d e r a l i o n s

R e s t r i c t i o n s o n t h e U s e o t M u l t i l i l e T a p e s ( M o d e l 1 5 ) . . . . . H o w t o S u p p l y O C L S t a t e m e n t s f o r t h e M o d e l 6

H o w t o S u p p l y O C L S t a t e m e n t s f o r t h e M o r l e l 1 0 H o w t o S u p p l y O C L S t a t e n r e n t s l o r t h e M o c l e l 1 2 H o w t o S u p p l y O C L S t a t e m e n t s f o r t h e M o d e l 1 5 T i m i n g C o n s i d e r a t i o n :

P r o g r a m m i n g C o n s i d e r a t i o n s

S p e c i f i c a t i o n s f o r T a g A l o n g S o r t ( S O R T R ) S p e c i f i c a t i o n s f o r A r J d r o u t S o r t ( S O R T A ) S p e c i f i c a t i o n s f o r S u m m a r y S o r t ( S O R T R S )

C H A P T E R 4 . R E C O R D T Y P E S P E C I F I C A T I O N S . . . . 2 6

C o l u m n S u m m a r y . . . . 2 6

C o l u m n D e s c r i p t i o n s . . . 2 7

C o l u m n s 1 - 2 l P a g e N u m b e r ) a n d 3 - 5 ( L i n e N u m b e r ) . . . . . . 2 7

C o l u m n 6 ( L i n e T v p e ) . . . 2 7

f n c l u d e S e t s . . . 2 8

O m ; t S e t s . 1

. 1 . 1 . 2 . 3 . 5 . 6 . 1 . 8

R q

1 0 1 5

t o

1 6

l o t b

1 l 1 1 1 1 1 8 1 9 2 0 2 1

C o l u m n T ( C o n t i n u a t i o n o r C o m m e n t s ) . . . . 3 0

C o l u m n S ( C l Z l D l P l U l . . . 3 0

C o l u m n s 9 - 1 6 ( F a c t o r l L o c a t i o n ) . . . . 3 4 C o l u m n s l T - 1 8 ( R e l a t i o n ) . . . . . . . 3 4

C o l u m n s 4 0 - 7 2 ( C o m m e n t s ) . . . . 3 6

C H A P T E R 5 . F I E L D D E S C R I P T I O N S P E C T F I C A T I O N S . . . . 3 7 C o l u m n 1 9 ( F i e l d o r C o n s t a n t )

C o l u m n s 2 0 - 2 7 ( F a c t o r 2 F i e l d ) . C o l u m n s 2 0 - 3 9 ( F a c t o r 2 C o n s t a n t )

C o l u m n S u m m a r y . C o l u m n D e s c r i p t i o n

C o l u m n s 1 - 2 \ P a g e N u m b e r ) a n d 3 - 5 ( L i n e N u m b e r ) . . . . . . 3 8

C o l u m n 6 ( L i n e T y p e ) . . . 3 8

C o l u m n T ( F i e l d T y p e o r C o m m e n t s ) . . . 3 8

C o l u m n S l C l Z l D l P l U l V ) . . . . . . . 4 0

C o l u m n s T - 8 . . . . . . 4 3

C o l u m n s 9 - 1 6 { F i e l d L o c a t i o n )

C o l u m n 1 7 ( C o n d i t i o n a l l y F o r c e d C h a r a c t e r )

C o l u m n 1 8 ( F o r c e d C h a r a c t e r ) . . . 4 5 C o l u m n 1 9 ( S p e o f y i n g R e p l a c e m e n t s f o r M o r e T h a n O n e

Ch a racte r)

. . 4 4 . . 4 5

C H A P T E R 3 . H E A D E R S P E C I F I C A T I O N S . . . . . 2 2

C o l u m n S u m m a r y . . . . " 2 2

C o l u m n D e s c r i p t i o n s . . . 2 3

C o l u m n s 1 - 2 \ p a g e N u r n b e r ) a n r l 3 5 ( L i n e N u m b e r ) . . . . 2 3

C o l u m n 6 { L i n e T y p e ) . . . 2 3

C o l u m n s l - 1 2 \ J o b l . . . . . 2 3

C o l u m n s 1 3 ' 1 7 lL a r q e s t S u m ( i n B y t e s ) o f C o n t r o l F i e l d L e n g t h s f o r A n y R e c o r d T y p e l . . . 2 3 C o l u m n 1 8 ( A s c e n d i n g o r D e s c e n r l r n g S e r l u e n c e ) . . . . 2 3 C o l u m n 2 6 ( C o l l a t i n g S e q u e n c e r ) . . . 2 3

C o l u m n 2 7 \ P r i n t O p r i o n ) . . . . 2 4

C o l u m n 2 8 ( O u t p u t O p r t i o n f o r T a g A l o n g S o r t s ) . . . . . 2 4 C o l u m n s 2 9 - 3 2 ( O u t p u t R c c o r r : 1 t - e n g t l r f o r T a q A l o n g S o r t s ) . 2 4 C o l u m n 3 4 ( N o n v e r i f y O p t i o n ) . . . . . . 2 4 C o l u m n s 3 7 - 3 8 ( S t o r a g e S i z e ) C C P / D i s k S o r t M o d e l 1 5

5 7 0 4 - S M 7 a n d 5 7 9 9 - A T H . 2 5

C o l u m n 3 9 ( R e c o r d L e n g t h ln d i c a t ' t , ) - C C P / D i s k S o r t O n l y 2 5 C o l u m n s 4 0 - 4 3 { R e c o r d L e n g t h ) C C P l D i s k S o r t O n l y . . 2 5 C o l u m n s 4 O - 7 2 \J o b D e s c r i p t i o n ) o r C o l u r n n s 4 4 - 7 2 \ J o t ,

D e s c r i p t i o n - C C P / D r s k S o r t O n l y ) . . . 2 5 C o l u m n s T 5 - 8 0 ( P r o q r a n r l d e n t i f i c a t i o n / P r o g r a m N a m e ) . . 2 5

4 7 C o l u m n s 2 O 2 2 l O v e r f l o w F i e t d L e n g t h E n t r y ) . . . 5 2

C o l u m n s 2 3 - 3 9 . . . . . . . 5 2

C o l u m n s 4 o - 7 2 ( C o m m e n t s ) . . . . 5 2

C H A P T E R 6 . S A M P L E D I S K S O R T J O B S . . . . . . . 5 3 R e c o r d F o r m a t s fo r t h e I n v e n t o r y F i l e . . . . . . 5 4 R e c o r d F o r m a t s fo r t h e T r a n s a c t i o n F i l e . . . . 5 4 S a m p l e J o b 1 : I n c l u d e o n F i e l d R e l a t i o n s h i p . . . . . . 5 5

H e a d e r S p e c i f i c a t i o n s . . . . . 5 6

R e c o r d T y p e S p e c i f i c a t i o n s . . . ' . . . 5 6

F i e l d s p e c i f i c a t i o n s . . . . . 5 7

S a m p l e J o b r 2 : A d d r o u t S o r t . . . 5 8

H e a d e r S p e c i f i c a t i o n s . . . . . 5 8

R e c o r d T y p e S p e c i f i c a t r o n s . . . 5 9 F i e l d S p e c i f ic a t l o n s .

S a m p l e J o b 3 : A n d L o g i c - O p p o s i t e C o n t r o l F i e l d s . . . . 6 0 H e a d e r S p e c i f i c a t i o n s

R e c o r d T y p e S p e c i f i c a t i o n s

F i e l d S p e c i f i c a t i o n s " ' 6 2

S a m p l e J o b 4 : M u l t i p l e I n c l u d e S e t s w i t h F o r c e . . . . 6 3

H e a d e r S p e c i f i c a r i o n s . . . . . 6 5

R e c o r d T y p e S p e c i f i c a t i o n s

E x a m p l e s o t U s r n g F o r c e d C o n t r o l F i e l d s .

6 1 6 1

. . . 6 5 F i e l d S p e c i f i c a t i o n s

S a m p l e J o b 5 : S u m m a r y S o r t - E l i m i n a t i n g D u p l i c a t e s . . . . . . 6 ?

H e a d e r S p e c i { i c a t i o n s . . . . . 6 8

R e c o r d T y p e S p e c i f i c a t i o n s

F i e l d S p e c i f i c a t i o n s . . . . . 6 8

(11)

S a ' n p l e J o b 6 D a t a F D V

S u m m a r v S o r t - l n s e r t i o n o f C h a r a c t e r H e a d e r S p e c i f i c a t i o n s .

R e c o r r i - i ' y p e

S p e c i f i c a t i o n s F i e l d S p e c r t i c a t i o n s .

S a n r p l e J r : b 7 : N e g a t i v e V a l u e s P o s s i b l e H e a d e r S p e c i f i c a t i o n s .

R e c o r d T y p e S p e c i f ic a t i o n s F i e l d S p e c i f i c a t i o n s

S a m p l e J o b 8 : M u l t i p l e I n p u t F i l e s H e a d e r S p e c i f i c a t i o n s .

R e c o r d T y p e S p e c i f i c a t i o n s F i e l d S p e c i t i c a t i o n s .

S a m p l e J o b 9 : R e c o r d S e l e c t i o n o n B i n a r y V a l u e s . T y p e 1 I n c l u d e S e q u e n c e

T y p e 2 I n c l u d e S e q u e n c e S a m p l e S o r t J o b 9 D e s c r i p t i o n H e a d e r S p e c i f i c a t i o n s . R e c o r d T V p e S p e c i f ic a t i o n s F i e l d S p e c i f r c a t i o n s .

C H A P T E R 7 . I N T E G E R { B I N A R Y } A N D R E A L N U M B E R

s o R T r N G . . . 8 3

S a r n p l e J o b 1 : S o r t i n g o n a C o n t r o l F i e l d t h a t C o n t a i n s E i t h e r a P o s i t i v e I n t e g e r o r a P o s i t i v e R e a l N u m b e r

H e a c l e r S p e c i f i c a t i o n R e c o r d T y p e S p e c i f i c a t i o n s F ie l d S p e c r f i c a t i o n s .

S a m p l e J o b 2 : S o r t i n g o n a C o n t r o l F i e l d t h a t C o n t a i n s O n l y

a P o s i t i v e o r N e g a t i v e I n t e g e r . . . 8 5

H e a d e r S p e c i f i c a t i o n . . 8 6

R e c o r d T y p e S p e c i f i c a t i o n s . . . . . 8 7

F i e l d S p e c i i i c a t i o n s . . . . 8 7

S a m p l e J o b 3 : S o r t i n g o n a C o n t r o l F i e l d t h a t C o n t a i n s O n l y a P o s i t i v e o r N e g a t i v e R e a l N u m b e r . . . . . 8 8

H e a d e r S p e c i f i c a t i o n . . . . 8 9

R e c o r d f v p e S p e c i f i c a t i o n s . . . 9 0

F i e l d S p e c i f i c a t i o n s . . . . . 9 0

A P P E N D I X D . T I M I N G C O N S I D E R A T I O N S . . M a i n S t o r . , , l u , S i z e

N u m b e r o f R e r - o r r i s to l ; e S o r t e d R e c o r d S i z e

N u m b e r o f S e t l u e ; r i : r S p t : c i f r c a l i o n s A i t e r n a t r . . C o l l a r i n g S e q u e n c e D r s k t - o c a t . , ; r o { 1 h . . , F r l p s

O r d e r c f t h e C o n i r o l F i e ld s i n t f r e I n p u t F i l e U s e o f t h e A u t o m a t i c W o r k F i l r : A l l o c a t i o n F u n c t i o n N o n v e r r f y O p t r o r r

S a m p l e D i s l S o r l I r m r n g s

M o c l e l 6 a n d M o r j e l 1 O T i r n i n g s O r r l y . M o d c l l 5 f r m , t , q r

S a m p l e M o r l e l [ i a , r d M o r i c l 1 0 T i r n i r r g s S a m p l e l r / o < j e l 1 i r T r n r i n q s

S a m o l e M o r l e l 1 ? T i m i t r ! l s

A P P E N D I X E . C A L C U L A T I N G S I Z E O F F I L E S I n p u t F i l r '

O u r p u t f r I c W o r r I r i , r

W ' ; r I F - l - S r z . l f r r t, . ' E r a r r r p l e

5 4 4 4 D i s r . F r r e , , 5 4 4 5 [ ) r s I i r r e s

3 3 4 0 D i s k F i l e s ( M o r l e r 1 2 a ' r r 1 N 1 o t j e l 1 5 1 .

69 1 0 7 0 7 0

7 2 7 3 14 7 6 1 6 7 7 1 8 1 B l 8 1 9 8 2 a 2 8 2

1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 . 1 1 1 . 1 1 3 . 1 1 3 . 1 1 3 . 1 1 3 . 1 1 3 . 1 1 3 . 1 1 4 . 1 1 5 . 1 1 5 . 1 1 6

. I t o . l t o

. 1 1 6 . 1 1 8 . 1 1 9 . 1 1 9 . 120 . 120 8 3

8 4 8 4

a 4 A P P E N D I X F . M E S S A G E S . 121

A P P E N D I X G . I N S T R U C T I O N S F O T - I E X E C U T I N G T H E D I S K

S O R T S A M P L E P R O G R A M . . 1 4 6

S a r n p l e P r o u r a m f o r M o d e l 6 . . 1 4 6

S a m p l e P r o l l r a n r f o r M o r l e l 8 , M o r i e l 1 t ) , M o d e l 1 2 , a n d

M o r l r , l 1 5 1 4 1

A P P E N D I X A . C O N V E R S A T I O N A L O C L C n r l i n g C C L C y t ' l e s .

T l r e M o d i f y S t a t e m e n t f h r . L o a r i C y c l e . I h e B u i l d C v c l e . T h e C a l l C y c l e .

A P P E N D I X B . S U P P L Y I N G S E O U E N C E S P E C I F I C A T I O N S . 1 O O I n l e r r e l a t i o n s h i r ) o f C o n v e r s a t i o n a l O C L a n d S e q u e n c e

S p e c i f i c a t i o n s { M o d e l 6 ) 1 0 1

S u p l r l y i n g O C j L S t a t e m e n t s a n d S e q u e n c e S p e c i f i c a t i o n s f o r t h e M o c l e l 1 0 . t h e f \ 4 o d e l 1 2 . a n d t h e M o d e l 1 5 . , . . . 1 O 2 W h i c h O C L a n d S e q u e n c e S p e c i f ic a t i o n M e t h o d t o U s e f o r t h e

M o d e { 1 0 . r h r : M o d e l 1 2 . a n d t h e M o d e l 1 5 . . . 1 0 5

A P P E N D I X H . C C P / I } I S K S O R T S P E C I F I C A T I O N S

D | F F E R E N C E S . . . . . . . 1 4 8

C C P / L r i s k S o r t O v e r v r l l v . . . 1 4 8

F t i e S t a t e n r . r f r t C o n s r ( i e r i j t r o n s . . . . 1 4 8

M u l t i p l e l r r p u t I r l e s t M o d e l l 5 o n i y i . . . 1 4 9 O u t p u t F i i t ; O v e r I n t r u t F i l e C o n s i d e r a t i o r r s f o r M o c l e l 4 . . . . 1 4 9

W o r k R e c o r d L c n g t i ) , - 1 4 9

C C P / D i s k S o r t O b l e c t P r r r r : t r a r r ' - j e i , c r a t i o n J o b S t r e a r r t t x a ' n p l r :

C C P A s s i g n m e n t S e l S t a t r - , n r e n 1 s E x a r n p l { )

C C P i D i s k S o r r E x e c u l i o n { B a t c t r l V l o t l e ) - l o b S t r e a r r ) F x a m r l l e

A P P E N D I X I. C C P / D I S K S O R T P R O G R A M F O R S Y S T E M / 3 M O D E L S A , 1 0 , 1 2 , 1 5 A . 1 5 t s , A N D 1 5 C . . . 1 5 4 C C P i D i s k S o r t P r o g r a m ( P r r > g r a r n N u r n L r e r 5 7 9 9 ' 4 T F ) . . . 1 5 4 C C P l O r s k S o r t P r o , g r a r n ( P r o t l r a r r r \ L r r n l : c r 5 7 9 9 ' 4 T G ) . . . 1 5 4 C C P / D i s k S o r t P r o q r a r r ( [ ' r r r t ] r a , r r l \ J i r r r r b e r 5 7 9 9 - A l H ] . . . 1 5 4

I \ P P E N D I X . I . G L O S S A N Y . . . . 1 5 5

T N D E X . . . . 1 5 7

. 1 5 0 . t 1 z

. t c J

A P P E N D I X C . C O L L A T I N G S E O U E N C E . . S t a n d a r d C o l l a t i n g S e q u e n c e

A l t e r n a t e C o l l a t i n g S e q u e n c e C o d i n g R u l e s

I n p u t O r d e r w h e n A L T S E Q S t a t e m e n t s a r e U s e d . P r o g r a m m in g C o n s i d e r a t i o n s

E f l e c r o f A L T S E O S t a t e m e n t s o n O t h e r C o d i n g S a m p l e A L T S E O S t a t e m e n t s

P r o g r a r r r t n r n g A i d s

1 0 6 1 0 1 1 0 1 1 4 1 1 0 8 1 0 8 1 0 8 1 0 8 1 0 8

(12)
(13)

C h a p t e r 1 . I n t r o d u c t i o n

T h i s p u b l i c a t i o n is c l e s i g n e d t o h e l p y o u , t h e p r o g r a n l m e r , A c o l u m n s u m m a r y a n d c o l u m n d e s c r i p t i o n s a r e p r o v i d e d

use System/3 Disk Siort and System/3 CCP/Disk Sort. The for each type of specification:

C C P / D i s k S o r t P r o g r a m is u s e d w i t h t h e C o m m u r r i c a t i o n s

Control Program on the Systemi3 lVlodel 4 with Program . Header

N u m b e r 5 7 0 3 - S M 2 a n d M o d e l 1 5 w i t h P r o q r a m N u m b e r

5 7 0 4 . S M 7 . . R e c o r d ty p e

o F i e l d d e s c r i p t i o n H O W T O U S E T H I S M A N U A L

Your need for reference material varies with programnring lmportant Information for Users of System/3

e x p e r i e n c e a n d f a n r i l i a r i t y w i t h a p a r t i c u l a r s y s t e m . T h i s C C P / D i s k S o r t m a n u a l c o n t a i n s fo u r d i f f e r e n t l e v e l s o f i n f o r m a t i o n :

S y s t e m / 3 C C P / D i s k S o r t u s e r s s h o u l d r e v i e w A p p e n d i x H

1. Overview of Sequence Specif ications shows which prior to coding your program for the following reasons:

c o l u m n s o n t h e s e q u e n c e s p e c i f i c a t i o r r s s h e e t y o u

m u s t c o n s i d e r w h e n v o u w a n t t o s o r t a d i s k o r t a p e . l f y o u a r e k n o w l e d g e a b l e w i t h S y s t e m / 3 D i s k S o r t

f i l e . p r o g r a m m i n g a n d S y s t e m / 3 C C P , A p p e n d i x H i l l u s -

t r a t e s th e C C P / D i s k S o r t d i f f e r e n c e s y o u r c o d i n g m u s t

2. Column Summaries list the possible entries for each ref lect.

c o l u m n o n t h e s e q u e n c e s p e c i t i c a t i o n s h e e t .

. A p p e n d i x H p r o v i d e s a C C P / D i s k S o r t o v e r v i e w . F o r

3. Column Desc:riptions explain the possible errtries more details, refer to the chapter discussions.

f o r e a c h c o l u m n i n o r e a t e r d e t a i l .

o lf you are a first time user of System/3, System/3 Disk

4. Sample Jobs show how to fill out the sequence Sort, or System/3 CCP/Disk Sort, Appendix H provicles

s p e c i f i c a t i o n s h e e t s f o r t y p i c a l j o b s . r a n o r i e n t a t i o n to S y s t e m / 3 C C P / D i s k S o r t f o r y o u r r ' S y s t e m / 3 M o d e l 4 ( 5 7 0 3 - S M 2 ) o r M o d e l 1 5 w i t h

H e r e is h o w t o u s e e a c h le v e l : P r o g r a m N u m b e r 5 7 0 4 - S M 7 .

o U s e th e O v e r v i e w to s e e w h i c h c o l u m n s o n t h e s e q u e n c e A d d i t i o n a l i n f o r m a t i o n o n S y s t e m / 3 C C P / D i s k S o r t s p e c i f i c a t i o n s s f r e e t y o u m u s t c o n s i d e r w h e n y o u w a n t P r o g r a m s f o r S y s t e m / 3 M o d e l s 8 a n d ' l

0 ( 5 7 9 9 - A T F ) , t o s o r t a d i s k o r t a p e f i l e . S y s t e m / 3 M o d e l 1 2 ( 5 7 9 9 - A T G ) , a n d S y s t e r n / 3 M o d e l s

1 5 A , 1 5 8 . a n d 1 5 C ( 5 7 9 9 - A T H ) i s p r o v i d e d i n A p p e n d i x I a Use the Column Summaries for a quick recall of the

p o s s i b l e e n t r i e s fo r e a c h c o l u m r r o n t h e s e q u e n c e s p e c i - fications sheet.

. Use the Column Descriptions vvhen you need a detailed

e x o l a n a t i o n o f t h e e n t r i e s f o r a p a r t i c r . r l a r c o l u m n .

. Use the Sample Jobs to review coding techniques for

a c t u a l jo b s . r

l S e e A p p e n d i x H f o r C C P / D i s k S o r t d i f f e r e n c e s

l n t r o d u c t i o n I

(14)

S Y S T E M C O N F I G U R A T I O N

F o r i n f o r r n a t r o n c o n c e r n i n g t h e m i n i m r u m s v s t e m c o n f ig u r a t i o n f o r d i s k s o r t a r . r d a d d i t i o n a l d e v i c e s s u p p o r t e d , s e e o n e o f t h e f o l l o w i n g p u b l i c a t i o n s . a s a p p r o p r i a t e f o r y o u r System/3 nroclel:

. IBM System/3 Models 4, 6, 8, 10, a,nd 12 System Generation Reference Manual. GC21 5126

. IBM Systent/3 Model l5 System Ge,neration Reference

Manual, GC21-7616

. IBM Systern/3 Model 6 lntroductio,n, GA21-9'122 . IBM Systent/3 Model I lntroduction, GC21 5114 . IBM Systent/3 Model 12 lntroduction, GC21-51 16

. IBM Systern/3 Model TS lntroduction, GC21-5094

(15)

W i t h t h e I B M D i s k S o r t o r C C P / D i s k S o r t ( a l s o s e e A p p e n - d i x H ) P r o g r a m y o u c , a n :

o R e a r r a n g e t h e r e c o r d s in a d i s k o r t a p e f i l e :

...-..._

. D r o p r e c o r d s f r o m a d i s k o r t a p e f i l e :

a R e f o r m a t th e r e c o r d s in a d i s k o r t a p e f i l e :

Chapter 2. Overview of Disk Sort

O v e r v i e w o f D i s k S o r t

(16)

H e r e is h o w t h e D i s k S o r t o r C C P / D i s k S o r t p r o q r a m w o r K s w i t h t h e r e c o r d s in y o u r f i l e :

1 . D i s k s o r t r e a d s a r e c o r d f r o m t h e i n p u t f i l e :

26 2l

C o n r r o l f i e l d A C o n t r o l f i e l d B

T h e w o r k r e c o r d d i s k s o r t b u i l d s w o u l d l o o k l i k e t h i s :

4 5 I l 0

See Column 7, Field Description Specifications for a m o r e d e t a i l e d d i s c u s s i o n o f t h e w o r k r e c o r d .

l f y o u a r e n o t d r o p p i n g c o n t r o l f i e l d s , th e y w i l l a l - w a y s p r e c e d e d a t a l i e l d s i n t h e w o r k a n d o u t p u t records (see Column 28-Header Specifications tor a d i s c u s s i o n o f d r o p p i n g c o n t r o l f i e l d s ) .

D i s k s o r t w r i t e s a l l t h e r e c o r d s V o u w a n t t o s o r l i n t o t h e w o r k f i l e .

D i s k s o r t c h e c k s y o u r s e q u e n c e s p e c i f i c a t i o n s t o s e e h o w y o u w a n t t o a r r a n g e t h e r e c o r d s ir r t h e o u t p u t f i l e ( a s c e n d i n g o r d e s c e n d i n g o r d e r b y c o n t r o l f i e l d s ) . D i s k s o r t w r i t e s t h e r e c o r d s in t h e o u t p u t f i l e i n t h e o r d e r y o u h a v e s p e c i f i e d . T h e o n l y e x c e p t i o n is w h e n y o u w a n t t o d r o p c o n t r o l f i e l d s fr o n r t h e o u t p u t r e c o r d .

/y'ote.' Control f ields are the f ields you want disk sort to use to sort the records. See Column 7 under Field Descrip- tian Specifications tor a detailed disr:ussion of control fields.

2 . D i s k s o r t c h e c k s y o u r s e q u e n c e s p e c i f i c a t i o n s t o s e e whether the record is one you want to sort (ofterr y o u m a y n o t w a n t t o s o r t a l l t h e r e c o r d s in t h e f i l e ) . 3 . l f t h e r e c o r d r ' s o n e y o u w a n t t o s o r t . d i s k s o r t b u i l d s

a w o r l < r e c o r d , fo r m a t t i n g i t a c c o r d i n g t o y o u r s e q u e n c e specif ications (the format of tlre work record is im- portant because it controls the fclrrnat of the outpt_rt r e c o r d ) .

Assume that your seq_uence spr:cif ications say:

a . P u t t h e c o n t e n t s o f p o s i t i o n s 2 7 - 3 0 i n r h e i n p u r r e c o r d in t o p o s i t i o n s 1 - 4 o f t h e w o r k r e c o r d . b . P u t t h e c o n t e n t s o f p o s i t i o r r s 1 - 5 i n t h e i n p u t recclrd into positions 5-9 of the work recoro.

c . F u t t h e c o n t e n t s o f p o s i t i o n s 6 - 2 6 i n t h e i n p u t necr:rd into positions 10-30 of the work record.

4 .

6

o .

C o n t r o l f i e l d B

(17)

T H E T H R E E T Y P E S O F S O R T : A D D R O U T , T A G

A T L O N G , A N D S U M M A R Y T A G A L O N G

T ' h e r e a r e th r e e t y p e s o f s o r t . j o b s : a d d r o u t ( a d d r e s s o u t ) , tag af ong (data fields can tag along wirh control f ields i n t h e s o r t e d r e c o r d s ) , a n d s u m m a r y t a g a l o n g ( d a t a i s s u m n r a r i z e d i n t h e s o r t e d r e c o r d s ) .

-T'he

output f rom an addrout sort lob consists of 3-byte b i n a r y r e l a t i v e r e c o r d n u m b e r s o f t h e r e c o r d s i n t h e i n p u t f i l e .

E m p l o y e e m a s t e r f i l e

C O n t f o l f i e l d s a n d d a t a C o n t r o l f i e l d s o n l y

The output for a tag along sort is a file of sorted records.

The sorted records can contain:

. C o n t r o l f i e l d s a n d d a t a . C o n t r o l f i e l d s o n l y o D a t a o n l y

D a l a o n l v R e c o r d a d c J r e s s e s o n l y

--.</- -,./---\kq.--,

)

('

! o o

!o ac

l \ d d r o u t s o r t

O v e r v i e w o r D i s l < S o r t 5 0 7 1 7 5 $ 3 . 5 0

0 6 ' t 7 4

$ 2 . 2 5 0 5 1 7 1 $ 4 . 0 0 0 4 1 7 0 $ 2 . 5 0

0 2 1 6 2 $ 2 . 1 5 0 1 1 5 0 $ 3 0 0 0 o 1 1 6 9 4 O 0

I

I

{

D i s k s o r t p r o q r a m

1 1 6 $4.00

T a g a l o n g s o r t

(18)

o a

T h e o u t p u t f o r a s u m m a r y t a g a l o n g s , o r t is a f i l e o f s o r t e d r e c o r d s . T h e s o r t e d r e c o r d s c a n c o n t a i n :

C o n t r o l f i e l d s , d a t a f i e l d s , a n d s u r n m a r y d a t a C o n t r o l f i e l d s o n l y

D a t a f i e l d s a n d s u m m a r y d a t a S u m m a r y d a t a f i e l d s o n l y

R U N N l N G T H E D I S K S O R T O R C C P / D I S K S O R T P R O G R A M

I n p u t

P r o c e s s i n g

O u t P u t

' - O C , l -

r t u t " - " r t s a r e y o u r i n s t r u c t r o n s t o t h e c o m p u t e r . ' s n q u u r " "

r p u " i f i c a t i o n s a r e y o u r i n s t r u c t i o n s t o t h e d i s k s o r t p r o g r a m .

' t

F i l u t o b e s o r t e d c a n b e a n r n d e x e d , s e q u e n t i a l , o r d i r e c t disk f i l e , o r a s e q u e n t i a l r a p e f i l e ( o r c a r d o r 3 - l 4 j d i s k e t t e f i l e f o r M o d e l 1 5 ) .

4 W o r k

f i l e i s a n a r e a o n d i s k w h e r e d r s k s o r t w r i t e s a l l t h e r e c o r d s y o u w a n l t o s o r t . T h e p r o g r a m can then work with the records t h e r e w i t h o u t d i s t u r b i n g t h e i n p u t f i l e .

5 S o r t e d f / / e c a n c o n t a i n :

3 l - h e r e l a t i v e r e c o r d n u m b e r s o f t h e r e c o r d s i n t h e f i l e b . P a r t o r a l l o f t h e r e c o r d s t h e m s e l v e s ( f o r m i n g a s e q u e n t i a l

f i l e )

F i l e to b e s o r t e d J

D i s k S o r t p r o g r a m W o r k f i l e a

S o r t e d f i l e s

(19)

I S E O U E N C E S P E C I F I C A T I O N S S H E E T -[he

sequence specifications sheet contains three different

l < i n d s o i s p e c i f i c a t i o n s : h e a d e r , r e c o r d ty p e , a n d f i e l d c l e s c r i p t i o n . T h e s a m p l e s p e c i f i c a t i o n s s h e e t b e l o w s n o w s t h e l o c a t i o n a n d p u r p o s e o f a l l t h r e e .

t T l

S f Q U E N C E S P E C I F I C A l I O N S H e a d e l

l -

I

i

H e r e y o u s p r e c i f y h o w y o u w a n t t h e r e c o r d s s o r t e o .

I )

I ) -.

H e a d e r s p e c i f i c a t i o n s

R e c o r d t y p e s p e c i f ic a t i o n s

F a e l d d e s c r i p t i o n s p e c r f ic a t i o n s

R e c o r d I y p e

I

H e r e y o u s p e c i f y th e t y p e o f s o r t lob you are going to run.

H e r e y o u s p e c i f y ' w h i c h o f t h e f i l e ' s r e c o r d s V o u w a n t t o s o r t .

O v e r v i e w o f D i s k S o r t 1

(20)

P a g e o f S C 2 1 - 7 5 2 2 - 8 l s s u e d 2 8 M a r c h 1 9 8 0 B y T N L : S N 2 1 - 5 7 0 4

Order of Sequence Specif ications

T h e n o r m a l o r d e r o f s e q u e n c e s p e a i f i c a t i o n s i s : 1 . H e a d e r l i n e

2 . R e c o r d ty p e l i n e s 3 . F i e l d d e s c r i p t i o n l i n e s

T h i s o r d e r c a n v a r y , h o w e v e r , d e p e n d i n g o n h o w m a n y records you want to sort and the format of those records ( f o r m a t r e f e r s to t h e l o c a t i o n s , l e n g t h s , a n d t y p e s o f f i e l d s i n a r e c o r d ) . l f , f o r e x a m p l e , y o u w a n t t o s o r t a l l t h e r e c o r d s i n a f i l e a n d t h e y a l l h a v e th e s a m e fo r m a t - y o u d o n o t h a v e to f i l l o u t r e c o r d ty p e s p e c i f i c a t i o n s ( t h i s is o f t e n r e - f e r r e d t o a s im p l i e d in c l u d e - a l l ) .

N u m b e r o f R e c o r d s to Be Sorted

F o r m a t o f R e c o r d s

to Be Sorted O r d e r o f S e q u e n c e S p e c i l i c a t i o n s A l l t h e r e c o r d s i n

t h e f i l e ( i m p l i e d i n c l u d e - a l l )

A l l t h e s a m e 1 . H e a d e r l i n e

2 . F i e l d d e s c r i p t i o n l i n e s

S o m e o f t h e r e c o r d s i n t h e f i l e

A l l t h e s a m e 1 . H e a d e r l i n e 2 . R e c o r d ty p e l i n e s 3 . F i e l d d e s c r i p t i o n l i n e s A l l o r s o m e o f

t h e r e c o r d s in t h e f i l e

S e v e r a l d i ff e r e n r f o r m a t s

1 . H e a d e r l i n e 2 . R e c o r d ty p e l i n e s

I F o r f i r s t t y p e o f 3 . F i e l d d e s c r i p t i o n l i n e s I r e c o r d fo r m a t 4 . R e c o r d ty p e l i n e s I F o r s e c o n d t y p e 5 . F i e l d d e s c r i p t i o n l i n e s \ o f r e c o r d fo r m a t

6 . R e c o r d ty p e l i n e s I O n e s e t f o r e a c h a d d i r i o n a l 7 . F i e l d d e s c r i p t i o n l r n e s \ t y p e o f r e c o r d f o r m a t l l T h i s c l o e s n o t m e a n th a t t h e r e c o r d s i r . t t h e f i l e m u s t b e g r o u p e d b y f o r m a t t y p e . T h e s e q u e n c e s p e c i f -

i c a t i o n s m u s t b e g r o u p e d ( o n e s e t o f r e c o r d type and field description lines for each format type). The r e c o r d s th e m s e l v e s c a n b e i n a n v o r d e r .

F o r d e t a i l e d in f o r m a t i o n o n h o w t o i n c l u d e o r o m i t c e r t a i n A p p e n d i x B s u m m a r i z e s : r e c o r d s w h e n y o u a r e s o r t i n g a f i l e , s e e C o l u m n 6 u n d e r

Record Type Sprcifications. o The advantages and disadvantages of c'ach of these

m e t h o d s

H o w t o S u p p l y S e q u e n c e S p e c i f i c a t i o n s . T h e i n t e r r e l a t i o n s h i p o f t h e t h r e e m e t h o d s o f s u p p l y r n g s e q u e n c e s p e c i f i c a t i o n s a n d t h r e e o f t h e O C L c y c l e s Y o u c a n s u p p l y th e s e q u e n c e s p e c : i f i c a t i o n s f r o m : ( L O A D , B U I L D , a n d C A L L )

a T h e d e v i c e y o u a r e u s i n g to s u p p l y t h e O C L s t a t e m e n t s / y ' o f e . . R e g a r d l e s s o f t h e m e t h o d u s e d to r e a d th e s o r t s p e c i f i c a t i o n s t a t e m e n t s , t h e s y s t e m in p u t d e v i c e is o A n O C L p r o c e d u r e c o n t a i n i n g t h e L O A D , F I L E , a n d d e d i c a t e d t o t h e p a r t i t i o n in w h i c h t h e s o r t i s r u n n i n g

R U N s t a t e m e n t s f o r t h e j o b ( t l r e O C L p r o c e d u r e m a y o r u n t i l a l l s u c h s t a t e m e n t s a r e r e a d . m a y n o t c o n t a i n o t h e r j o b s )

o A s o u r c e li b r a r y m o d u l e

(21)

O C L S T A T E M E N T S

B e f o r e y o u r s y s t e m c a n r u n a s o r t j o b , i t n e e d s ce r t a i n in - f o r m a t i o n a b o u t t h e d i s k s o r t p r o g r a m , th e s e q u e n c e s p e c i - f l c a t i o n s fo r t h e j o b , a n d t h e f i l e s i n v o l v e d in t h e j o b ( e v e r y s o r t j o b u s e s a m i n i m u m o f t h r e e fi l e s : a n i n p u t f i l e , a w o r k f i l e , a n d a n o u t p u t f i l e ) . Y o u s u p p l y th i s i n f o r m a t i o n in ( J C L statements. Here is the information you musr suppty:

,4bout the Sequence Specif ications , L

H o w y o u a r e g o i n g to e n t € r r t h e s e q u e n c e s p e c i f i c a t i o n s ( f o r e x a m p l e , k e y b o a r d fo r the Model 6, MFCU for t h e M o d e l 1 O , 1 4 4 2 o r M F C U f o r t h e M o d e l . l 2 . or d i s p l a y s t a t i o n o r M F C U f o r M o d e l 1 5 ) .

'.2.

Where you want any computer-to-operator messages pr i nted.

About the Program

i . N a m e o f t h e p r o g r a m y o u w a n t t o r u n ( g D S O R T ) . t l . D i s k d r i v e l o c a t i o n o f t h e r l i s k s o r t p r o g r a m .

t\bout the lnput File

1 . N a m e o f t h e f i l e y o u w a n t t o s o r t . T h e F I L E s t a t e - m e n t n a m e m u s t b e I N P U T ( o r l N P U T l , . . . , l N - P U T S fo r M o d e l 1 2 o r M o d e l 1 5 ) . H o w e v e r , if t h e f i l e n a m e i s n o t I N P U T ( o r l N p U T 1 , . . . , l N p U T g f o r M o d e l 1 2 o r M o d e l 1 5 ) , u s e th e L A B E L k e v - w o r d t o i d e n t i f y t h e a c t u a l f i l e n a m e .

2 1 . U n i t a s : i g n m e n t o f t h e f i l e y o u w a n t t o s o r t : a. All Models Except Model 4: Removable disk 1

o r 2 ( R 1 o r R 2 ) o r f i x e c l d i s k 1 o r 2 ( F 1 o r F 2 l for the 5444

M o d e l 4 : R e m o v a b l e d i s k R 1 o r f i x e d d i s k R 2 , F1, or F2 for the 5447

b . M o d e l 1 0 : D r i v e 1 o r 2 ( D j o r D 2 ) f o r t h e 5 4 4 8 a n d t h e 5 4 4 9 .

c. Model 12: Drive 1 or 2 (D1 or D2l for the 3340 m a a n d a t a a r e a

d. Model | 5: Drive 1 , 2, 3, or 4 (D 1 , D2, D3, or D 4 ) f o r t h e 5 4 4 5 o r 3 3 4 0

e . M o d e l l 5 D : D r i v e 3 [ D 3 1 ( D 3 ) , D 3 2 , D 3 3 , a n d D 3 4 l o r D r i v e 4 l D 4 1 ( D 4 ] r , D 4 2 , D 4 3 , a n d D 4 4 l f o r t h e 3 3 4 4 .

f . D r i v e 1 , 2 , 3 , o r 4 ( f 1 , T 2 , T 3 , o r T 4 ) f o r t a p e g . A l s o s u p p o r t e d o n t h e l \ 4 o d e l 1 5 a r e M F C U .

M FCM, 1442, 2501 , ancl 37 41

h . l f t h e f i l e i s s p o o l e d to c l i s k , s o r t u s e s t h e f i l e a s if i t w e r e c o m i n g f r o m t h e d e v i c e o f 6 ' r i g i n a l e n t r y .

page oi SC21_7b22_8 t s s u e d 2 8 M a r c h 1 9 g O B y T N L : S N 2 1 _ 5 7 0 4 3 . N a m e o f t h e d i s k p a c k o r t a p e t h a t c o n t a i n s t h e f i l e .

4 . l f y o u u s e ta p e , s p e c i f y U N I T , B L K L , a n d R E C L . 5 . l f y o u u s e th e 3 7 4 1 , s p e c i f y R E C L ( M o d e l 1 5 o n l y ) .

About the Work File'

1 . N a m e o f t h e f i l e y o u a r e g o i n g to u s e a s a w o r k a r e a . T h e F I L E s t a t e m e n t n a m e m u s t b e W O R K . h o w e v e r . i f t h e n a m e o f y o u r f i l e i s n o t W O R K , u s e th e L A B E L k e y w o r d t o i n d i c a t e th e a c t u a l n a m e o f t h e f i l e . 2 . D i s k d r i v e lo c a t i o n ( u n i t ) o f t h e w o r k f i l e :

a. All Models Except Model 4: Removable disk 1 o r 2 ( R 1 o r R 2 ) o r f i x e d d i s k 1 o r 2 ( F 1 o r F 2 l tor the 5444

M o d e l 4 : R e m o v a b l e d i s k R 1 o r f i x e d d i s k R 2 , F 1 , o r F 2 f o r t h e 5 4 4 7

b. Model l0: Drive 1 or 2 (D1 or D2l for the 5445 a n d t h e 5 4 4 8 .

c. Model l2: Drive 1 or 2 (D1 or D2) for the 3340 m a i n d a t a a r e a

d . M o d e l | 5 : D r i u e 1 ,2 , 3 , o r 4 ( D 1 , D 2 , D 3 , o r D 4 ) f o r t h e 5 4 4 5 a n d 3 3 4 0

e . M o d e l l 5 D : D r i v e 3 [ D 3 1 ( D 3 ) , D 3 2 , D 3 3 , a n d D 3 4 l o r D r i v e 4 L D 4 1 (D 4 1 , D 4 2 , D 4 3 , a n d D 4 4 l f o r t h e 3 3 4 4 .

3 . N a m e o f t h e d i s k p a c k t h a t c o n t a i n s th e f i r e .

4 . N u m b e r o f t r a c k s in t h e f i l e . ( D o n o t s p e c i f y n u m b e r of records.)

5 . S t a t u s o f t h e f i l e . T h e w o r k f i l e s h o u l d b e a s c r a t c h f i l e s i n c e y o u w o n ' t n e e d it s i n f o r m a t i o n a f t e r a s o r t j o b .

N o t e : T h e w o r k f i l e m u s t b e o n l i n e a t a l l t i m e s d u r i n g t h e s o r t r u n .

' l f

t h e f i l e y o u w a n t t o u s e i s a n o l d ( t e m p o r a r y ) f i l e , y o u m u s l a l s o s u p p l y t h e l o c a t i o n a t w h i c h t h e f i l e b e q t n s .

O v e r v i e w o f D i s k S o r t

Références

Documents relatifs

List the Key and Data field specification lines in the specification file in the same order as the required output record format.. SORT creates the output

There are no transaction types that every memory must be capable of issuing. All memory nodes must respond to the same set of VAXBI data transfer transactions

lf your station is a control station (TypE-CS in the $DTFB macro instruction), you must generate a polling or address- ing list in order to poll or address tributary stations..

Except for SIOC, BSCA, MLMP, and unit record punch operations, l/O protection support ensures that an l/O buffer is within the user partition before allowing an l/O operation

(Not all program requests cause the program request count to be incremented. The exceptions include requests for an already active MRT program and certain rejected

routines of category 126 will be given tlrst consideration for re-inclusion in the root area (non- ovcrlay core). lf this cannot be done, the Overlay Unkage Edi- tor assigns

The standard tnessage fbrrnat consists of characters of data When tl.re control sequence has been completed. the calling from the code selected. excluding specially designated

(The communication specification statements on the diskette must be in basic exchange format.) The communication specification statements can be transferred to the