Service Manuals, User Guides, Schematic Diagrams or docs for : IBM system3 GC21-7566-1_IBM_System3_RPGII_DiskFileProcessingProgrammersGuide_Jun78

<< Back | Home

Most service manuals and schematics are PDF files, so You will need Adobre Acrobat Reader to view : Acrobat Download Some of the files are DjVu format. Readers and resources available here : DjVu Resources
For the compressed files, most common are zip and rar. Please, extract files with Your favorite compression software ( WinZip, WinRAR ... ) before viewing. If a document has multiple parts, You should download all, before extracting.
Good luck. Repair on Your own risk. Make sure You know what You are doing.




Image preview - the first page of the document
GC21-7566-1_IBM_System3_RPGII_DiskFileProcessingProgrammersGuide_Jun78


>> Download GC21-7566-1_IBM_System3_RPGII_DiskFileProcessingProgrammersGuide_Jun78 documenatation <<

Text preview - extract from the document
IBMSystem/3
RPGll DiskFileProcessing
Programmer'sGuide
Pageof cC21 7566 1
lssued30 June 1978
Bv TN L: GN2 tr-5625




SecondEdition (July 1974)

T h i s i s e r m a j o r r e v i s i o n o f , a n d o b s o l e t e s ,G C 2 1 - 7 5 6 6 - 0 a n d T e c h n i c a l N e w s l e t t e r
G N 2 1 - 7 6 5 7 . T h i s m a n u a l h a s b e e n e x t e n s i v e l v r e v i s e da n d s h o u l d b e r e v i e w e d i n
rtsentrr{.'tY.

Information concerningIBM System/3 Model 15 hasbeenadded to the manual, The
entire section entitled Chapter 5. Using Console Devices has been removed from
t h i s m a n u a l . T h e K E Y ( M o d e l 6 o n l y ) a n d D S P L Y o p e r a t i o n c o d e s ,f o r m e r l y d e s c r i b e d
i n C h a p t e r5 , a r e d e s c r i b e d n y o u r R P G l l r e f e r e n c e a n u a l . F o r i n f o r m a t i o n
                                            i                                               m
c o n c e r n i n gt h e R P G l l l n q u i r y f a c i l i t y ( R o l l o u t / R o l l i n ) ,a l s o f o r m e r l y d e s c r i b e d n
                                                                                                                                           i
Chapter 5.see Related Publications, listed in the Preface.

C h a n g e s r e p e r i o d i c a l l y m a d e t o t h e i n f o r . n a t i o n h e r e i n ;b e f o r e u s i n g t h i s p u b l i c a t i o n
                a
in connection with the operation of IBM systems, refer to the IBM System/3
B i b l i o g r a p h y , G C 2 0 - 8 O 8 Of,o r t h e e d i t i o n s t h a t a r e a p p l i c a b l ea n d c u r r e n t .

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

P u b l i c a l 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 sb e l o w . R e q u e s t sf o r c o p i e s o f I B M
p u b l i c a t i o n sa 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 m a d e t o y o u r
I B M r e p , r e s e n t a t i vo r t o t h e I B M b r a n c h o f f i c e s e r v i n gy o u r l o c a l i t y .
                                   e

T h i s p u l l 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 r t y p o g r a p h i c a le r r o r s . U s e t h e
                                                                                                o
R e a d e r ' sC o m m e n t F o r m a t t h e b a c k o f t h i s p u b l i c a t i o n t o m a k e c o m m e n t s a b o u t t h i s
p u b l i c a t i o n . l f t h e f o r m h a s b e e n r e m o v e d ,a d d r e s sy o u r c o m m e n t s 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 O 1 . C o m m e n t s b e c o m e t h e
p r o p e r t ' yo f l B M .



O C o p y r i g h t I n t e r n a t i o n a B u s i n e s M a c h i n e s o r p o r a t i o n1 9 7 1 , 1 9 7 4
                                            l             s             C
                                                                                                                                                  P a g e o f G C 2 1, 7 5 6 6 - 1
                                                                                                                                                  lssued30 June 1978
                                                                                                                                                  By TNL: GN21-5625


                                                                                                                                                                   Preface




 This manualexplains             the RPG ll specif        ications  necessarv            RelatedPublications
t o p r o c e sd i s kf i l e su s i n g h e I B M S y s t e m / 3 o d e l6 ,
               s                       t                         M
M o d e l1 0 D i s kS y s t e ma n d M o d e l1 5 . T h e f o l l o w i n g
                                     .                                                   T h e s e u b l i c a t i o na r er e c o m m e n d e d r a d d i t i o n a l
                                                                                                 p                    s                       fo
typesof f ilesarediscussed:                                                              reference:

o Sequential
                                                                                         GeneralSystem/3
o Indexed
                                                                                         .   l8M System/3 Disk Conceptsand Planning Guide,
.   Direct                                                                                   GC21.7571

o RecordAddress
                                                                                         RPG ll References
I n c l u d e d r ee x a m p l eo f c r e a t i n g n d m a i n t a i n i ne a c h
                 a                  s                a                       g
               f
o f t h e s e i l et y p e s . F o r i n f o r m a t i o n n h o w t h i s p u b -
                                                         o                           .       IBM System/3 Model 6 RPG ll ReferenceManuar.
lication should be read, seeHow to Use This Publication,                                     sc21-7517
t o l l o w i n g h e t a b l eo f c o n t e n t s .
                 t
                                                                                     .       IBM System/3 RPG ll Reference
                                                                                                                         Manual SC21-7504
                                                                                                                              .
This manualis intended programmers     for                        who havea
b a s i c n o w l e d g o f t h e R P Gl l l a n g u a g en c l u d i n gh e
           k                e                                    i,           t
a b i l i t yt o d e s c r i b s e q u e n t i a ln d i n d e x e di l e sa s
                               e               a                  f                  OCL References
input f iles. The reader              must be familiarwith the
information presented                inthe IBM System/3 Disk Con-                    .       IBM System/3 Models 8 and | 0 System Controt
ceptsand PlanningGuide, GC21-7571.                                                           Programming Reference Manual, GC2l-7512

                                                                                     .       IBM System/3 Model l5 System Control programming
Note: lsy detailedinformationconcerning   multi-                                             ReferenceManual, GC21-5O77
volumedisk files - concepts; OperationControl Lan-
guage considerations;                 -
                     RPG I I processing seethe                                       .       IBM System/3 Models 4 and 6 Operation Control
publicationslisted under RelatedPublicationswhich                                            Languageand Disk Utility ProgramsReference
areappropriate your System/3
                for              model.                                                      Manual. GC21-7516

                                                                                     .       IBM System/3 Model l5 SystemControl programming
                                                                                             Conceptsand Reference Manual. GC21 5162
Contents




           CHAPTER 1. SEOUENT]AL FILES.                                                 1
           C r e a t i n ga S e q u e n t i a lF i l e                                  1
                Input Records                                                           3
                Output Record                                                           3
           M a i n t a i n i n g a S e q u e n t i a lF i l e                           6
                Adding Records                                                          7
                T a g g i n gR e c o r d sf o r D e l e t i o n                        16
                Updating Records                                                       16
                 Reorganizing File     a                                               22


           CHAPTER 2. INDEXED FILES                                                    26
           C r e a t i n ga n I n d e x e d F i l e                                    26
                C r e a t i n ga n O r d e r e d l n d e x e d F i l e .               27
                C r e a t i n ga n U n o r d e r e d I n d e x e d F i l e             2a
                Input Record                                                           N
                Output Record                                                          29
           M a i n t a i n i n g n I n d e x e dF i l e
                               a                                                       31
                Updating Records                                                       32
                Adding Records                                                         37
                T a g g i n g R e c o r d sf o r D e l e t i o n                       49
                Reorganizing File     a                                                49
           O t h e r W a y s t o P r o c e s sI n d e x e d F i l e s                  50
                Processing n Indexed File Consecutively
                                  a                                                    50
                Processing n lndexed File Randomly by
                                  a
                   RelativeRecord Number                                               50


            CHAPTER 3. DIRECT FILES                                                    51
            C r e a t i n ga D i r e c t F i l e                                       51
                                                                                       R?
                 C r e a t i n ga D i r e c t F i l e w i t h o u t S y n o n y m s
                 Input Record                                                          54
                 OutDut Record                                                         54
                 C r e a t i n ga D i r e c t F i l e w i t h S y n o n y m s          58
            R e t r i e v a lo f R e c o r d si n a D i r e c t F i l e                60
                 C o n s e c u t i v eR e t r i e v a l                                61
                  Random Retrieval                                                     66
            Maintaining DirectFile
                                 a                                                     70
                  Adding Records                                                       70
                  T a g g i n gR e c o r d sf o r D e l e t i o n                      70
                                                                                        t l
                  Updating Records

             CHAPTER 4. RECORD ADDRESS FILES .                                          79
             F i l e sC o n t a i n i n g R e l a t i v eR e c o r d N u m b e r s
               (ADDROUT Files)                                                          79
                    Creating n ADDROUT File
                                   a                                                    79
                    P r o c e s s i nb y a n A D D R O U T F i l e .
                                      g                                                 80
             F i l e sC o n t a i n i n g R e c o r d K e y L i m i t s                 83
                    C r e a t i n ga F i l e w i t h R e c o r d K e y L i m i t s      83
                    P r o c e s s i n g e q u e n t i a l l yw i t h i n L i m i t s
                                      S                                                 84

              INDEX                                                                     89
                                                  How To Use This Publication




     T h i s p u b l i c a t i o ni s d i v i d e d i n t o f o u r c h a p t e r s :


      t.       S e q u e n t i a lF i l e s


     2.         IndexedFiles

     ?          Direct Files

     4.         Record Address Files

     Each of the chapters discusses                         the RPG | | specificationsneededto create and
     m a i n t a i n a c e r t a i nt y p e o f f i l e . S i n c et h e d i s c u s s i o n is e a c h c h a p t e r a p p l y t o
                                                                                               n
     a p a r t i c u l a rf i l e o r g a n i z a t i o n y o u n e e d r e a d o n l y t h e c h a p t e r f o r t h e f i l e
                                                          .
     organization ou will use.
                             y


     T h i s m a n u a l i s d e s i g n e d o s h o w y o u t h e e n t r i e st h a t m u s f b e m a d e i n o r d e r f o r
                                             t
     t h e s y s t e mt o i d e n t i f y t h e f i l e a n d d e t e r m i n ew h a t f u n c t i o n s a r e t o b e d o n e . O t h e r
     e n t r i e sw i l l b e n e e d e d ,b u t t h e y d e p e n do n t h e j o b y o u a r e d o i n g . R e f e r t o t h e r e f -
     e r e n c em a n u a l f o r y o u r s y s t e m i f y o u n e e d i n f o r m a t i o n o n t h e s e a d d i t i o n a le n t r i e s .



Note Concerning Examples


     M o s t o f t h e e x a m p l e si n t h i s m a n u a l u s e M F C U i n p u t f i l e s a n d u s e 9 6 - c o l u m n c a r d
     i m a g e s o r e p r e s e n t n p u t r e c o r d s . T h i s d o e sn o t i m p l y t h a t e i t h e r t h e M F C U o r
                t                  i
     9 6 - c o l u m nc a r d sm u s t b e u s e df o r i n p u t ; a n y o f s e v e r a i n p u t d e v i c e s a n b e u s e d ,
                                                                                           l                     c
     d e p e n d i n g 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 ny o u h a v e .
                      o

     l f y o u a r e a M o d e l 6 u s e r ,y o u w o u l d p r o b a b l y n o t u s e a c a r d f i l e f o r i n p u t , a l -
     t h o u g h y o u m a y u s e a n o n l i n e d a t a r e c o r d e rf o r c a r d i n p u t . I n s t e a d ,y o u w o u l d
     c r e a t es e q u e n t i a d i s k t r a n s a c t i o nf i l e s i n o n e o f t h e f o l l o w i n g w a y s :
                                  l

     o U s i n g t h e K e y b o a r d D a t a E n t r y c o n v e r s a t i o n au t i l i t y p r o g r a m ( s e eI B M
                                                                                  l
       System/3 Model 6 Conversational lJtility Programs Reference Manual, SC21-75281

    o      U s i n ga n i n t e r a c t i v e P G l l , F O R T R A N , o r B A S I C p r o g r a mt o b u i l d t h e d i s k
                                            R
           f i l e f r o m k e y b o a r di n p u t
Page GC21-7566-1
    of
lssued September
     24        1976
By'TNL: GN21-5427

                The disk transaction would then be usedto updatea disk master
                                                file                                                                      file in the
                s a m e a y M F C Uf i l e sa r eu s e di n t h e e x a m p l eis t h i s m a n u a l .T h u s ,t h e M F c u
                           w                                                           n
                f i l e si n t h e e x a m p l ec o u l db e r e p l a c e d y s e q u e n t i a li s kf i l e s . F o r e x a m p l e :
                                                s                          b                   d



                                                             F i l e D e s c r i p t i o n S p e c i fi c a t i o n




               D e p e n d i n go n t h e S y s t e m / 3 m o d e l a r r dt h e l / O d e v i c e s v a i l a b l e M F C U i n p u t f i l e s s h o w n
                                                                                                           a               ,
               i n m o s t o f t h e e x a m p l e sc a n b e r e p l a c e db y 8 0 - c o l u m nc a r d f i l e s , c o n s o l ef i l e s ,t a p e f i l e s ,
               5 4 4 5 d i s k f i l e s , o r o t h e r t y p e s o f i n p u t f i l e s . M o d e l s 1 0 , 1 2 , a n d 1 5 u s e r sc a n s u b s t i t u t e
               DlSK45 (5445 disk) or DlSK40 (3340 disk) for the clevice ntry DISK (5444 disk) in the             e
               e x a m p l e s , e p e n d i n go n t h e e q u i p m e n t t h e y h a v e . M o d e l 6 u s e r ss h o u l d r e p l a c et h e d e v i c e
                               d
               e n t r y P R I N T E R i n t h e e x a m p l e sw i t h t h e d e v i c ec n t r y T R A C T R l . a n d r e p l a c eB l o c l 


◦ Jabse Service Manual Search 2024 ◦ Jabse PravopisonTap.bg ◦ Other service manual resources online : FixyaeServiceinfo