home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv4.zip / VACPP / IBMCPP / HELP / EVFBILSH.HLP (.txt) < prev    next >
OS/2 Help File  |  1995-05-11  |  742KB  |  26,949 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Version Notice ΓòÉΓòÉΓòÉ
  3.  
  4. Second Edition (September 1995) 
  5.  
  6. This edition applies to Version 3, Release 6, Modification Level 0, of IBM 
  7. Application System/400 Integrated Language Environment COBOL/400 (Program 
  8. 5716-CB1) and to all subsequent releases and modifications until otherwise 
  9. indicated in new editions. Make sure you are using the correct edition for the 
  10. level of the product. 
  11.  
  12. Order publications through your IBM representative or the IBM branch office 
  13. serving your locality. Publications are not stocked at the address given below. 
  14.  
  15. A form for readers' comments is provided at the back of this publication. If 
  16. the form has been removed, address your comments to: 
  17.  
  18. IBM Canada Ltd. Laboratory
  19. Information Development
  20. 2G/345/1150/TOR
  21. 1150 Eglinton Avenue East
  22. North York, Ontario, Canada. M3C 1H7
  23.  
  24. You can also send your comments by facsimile (attention: RCF Coordinator), or 
  25. you can send your comments electronically to IBM. See "Communicating Your 
  26. Comments to IBM" for a description of the methods. This page immediately 
  27. precedes the Readers' Comment Form at the back of this publication. 
  28.  
  29. When you send information to IBM, you grant IBM a nonexclusive right to use or 
  30. distribute the information in any way it believes appropriate without incurring 
  31. any obligation to you. 
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ <hidden> ILE COBOL/400 Language Help - Main Panel ΓòÉΓòÉΓòÉ
  35.  
  36. For help on ILE COBOL/400 language clauses, statements, special registers, and 
  37. figurative constants, select from the following topics. 
  38.  
  39.  Environment Division Clauses 
  40.  Data Division Clauses 
  41.  Procedure Division Statements 
  42.  Special Registers 
  43.  Figurative Constants 
  44.  Compiler-Directing Statements 
  45.  
  46. For help on the structure of an ILE COBOL/400 program, select from the 
  47. following topics. 
  48.  
  49.  ILE COBOL/400 Program-Overall Structure 
  50.  Identification Division 
  51.  Environment Division 
  52.  Data Division 
  53.  Procedure Division 
  54.  
  55. For help on the ILE COBOL/400 language concepts, select from the following 
  56. topics. 
  57.  
  58.  Characters, character-strings, words, literals, comments, and separators 
  59.  Sections and paragraphs 
  60.  Reference format for a COBOL source line (Sequence Number Area, Indicator 
  61.   Area, Area A, Area B, and Comment Area) 
  62.  Methods of referencing data and procedures 
  63.  Types of COBOL names and their scope 
  64.  Methods of transferring control of program flow from one statement to another 
  65.   statement. 
  66.  
  67. Note:   To select a topic, click on the topic with the mouse, or move the 
  68. cursor to the topic and press Enter. 
  69.  
  70.  
  71. ΓòÉΓòÉΓòÉ <hidden> Environment Division Clauses ΓòÉΓòÉΓòÉ
  72.  
  73. For help with individual Environment Division clauses, select from the 
  74. following list: 
  75.  
  76. Configuration Section:      Input-Output Section: 
  77. ALPHABET                    ACCESS MODE 
  78. CLASS 
  79. CONSOLE                     ASSIGN 
  80. CRT STATUS                  COMMITMENT CONTROL 
  81. CURRENCY SIGN               CONTROL-AREA 
  82. CURSOR                      FILE STATUS 
  83. DECIMAL-POINT               MULTIPLE FILE TAPE 
  84. LINKAGE TYPE                ORGANIZATION 
  85.                             PADDING CHARACTER 
  86.                             RECORD DELIMITER 
  87.                             RECORD KEY 
  88.                             RELATIVE KEY 
  89.                             RERUN 
  90.                             RESERVE 
  91.                             SAME AREA 
  92.                             SAME RECORD AREA 
  93.                             SAME SORT AREA 
  94.                             SAME SORT-MERGE AREA 
  95.                             SELECT 
  96.  
  97.  
  98. ΓòÉΓòÉΓòÉ <hidden> Data Division Clauses ΓòÉΓòÉΓòÉ
  99.  
  100. For help with individual Data Division clauses, select from the following list: 
  101.  
  102. FD and SD Entries:          Data Description Entries: 
  103. BLOCK CONTAINS              BLANK WHEN ZERO 
  104. CODE-SET                    EXTERNAL 
  105. DATA RECORDS                GLOBAL 
  106. EXTERNAL                    JUSTIFIED 
  107. GLOBAL                      LIKE 
  108. LABEL RECORDS               OCCURS 
  109. LINAGE                      PICTURE 
  110. RECORD CONTAINS             REDEFINES 
  111. VALUE OF                    RENAMES 
  112.                             SIGN 
  113.                             SYNCHRONIZED 
  114.                             USAGE 
  115.                             VALUE 
  116.  
  117.  
  118. ΓòÉΓòÉΓòÉ <hidden> Procedure Division Statements ΓòÉΓòÉΓòÉ
  119.  
  120. For help with individual Procedure Division Statements, select from the 
  121. following list: 
  122.  
  123. ACCEPT                      INITIALIZE 
  124. ACQUIRE                     INSPECT 
  125. ADD                         MERGE 
  126. ALTER                       MOVE 
  127. CALL                        MULTIPLY 
  128. CANCEL                      OPEN 
  129. CLOSE                       PERFORM 
  130. COMMIT                      READ 
  131. COMPUTE                     RELEASE 
  132. CONTINUE                    RETURN 
  133. DELETE                      REWRITE 
  134. DISPLAY                     ROLLBACK 
  135. DIVIDE                      SEARCH 
  136. DROP                        SET 
  137. ENTER                       SORT 
  138. EVALUATE                    START 
  139. EXIT                        STOP 
  140. EXIT PROGRAM                STRING 
  141. GOBACK                      SUBTRACT 
  142. GO TO                       UNSTRING 
  143. IF                          WRITE 
  144.  
  145.  
  146. ΓòÉΓòÉΓòÉ <hidden> Compiler-Directing Statements ΓòÉΓòÉΓòÉ
  147.  
  148. For help with individual Compiler-Directing Statements, select from the 
  149. following list: 
  150.  
  151. *CONTROL(*CBL) 
  152. COPY 
  153. EJECT 
  154. PROCESS 
  155. REPLACE 
  156. SKIP1/2/3 
  157. TITLE 
  158. USE 
  159.  
  160.  
  161. ΓòÉΓòÉΓòÉ 2. Characters ΓòÉΓòÉΓòÉ
  162.  
  163. In COBOL, the indivisible unit of data is the character. The letters of the 
  164. alphabet, digits, and special characters that form the COBOL character set are 
  165. shown in COBOL Characters-Their Meanings and Uses. 
  166.  
  167. The Integrated Language Environment* (ILE*) COBOL/400* language is restricted 
  168. to the defined character set. The contents of nonnumeric literals, comment 
  169. lines, comment entries, and the values held in data items, can include any of 
  170. the characters from the character set currently specified for the system (by 
  171. the primary source file's code character set identifier (CCSID)). 
  172.  
  173. -----IBM Extension----- 
  174.  
  175. Characters from the Double-Byte Character Set (DBCS) are valid characters in 
  176. certain COBOL character-strings. Double-byte characters occupy two adjacent 
  177. bytes to represent one character. (See the DBCS information under 
  178. Character-Strings for more information.) 
  179.  
  180. ---End of IBM Extension--- 
  181.  
  182. Individual characters are joined to form character strings, separators, and 
  183. text words. 
  184.  
  185. A character-string is a character or sequence of contiguous characters that 
  186. form a COBOL word, a literal, a PICTURE character-string, or a comment. A 
  187. character-string is delimited by separators. 
  188.  
  189. A separator is a string of one or two contiguous punctuation characters used to 
  190. delimit character-strings. Separators are described in detail under Separators. 
  191.  
  192. A text word is a character or sequence of contiguous characters between margin 
  193. A (between column 7 and column 8) and margin R (column 72 and column 73) in a 
  194. COBOL library, source program, or in pseudo-text. 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 2.1. COBOL Characters-Their Meanings and Uses ΓòÉΓòÉΓòÉ
  198.  
  199. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  200. Γöé      COBOL Characters-Their Meanings and Uses               Γöé
  201. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  202. Γöé CHARACTER   Γöé MEANING            Γöé USE              Γöé
  203. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  204. Γöé A-Z      Γöé Alphabet (uppercase)      Γöé Alphabetic characters     Γöé
  205. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  206. Γöé a-z      Γöé Alphabet (lowercase)      Γöé Alphabetic characters     Γöé
  207. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  208. Γöé 0-9      Γöé Arabic numerals        Γöé Numeric characters      Γöé
  209. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  210. Γöé        Γöé Space             Γöé Punctuation character     Γöé
  211. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  212. Γöé .       Γöé Decimal point or Period    Γöé Editing character       Γöé
  213. Γöé        Γöé                Γöé Punctuation character     Γöé
  214. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  215. Γöé <       Γöé Less than           Γöé Relation character      Γöé
  216. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  217. Γöé (       Γöé Left parenthesis        Γöé Punctuation character     Γöé
  218. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  219. Γöé +       Γöé Plus sign           Γöé Arithmetic operator      Γöé
  220. Γöé        Γöé                Γöé Editing character       Γöé
  221. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  222. Γöé $       Γöé Dollar sign          Γöé Editing character       Γöé
  223. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  224. Γöé *       Γöé Asterisk            Γöé Arithmetic operator      Γöé
  225. Γöé        Γöé                Γöé Editing character       Γöé
  226. Γöé        Γöé                Γöé Comment character       Γöé
  227. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  228. Γöé )       Γöé Right parenthesis       Γöé Punctuation character     Γöé
  229. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  230. Γöé ;       Γöé Semicolon           Γöé Punctuation character     Γöé
  231. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  232. Γöé :       Γöé Colon             Γöé Punctuation character     Γöé
  233. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  234. Γöé -       Γöé Minus sign or Hyphen      Γöé Arithmetic operator      Γöé
  235. Γöé        Γöé                Γöé Editing character       Γöé
  236. Γöé        Γöé                Γöé Continuation character    Γöé
  237. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  238. Γöé /       Γöé Stroke or Slash        Γöé Arithmetic operator      Γöé
  239. Γöé        Γöé                Γöé Editing character       Γöé
  240. Γöé        Γöé                Γöé Line control character    Γöé
  241. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  242. Γöé ,       Γöé Comma             Γöé Editing character       Γöé
  243. Γöé        Γöé                Γöé Punctuation character     Γöé
  244. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  245. Γöé >       Γöé Greater than          Γöé Relation character      Γöé
  246. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  247. Γöé =       Γöé Equal sign           Γöé Punctuation character     Γöé
  248. Γöé        Γöé                Γöé Relation character      Γöé
  249. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  250. Γöé "       Γöé Quotation marks        Γöé Punctuation characters    Γöé
  251. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  252. Γöé '       Γöé Apostrophe           Γöé Punctuation character     Γöé
  253. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  254. Γöé NOTE:  The Apostrophe (') character is an IBM Extension.           Γöé
  255. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  256.  
  257.  
  258. ΓòÉΓòÉΓòÉ 2.2. Character-Strings ΓòÉΓòÉΓòÉ
  259.  
  260. You can use character-strings containing single-byte characters to form: 
  261.  
  262.  COBOL words 
  263.  Literals 
  264.  PICTURE character-strings 
  265.  Comment-entry text 
  266.  
  267. -----IBM Extension----- 
  268.  
  269. You can use character-strings containing double-byte characters to form: 
  270.  
  271.  Literals 
  272.  Comment-entry text 
  273.  
  274. DBCS character-strings are constructed using characters from the Double-Byte 
  275. Character Set. DBCS character-strings can be embedded into nonnumeric strings, 
  276. including mixed literals. 
  277.  
  278. ---End of IBM Extension--- 
  279.  
  280.  
  281. ΓòÉΓòÉΓòÉ 2.2.1. COBOL Words ΓòÉΓòÉΓòÉ
  282.  
  283. COBOL words must be character-strings from the set of letters, digits, and the 
  284. hyphen. (The hyphen cannot appear as the first or last character, however.) In 
  285. the ILE COBOL/400 language, each lowercase letter is generally equivalent to 
  286. the corresponding uppercase letter. 
  287.  
  288. The three types of COBOL words are: 
  289.  
  290.  User-defined words 
  291.  System-names 
  292.  Reserved words 
  293.  
  294. The following rules apply to all COBOL words that are not special character 
  295. words within a source program: 
  296.  
  297.  The maximum length of a COBOL word is 30 characters. 
  298.  
  299.  A reserved word cannot be used as a user-defined word, or a system-name. 
  300.  
  301.  The same COBOL word however, may be used as both a system-name and as a 
  302.   user-defined word. The classification of a specific occurrence of such a 
  303.   COBOL word is determined by the context of the phrase in which it occurs. 
  304.  
  305.  
  306. ΓòÉΓòÉΓòÉ 2.2.2. User-Defined Words ΓòÉΓòÉΓòÉ
  307.  
  308. The types of user-defined words are listed below, with the rules that must be 
  309. followed in forming them. 
  310.  
  311. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  312. Γöé TYPES OF USER-DEFINED WORDS  Γöé GENERAL RULES         Γöé
  313. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  314. Γöé alphabet-name         Γöé Each word must contain at   Γöé
  315. Γöé class-name           Γöé least one letter.       Γöé
  316. Γöé condition-name         Γöé                Γöé
  317. Γöé data-name           Γöé                Γöé
  318. Γöé file-name           Γöé                Γöé
  319. Γöé index-name           Γöé                Γöé
  320. Γöé mnemonic-name         Γöé                Γöé
  321. Γöé program-name          Γöé                Γöé
  322. Γöé   (for contained programs andΓöé                Γöé
  323. Γöé   outermost programs that areΓöé                Γöé
  324. Γöé   called using the PROCEDURE Γöé                Γöé
  325. Γöé   linkage convention)     Γöé                Γöé
  326. Γöé record-name          Γöé                Γöé
  327. Γöé routine-name          Γöé                Γöé
  328. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  329. Γöé library-name          Γöé Each word must contain at   Γöé
  330. Γöé program-name          Γöé least one letter.  The first  Γöé
  331. Γöé   (for outermost programs thaΓöé 10 characters must be unique. Γöé
  332. Γöé   are called using the PROGRAΓöé                Γöé
  333. Γöé   linkage convention)     Γöé                Γöé
  334. Γöé text-name           Γöé                Γöé
  335. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  336. Γöé paragraph-name         Γöé The word need NOT contain an  Γöé
  337. Γöé section-name          Γöé alphabetic character.     Γöé
  338. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  339. Γöé Level-numbers:         Γöé Each word must be a 1- or   Γöé
  340. Γöé 01-49,66,77,88         Γöé 2-digit integer; it does not  Γöé
  341. Γöé Segment-numbers:  00-99    Γöé have to be unique.  (Segmen-  Γöé
  342. Γöé                Γöé tation information is syntax  Γöé
  343. Γöé                Γöé checked only.)         Γöé
  344. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  345.  
  346. The function of each user-defined word is described in the clause or statement 
  347. in which it appears. 
  348.  
  349. Related Information: 
  350.  
  351.  Constraints for Referencing User-Defined Words 
  352.  
  353.  
  354. ΓòÉΓòÉΓòÉ 2.2.3. Constraints for Referencing User-Defined Words ΓòÉΓòÉΓòÉ
  355.  
  356. Generally, a user-defined word must belong to only one of the types of 
  357. user-defined words listed in the previous table and must be unique within each 
  358. type. There are two exceptions; a COBOL word may be used as a: 
  359.  
  360.  condition-name, data-name, or record-name 
  361.  Level-number or Segment-number 
  362.  
  363. For more information on the uniqueness of data reference, see Methods of Data 
  364. Reference. 
  365.  
  366. The following types of user-defined words can be referenced by statements and 
  367. entries in that program in which the user-defined word is declared: 
  368.  
  369.  paragraph-name 
  370.  section-name 
  371.  
  372. The following types of user-defined words can be referenced by any COBOL 
  373. program: 
  374.  
  375.  library-name 
  376.  program-name 
  377.  text-name 
  378.  
  379. The following types of names, when they are declared within a Configuration 
  380. Section, can be referenced by statements and entries either in that program 
  381. which contains a Configuration Section or in any program contained within that 
  382. program: 
  383.  
  384.  alphabet-name 
  385.  class-name 
  386.  condition-name 
  387.  mnemonic-name 
  388.  
  389.  
  390. ΓòÉΓòÉΓòÉ 2.2.4. System-Names ΓòÉΓòÉΓòÉ
  391.  
  392. A system-name is a character-string that is defined by IBM to have a specific 
  393. meaning to the system. There are three types of system-names: 
  394.  
  395.  computer-name 
  396.  language-name 
  397.  implementer-name (which includes environment-name and assignment-name) 
  398.  
  399.  
  400. ΓòÉΓòÉΓòÉ 2.2.5. Reserved Words ΓòÉΓòÉΓòÉ
  401.  
  402. A reserved word is a character-string with a predefined meaning in a COBOL 
  403. source program, and can be used only as specified in the language defined 
  404. formats. 
  405.  
  406. There are five types of reserved words: 
  407.  
  408.  Keywords 
  409.  Optional words 
  410.  Special characters 
  411.  Figurative constants 
  412.  Special registers 
  413.  
  414.  
  415. ΓòÉΓòÉΓòÉ 2.2.5.1. Keywords ΓòÉΓòÉΓòÉ
  416.  
  417. Keywords are reserved words that are required within a given clause, entry, or 
  418. statement. 
  419.  
  420.  
  421. ΓòÉΓòÉΓòÉ 2.2.5.2. Optional Words ΓòÉΓòÉΓòÉ
  422.  
  423. Optional words are reserved words that may be included in the format of a 
  424. clause, entry, or statement in order to improve readability. They have no 
  425. effect on the meaning or execution of the program. Optional words are shown in 
  426. formats as uppercase, but appear below the main path. 
  427.  
  428.  
  429. ΓòÉΓòÉΓòÉ 2.2.5.3. Special Characters ΓòÉΓòÉΓòÉ
  430.  
  431. There are two types of special character reserved words: 
  432.  
  433.  Arithmetic operators:  +  -  /  *  ** 
  434.  
  435.   See Arithmetic Operators. 
  436.  
  437.  Relational operators: <  >  =  <=  >= 
  438.  
  439.   See Relation Condition. 
  440.  
  441.  
  442. ΓòÉΓòÉΓòÉ 2.2.5.4. Figurative Constants ΓòÉΓòÉΓòÉ
  443.  
  444. Figurative constants are reserved words that name and refer to specific 
  445. constant values. The reserved words for figurative constants are: 
  446.  
  447. ZERO/ZEROS/ZEROES 
  448. SPACE/SPACES 
  449. HIGH-VALUE/HIGH-VALUES 
  450. LOW-VALUE/LOW-VALUES 
  451. QUOTE/QUOTES 
  452. ALL literal 
  453. NULL/NULLS 
  454.  
  455. The singular and plural forms of ZERO, SPACE, HIGH-VALUE, LOW-VALUE, QUOTE, and 
  456. NULL are equivalent, and may be used interchangeably. For example, if 
  457. DATA-NAME-1 is a 5-character data item, each of the following statements will 
  458. fill DATA-NAME-1 with five spaces: 
  459.  
  460. MOVE SPACE TO DATA-NAME-1
  461. MOVE SPACES TO DATA-NAME-1
  462. MOVE ALL SPACES TO DATA-NAME-1
  463.  
  464. A figurative constant may be used wherever 'literal' appears in a format, 
  465. except where explicitly prohibited. When a numeric literal appears in a format, 
  466. only the figurative constant ZERO may be used. 
  467.  
  468. -----IBM Extension----- 
  469.  
  470. The figurative constant ZERO can be used as a Boolean literal. 
  471.  
  472. ---End of IBM Extension--- 
  473.  
  474. The length of a figurative constant depends on the context of the program. The 
  475. following rules apply: 
  476.  
  477.  When a figurative constant is associated with a data item (for example, when 
  478.   it is moved to or compared with another item), the length of the figurative 
  479.   constant character-string is equal to one (1) or to the number of character 
  480.   positions in the associated data item, whichever is greater. 
  481.  
  482.  When a figurative constant, other than the ALL literal, is not associated 
  483.   with another data item (for example, in a STOP, STRING, or UNSTRING 
  484.   statement), the length of the character-string is one (1) character. 
  485.  
  486.  
  487. ΓòÉΓòÉΓòÉ 2.2.5.5. Special Registers ΓòÉΓòÉΓòÉ
  488.  
  489. Special registers are reserved words that name storage areas generated by the 
  490. compiler. Their primary use is to store information produced through specific 
  491. COBOL features. Each such storage area has a fixed name, and must not be 
  492. further defined within the program. 
  493.  
  494. In the general formats of this specification, a special register can be used, 
  495. unless otherwise restricted, wherever a data-name or identifier is specified 
  496. provided that the special register is the same category as the data-name or 
  497. identifier. If qualification is allowed, special registers can be qualified as 
  498. necessary to provide uniqueness. 
  499.  
  500. Each special register is discussed in the section indicated. 
  501.  
  502. The special registers are: 
  503.  
  504. ADDRESS OF 
  505. DB-FORMAT-NAME 
  506. DEBUG-ITEM 
  507. LENGTH OF 
  508. LINAGE-COUNTER 
  509. RETURN-CODE 
  510. SORT-RETURN 
  511. WHEN-COMPILED 
  512.  
  513.  
  514. ΓòÉΓòÉΓòÉ 2.2.6. Literals ΓòÉΓòÉΓòÉ
  515.  
  516. A literal is a character-string whose value is specified either by the 
  517. characters of which it is composed, or by the use of a figurative constant (See 
  518. page Figurative Constants). There are three types of literals: 
  519.  
  520.  Boolean Literals 
  521.  Nonnumeric Literals 
  522.  Numeric Literals 
  523.  
  524.  
  525. ΓòÉΓòÉΓòÉ 2.2.6.1. Boolean Literals ΓòÉΓòÉΓòÉ
  526.  
  527. -----IBM Extension----- 
  528.  
  529.  
  530. A Boolean literal is a character-string delimited on the left by the separator 
  531. B" and on the right by the quotation mark separator. The character-string 
  532. consists only of the character 0 or 1. The value of a Boolean literal is the 
  533. character itself, excluding the delimiting separators. 
  534.  
  535. ---End of IBM Extension--- 
  536.  
  537.  
  538. ΓòÉΓòÉΓòÉ 2.2.6.2. Nonnumeric Literals ΓòÉΓòÉΓòÉ
  539.  
  540. A nonnumeric literal is a character-string enclosed in quotation marks ("), and 
  541. can contain any allowable character from the EBCDIC character set. The maximum 
  542. length of a nonnumeric literal is 256 characters. 
  543.  
  544. A nonnumeric literal must be enclosed in quotation marks ("). 
  545.  
  546.      ---------- If the *APOST compiler option is in effect, the nonnumeric 
  547.      literal must be enclosed by apostrophes('). 
  548.  
  549.      ---------- End of If the *APOST compiler option is in effect, the 
  550.      nonnumeric literal The enclosing quotation marks (or apostrophes) are 
  551.  excluded from the literal when the program is compiled. An embedded quotation 
  552.  mark must be represented by a pair of quotation marks (""). 
  553.  
  554.  For example, 
  555.  
  556.   "THIS ISN""T WRONG"
  557.  
  558.      ---------- 
  559.  
  560.      In an apostrophe literal, a double apostrophe ('') is reduced to a single 
  561.      apostrophe when the double apostrophe is also a delimiter. 
  562.  
  563.      For example, 
  564.  
  565.           'THIS ISN''T WRONG'
  566.  
  567.           represents
  568.  
  569.            THIS ISN'T WRONG
  570.  
  571.      ---------- End of 
  572.  
  573.  Any punctuation characters included within a nonnumeric literal are part of 
  574.  the value of the literal. 
  575.  
  576.  Every nonnumeric literal is in the alphanumeric data category. (Data 
  577.  categories are described in Classes and Categories of Data.) 
  578.  
  579.  -----IBM Extension----- 
  580.  
  581.  You can use hexadecimal notation to form a hexadecimal nonnumeric literal. 
  582.  
  583.   ΓöîΓöÇΓöÇΓöÇ FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  584.   Γöé                                        Γöé
  585.   Γöé >ΓöÇΓöÇX"ΓöÇΓöÇΓöÇΓöÇhexadecimal-digitsΓöÇΓöÇ"ΓöÇΓöÇΓöÇΓöÇΓöÇ>                     Γöé
  586.   Γöé                                        Γöé
  587.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  588.  
  589.  The maximum length of a hexadecimal nonnumeric literal is 512 hexadecimal 
  590.  digits. 
  591.  
  592.  The continuation rules are the same as those for nonnumeric literals. 
  593.  
  594.  The compiler converts the hexadecimal literal into an ordinary nonnumeric 
  595.  literal. Hexadecimal nonnumeric literals can be used anywhere nonnumeric 
  596.  literals can appear. 
  597.  
  598.  In nonnumeric literals, single-byte and double-byte characters can be combined 
  599.  within a character-string to form a mixed literal. COBOL statements process 
  600.  mixed literals without sensitivity to the machine representation. Those 
  601.  statements that operate on a byte-to-byte basis (for example, STRING and 
  602.  UNSTRING) may produce literals that are not valid mixtures of single-byte and 
  603.  double-byte characters. It is the user's responsibility to be certain that the 
  604.  statements are used correctly. 
  605.  
  606.  ---End of IBM Extension--- 
  607.  
  608.  
  609. ΓòÉΓòÉΓòÉ 2.2.6.3. Numeric Literals ΓòÉΓòÉΓòÉ
  610.  
  611. A numeric literal is a character-string whose characters are selected from the 
  612. digits 0 through 9, a sign character (+ or -), and the decimal point. If the 
  613. literal contains no decimal point, it is an integer. (In this manual, the word 
  614. integer appearing in a format represents a numeric literal of nonzero value 
  615. that contains no sign and no decimal point; any other restrictions are included 
  616. with the description of the format.) The following rules apply: 
  617.  
  618.   One through 18 digits are allowed. 
  619.  
  620.   Only one sign character is allowed. If included, it must be the leftmost 
  621.    character of the literal. If the literal is unsigned, it is positive in 
  622.    value. 
  623.  
  624.   Only one decimal point is allowed. If a decimal point is included, it is 
  625.    treated as an assumed decimal point (that is, as not taking up a character 
  626.    position in the literal). The decimal point may appear anywhere within the 
  627.    literal except as the rightmost character. 
  628.  
  629.   If enclosed in quotation marks, the compiler treats the literal as a 
  630.    nonnumeric literal. 
  631.  
  632.  The value of a numeric literal is the algebraic quantity expressed by the 
  633.  characters in the literal. The size of a numeric literal in standard data 
  634.  format characters is equal to the number of digits specified by the user. 
  635.  
  636.  Every numeric literal is in the numeric data category. (Data categories are 
  637.  described under Classes and Categories of Data.) 
  638.  
  639.  
  640. ΓòÉΓòÉΓòÉ 2.2.7. PICTURE Character-Strings ΓòÉΓòÉΓòÉ
  641.  
  642. A PICTURE character-string consists of symbols that are composed of the 
  643. currency symbol and certain combinations of characters in the COBOL character 
  644. set. 
  645.  
  646. Any punctuation character that appears as part of the specification of a 
  647. PICTURE character-string is not considered as a punctuation character, but 
  648. rather as a symbol used in the specification of that PICTURE character-string. 
  649.  
  650.  
  651. ΓòÉΓòÉΓòÉ 2.2.8. Comments ΓòÉΓòÉΓòÉ
  652.  
  653. A comment is a character-string that can contain any combination of characters 
  654. from the EBCDIC character set. It has no effect on the execution of the 
  655. program. There are two forms of comments: 
  656.  
  657.  Comment entry 
  658.  
  659.  Comment line 
  660.  
  661.  
  662. ΓòÉΓòÉΓòÉ 2.3. Separators ΓòÉΓòÉΓòÉ
  663.  
  664. A separator can be a single punctuation character or a string of punctuation 
  665. characters. 
  666.  
  667. The following is a list of the COBOL separator characters and their meaning. 
  668.  
  669.  Separator      Meaning 
  670.                 Space 
  671.  ,              Comma 
  672.  .              Period 
  673.  ;              Semicolon 
  674.  (              Left parenthesis 
  675.  )              Right parenthesis 
  676.  "              Quotation mark 
  677.  ==             Pseudo-text delimiter 
  678.  :              Colon 
  679.  
  680.  -----IBM Extension----- 
  681.  
  682.  '           Apostrophe 
  683.  B"          Opening delimiter for Boolean literal 
  684.  X"          Opening delimiter for hexadecimal nonnumeric literal 
  685.  
  686.              ---End of IBM Extension--- 
  687.  
  688.  Note:   Any punctuation character included in a PICTURE character-string, a 
  689.  comment character-string, or a nonnumeric literal is not considered as a 
  690.  punctuation character, but rather as part of the character-string or literal. 
  691.  
  692.  
  693. ΓòÉΓòÉΓòÉ 3. Sections and Paragraphs ΓòÉΓòÉΓòÉ
  694.  
  695. Sections and paragraphs define a program. They are subdivided into clauses and 
  696. statements. Unless the associated rules explicitly state otherwise, each 
  697. required clause or statement must be written in the sequence shown in its 
  698. format. If optional clauses or statements are used, they must be written in the 
  699. sequence shown in their formats. These rules are true even for clauses and 
  700. statements treated as comments. 
  701.  
  702.  The grammatical hierarchy follows this form: 
  703.  
  704.   Identification Division 
  705.  
  706.          Paragraphs
  707.           Entries
  708.            Clauses
  709.  
  710.   Environment Division 
  711.  
  712.          Sections
  713.           Paragraphs
  714.            Entries
  715.             Clauses
  716.              Phrases
  717.  
  718.   Data Division 
  719.  
  720.          Sections
  721.           Entries
  722.            Clauses
  723.             Phrases
  724.  
  725.   Procedure Division 
  726.  
  727.          Sections
  728.           Paragraphs
  729.            Sentences
  730.             Statements
  731.              Phrases
  732.  
  733.  
  734. ΓòÉΓòÉΓòÉ 4. Reference Format ΓòÉΓòÉΓòÉ
  735.  
  736. COBOL programs must be written in the COBOL reference format. Reference Format 
  737. for COBOL Source Line shows the reference format for a COBOL 80-character 
  738. source line. 
  739.  
  740. Reference Format for COBOL Source Line 
  741.  
  742. Γöé            Γöé  Γöé         Γöé        Γöé        Γöé
  743. Γöé            Γöé  Γöé         Γöé        Γöé        Γöé
  744. Γöé 1 Γöé 2 | 3 | 4 | 5 | 6 Γöé 7 Γöé 8 | 9 | 10 | 11 Γöé 12 | ... | 72 Γöé 73 | ... | 80 Γöé
  745. Γöé            Γöé Γöé Γöé         Γöé        Γöé        Γöé
  746. ΓööΓöÇΓöÇSequence Number AreaΓöÇΓöÿ Γöé ΓööΓöÇΓöÇΓöÇΓöÇΓöÇArea AΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇArea BΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇComment AreaΓöÇΓöÿ
  747.              
  748.            Indicator Area
  749.  
  750. An 80-character COBOL source line is divided into the following reference 
  751. format areas: 
  752.  
  753.  Sequence Number Area     Columns 1 through 6 
  754.  Indicator Area           Column 7 
  755.  Area A                   Columns 8 through 11 
  756.  Area B                   Columns 12 through 72 
  757.  Comment Area             Columns 73 through 80 
  758.  
  759.  
  760. ΓòÉΓòÉΓòÉ 4.1. Sequence Number Area (Columns 1 through 6) ΓòÉΓòÉΓòÉ
  761.  
  762. A sequence number identifies each statement to be compiled by the COBOL 
  763. compiler. The use of sequence numbers is optional, and may consist of any 
  764. character in the character set of the computer. Sequence numbers may be in any 
  765. order, and they need not be unique. 
  766.  
  767. -----IBM Extension----- 
  768.  
  769. You can use sequence checking at compilation time by specifying SEQUENCE. 
  770.  
  771. If the NUMBER option is specified, the sequence numbers from columns 1 through 
  772. 6 are used; otherwise the source sequence numbers provided in the source file 
  773. are used. 
  774.  
  775. ---End of IBM Extension--- 
  776.  
  777.  
  778. ΓòÉΓòÉΓòÉ 4.2. Indicator Area (Column 7) ΓòÉΓòÉΓòÉ
  779.  
  780. Use the indicator area to specify: 
  781.  
  782.   The continuation of lines from the previous line onto the current line 
  783.  
  784.   The treatment of text as documentation or comments 
  785.  
  786.   Debugging lines 
  787.  
  788.  
  789. ΓòÉΓòÉΓòÉ 4.3. Area A (Columns 8 through 11) ΓòÉΓòÉΓòÉ
  790.  
  791. The following items must begin in Area A: 
  792.  
  793.   Division header 
  794.   Section header 
  795.   Paragraph header or paragraph name 
  796.   Level indicator (FD and SD) or level-number (01 and 77) 
  797.   DECLARATIVES and END DECLARATIVES 
  798.   END PROGRAM header 
  799.  
  800.  The following items may begin in either Area A or Area B: 
  801.  
  802.   Comment lines 
  803.   Debugging lines 
  804.   Blank lines 
  805.   Pseudo-text 
  806.   Compiler-directing statements other than the USE statement 
  807.  
  808.  
  809. ΓòÉΓòÉΓòÉ 4.4. Division Header ΓòÉΓòÉΓòÉ
  810.  
  811. A division header is a combination of words, followed by a separator period, 
  812. that indicates the beginning of a division: 
  813.  
  814.  IDENTIFICATION DIVISION. 
  815.  
  816.  ENVIRONMENT DIVISION. 
  817.  
  818.  DATA DIVISION. 
  819.  
  820.  PROCEDURE DIVISION. 
  821.  
  822.  A division header (except when a USING phrase is specified with a Procedure 
  823.  Division header) must be immediately followed by a separator period. Except 
  824.  for the USING phrase, no text may appear on the same line. 
  825.  
  826.  
  827. ΓòÉΓòÉΓòÉ 4.5. Section Header ΓòÉΓòÉΓòÉ
  828.  
  829. A section header indicates either the beginning of a series of paragraphs (in 
  830. the Environment and Procedure Divisions), or the beginning of an entry (in the 
  831. Data Division). For example, FILE-CONTROL in the former case, and FILE SECTION 
  832. in the latter. 
  833.  
  834. A section header must be immediately followed by a period except when Procedure 
  835. Division segment numbers are specified. (Segmentation information is syntax 
  836. checked only.) 
  837.  
  838.  
  839. ΓòÉΓòÉΓòÉ 4.6. Paragraph Header or Paragraph Name ΓòÉΓòÉΓòÉ
  840.  
  841. A paragraph header or paragraph name indicates the beginning of a paragraph. In 
  842. the Environment Division, a paragraph consists of a paragraph header followed 
  843. by one or more entries. In the Procedure Division, a paragraph consists of a 
  844. paragraph-name followed by one or more sentences. 
  845.  
  846.  
  847. ΓòÉΓòÉΓòÉ 4.7. Level Indicator (FD and SD) or Level-Number (01 and 77) ΓòÉΓòÉΓòÉ
  848.  
  849. A level indicator can be either FD or SD. It must begin in Area A and be 
  850. followed by a space. (See File Section.) A level-number that must begin in Area 
  851. A is a 1- or 2-digit integer with a value of 01 or 77. 
  852.  
  853.  
  854. ΓòÉΓòÉΓòÉ 4.8. DECLARATIVES and END DECLARATIVES ΓòÉΓòÉΓòÉ
  855.  
  856. DECLARATIVES and END DECLARATIVES are keywords that begin and end the 
  857. declaratives part of the source program. In the Procedure Division, each of 
  858. these words must begin in Area A and be followed immediately by a separator 
  859. period; no other text may appear on the same line. After END DECLARATIVES, no 
  860. text may appear before the following section header. (See Declaratives.) 
  861.  
  862.  
  863. ΓòÉΓòÉΓòÉ 4.9. END PROGRAM Header ΓòÉΓòÉΓòÉ
  864.  
  865. The END PROGRAM header, followed by program-name and a separator period, 
  866. indicates the end of a COBOL program. Program-name must be identical to that of 
  867. the corresponding PROGRAM-ID paragraph.  Every COBOL program (except an 
  868. outermost program that contains no nested programs and is not followed by 
  869. another COBOL program in a sequence of COBOL programs) must end with this 
  870. header. 
  871.  
  872.  
  873. ΓòÉΓòÉΓòÉ 4.10. Area B (Columns 12 through 72) ΓòÉΓòÉΓòÉ
  874.  
  875. The following items must begin in Area B: 
  876.  
  877.   Entries 
  878.   Sentences 
  879.   Statements 
  880.   Clauses 
  881.   Continuation lines 
  882.  
  883.  The following items may begin in either Area A or Area B: 
  884.  
  885.   Comment lines 
  886.   Debugging lines 
  887.   Blank lines 
  888.   Pseudo-text 
  889.   Compiler-directing statements other than the USE statement. 
  890.  
  891.  
  892. ΓòÉΓòÉΓòÉ 4.11. Entries, Sentences, Statements, Clauses ΓòÉΓòÉΓòÉ
  893.  
  894. The first entry, sentence, statement, or clause begins on either the same line 
  895. as the header or paragraph-name it follows, or in Area B of the next nonblank 
  896. line that is not a comment line. Successive sentences or entries either begin 
  897. in Area B of the same line as the preceding sentence or entry or in Area B of 
  898. the next nonblank line that is not a comment line. 
  899.  
  900. Within an entry or sentence, successive lines in Area B may have the same 
  901. format, or may be indented to clarify program logic. The output listing is 
  902. indented only if the input statements are indented. Indentation does not affect 
  903. the meaning of the program, and the amount is limited to the width of Area B. 
  904. See also Sections and Paragraphs. 
  905.  
  906.  
  907. ΓòÉΓòÉΓòÉ 4.12. Continuation Lines ΓòÉΓòÉΓòÉ
  908.  
  909. Any sentence, entry, clause, or phrase that requires more than one line can be 
  910. continued in Area B of the next line that is neither a comment line nor a blank 
  911. line. The line being continued is a continued line; the succeeding lines are 
  912. continuation lines. Area A of a continuation line must be blank, though the 
  913. indicator area must contain a hyphen. If there is no hyphen in the indicator 
  914. area (column 7), the last character of the preceding line is assumed to be 
  915. followed by a space. 
  916.  
  917. If there is a hyphen in the indicator area of a line, the first nonblank 
  918. character of this continuation line immediately follows the last nonblank 
  919. character of the continued line without an intervening space. 
  920.  
  921. If the continued line contains a nonnumeric literal without a closing quotation 
  922. mark, all spaces at the end of the continued line (through column 72) are 
  923. considered to be part of the literal. The continuation line must contain a 
  924. hyphen in the indicator area, and the first nonblank character must be a 
  925. quotation mark. The continuation of the literal begins with the character 
  926. immediately following the quotation mark. If the last character of a continued 
  927. line is a single quotation mark in column 72, the first two nonblank characters 
  928. in the continuation line must be two quotes to denote a single quote as part of 
  929. the nonnumeric literal. 
  930.  
  931. For the pseudo-text delimiter separator (==), the two characters that make up 
  932. the separator must occupy the same line. 
  933.  
  934.  
  935. ΓòÉΓòÉΓòÉ 4.13. Comment Lines ΓòÉΓòÉΓòÉ
  936.  
  937. A comment line is any line with an asterisk (*) or slash (/) in the indicator 
  938. area (column 7) of the line. The comment may be written anywhere in Area A and 
  939. Area B of that line, and may consist of any combination of characters from the 
  940. EBCDIC character set. A comment line may be placed anywhere in the program 
  941. following the Identification Division header. 
  942.  
  943. Multiple comment lines are allowed. Each must begin with either an asterisk (*) 
  944. or a slash (/) in the indicator area. 
  945.  
  946. An asterisk (*) comment line is printed in the output listing, immediately 
  947. following the last preceding line. A slash (/) comment line is printed on the 
  948. first line of the next page, and the current page of the output listing is 
  949. ejected. 
  950.  
  951. The compiler treats a comment line as documentation, and does not check it 
  952. syntactically. 
  953.  
  954.  
  955. ΓòÉΓòÉΓòÉ 4.14. Debugging Lines ΓòÉΓòÉΓòÉ
  956.  
  957. A debugging line is any line with a 'D' in the indicator area of the line. 
  958. Debugging lines can be written in the Environment Division (after the 
  959. OBJECT-COMPUTER paragraph), the Data Division, and the Procedure Division. If a 
  960. debugging line contains only spaces in Area A and Area B, it is considered a 
  961. blank line. 
  962.  
  963.  
  964. ΓòÉΓòÉΓòÉ 4.15. Blank Lines ΓòÉΓòÉΓòÉ
  965.  
  966. A blank line contains nothing but spaces from column 7 through column 72. A 
  967. blank line may appear anywhere in a program. 
  968.  
  969.  
  970. ΓòÉΓòÉΓòÉ 4.16. Pseudo-Text ΓòÉΓòÉΓòÉ
  971.  
  972. The character-strings and separators comprising pseudo-text may start in either 
  973. Area A or Area B. If, however, there is a hyphen in the indicator area (column 
  974. 7) of a line which follows the opening pseudo-text delimiter, Area A of the 
  975. line must be blank, and the rules for continuation lines apply to the formation 
  976. of text words. 
  977.  
  978.  
  979. ΓòÉΓòÉΓòÉ 4.17. Compiler-Directing Statements ΓòÉΓòÉΓòÉ
  980.  
  981. The following compiler-directing statements may start in Area A or Area B: 
  982.  
  983. -----IBM Extension----- 
  984.  
  985.   *CBL 
  986.   *CONTROL 
  987.  
  988.    ---End of IBM Extension--- 
  989.   COPY 
  990.  
  991.    -----IBM Extension----- 
  992.   EJECT 
  993.   SKIP/1/2/3 
  994.   TITLE 
  995.  
  996.  ---End of IBM Extension--- 
  997.  
  998.  
  999. ΓòÉΓòÉΓòÉ 4.18. Comment Area (Columns 73 through 80) ΓòÉΓòÉΓòÉ
  1000.  
  1001. The comment area is available for your own use; for example, to identify your 
  1002. program. 
  1003.  
  1004.  
  1005. ΓòÉΓòÉΓòÉ 4.19. Methods of Data Reference ΓòÉΓòÉΓòÉ
  1006.  
  1007. References to data and procedures can be either explicit or implicit. 
  1008.  
  1009. Every user-defined name in a COBOL program names a resource for solving a data 
  1010. processing problem. To use a resource, a statement in a COBOL program must 
  1011. contain a reference that uniquely identifies that resource. To ensure 
  1012. uniqueness of reference, a user-defined name can be qualified, subscripted, or 
  1013. reference modified. Before looking at this, however, you need to understand the 
  1014. term identifier. 
  1015.  
  1016. There are three methods of data reference: 
  1017.  
  1018.   Qualification 
  1019.   Reference Modification 
  1020.   Subscripting. 
  1021.  
  1022.  Related Information: 
  1023.  
  1024.   Resolution of Names 
  1025.  
  1026.  
  1027. ΓòÉΓòÉΓòÉ 4.19.1. Identifier ΓòÉΓòÉΓòÉ
  1028.  
  1029. In the syntax diagrams, the term identifier refers to a user-defined name that, 
  1030. if not unique in a program, must be followed by a syntactically correct 
  1031. combination of qualifiers, subscripts, or reference modifiers necessary for 
  1032. uniqueness of reference. 
  1033.  
  1034. ΓöîΓöÇΓöÇΓöÇ FORMAT 1 - IDENTIFIER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1035. Γöé                                        Γöé
  1036. Γöé          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  1037. Γöé                       Γöé                 Γöé
  1038. Γöé >>ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1039. Γöé           ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇdata-name-2ΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-1ΓöÇΓöÿ     Γöé
  1040. Γöé            ΓööΓöÇOFΓöÇΓöÿ           ΓööΓöÇOFΓöÇΓöÿ            Γöé
  1041. Γöé                                        Γöé
  1042. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1043. Γöé   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé                          Γöé
  1044. Γöé   Γöé         Γöé   Γöé                          Γöé
  1045. Γöé   ΓööΓöÇ(ΓöÇΓöÇΓöÇΓöÇsubscriptΓöÇΓö┤ΓöÇΓöÇ)ΓöÇΓöÿ                          Γöé
  1046. Γöé                                        Γöé
  1047. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><           Γöé
  1048. Γöé   ΓööΓöÇ(ΓöÇΓöÇleftmost-character-position:ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÿ             Γöé
  1049. Γöé                    ΓööΓöÇlengthΓöÇΓöÿ               Γöé
  1050. Γöé                                        Γöé
  1051. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1052.  
  1053. The following rules apply: 
  1054.  
  1055.   Duplication of data-names must not occur in those places where the data-name 
  1056.    cannot be made unique by qualification. 
  1057.  
  1058.   In the same program, the data description entries for any two data items 
  1059.    specified as the subject of the entry whose level-number is 01 must not 
  1060.    include the EXTERNAL clause. 
  1061.  
  1062.   In the same Data Division, the data description entries for any two data 
  1063.    items for which the same data-name is specified must not include the GLOBAL 
  1064.    clause. 
  1065.  
  1066.  There are two special cases for the identifier: LINAGE-COUNTER and 
  1067.  condition-name. 
  1068.  
  1069.  
  1070. ΓòÉΓòÉΓòÉ 4.19.1.1. LINAGE-COUNTER ΓòÉΓòÉΓòÉ
  1071.  
  1072. ΓöîΓöÇΓöÇΓöÇ FORMAT 2 - LINAGE-COUNTER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1073. Γöé                                        Γöé
  1074. Γöé >>ΓöÇΓöÇLINAGE-COUNTERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                Γöé
  1075. Γöé           ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-2ΓöÇΓöÿ                  Γöé
  1076. Γöé            ΓööΓöÇOFΓöÇΓöÿ                         Γöé
  1077. Γöé                                        Γöé
  1078. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1079.  
  1080.  
  1081. ΓòÉΓòÉΓòÉ 4.19.1.2. condition-name ΓòÉΓòÉΓòÉ
  1082.  
  1083. ΓöîΓöÇΓöÇΓöÇ FORMAT 3 - CONDITION-NAME ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1084. Γöé                                        Γöé
  1085. Γöé            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ               Γöé
  1086. Γöé                         Γöé               Γöé
  1087. Γöé >>ΓöÇΓöÇcondition-name-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1088. Γöé             ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÿ                Γöé
  1089. Γöé              ΓööΓöÇOFΓöÇΓöÿ                       Γöé
  1090. Γöé                                        Γöé
  1091. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  1092. Γöé   ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-1ΓöÇΓöÿ  Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé              Γöé
  1093. Γöé    Γöé   Γöé         Γöé         Γöé   Γöé              Γöé
  1094. Γöé    ΓööΓöÇOFΓöÇΓöÿ         ΓööΓöÇ(ΓöÇΓöÇΓöÇΓöÇsubscriptΓöÇΓö┤ΓöÇΓöÇ)ΓöÇΓöÿ              Γöé
  1095. Γöé                                        Γöé
  1096. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1097.  
  1098.  
  1099. ΓòÉΓòÉΓòÉ 4.19.2. Qualification ΓòÉΓòÉΓòÉ
  1100.  
  1101. A name can be made unique if it exists within a hierarchy of names, and the 
  1102. name can be identified by specifying one or more higher-level names in the 
  1103. hierarchy. The higher-level names are called qualifiers, and the process by 
  1104. which such names are made unique is called qualification. 
  1105.  
  1106. Qualification is specified by placing one or more phrases after a 
  1107. user-specified name, with each phrase made up of the word IN or OF followed by 
  1108. a qualifier. (IN and OF are logically equivalent.) 
  1109.  
  1110. ΓöîΓöÇΓöÇΓöÇ REFERENCES TO DATA DIVISION NAMES - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1111. Γöé                                        Γöé
  1112. Γöé             ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ              Γöé
  1113. Γöé                          Γöé              Γöé
  1114. Γöé >>ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1115. Γöé   ΓööΓöÇcondition-nameΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇdata-name-2ΓöÇΓöÿ               Γöé
  1116. Γöé               ΓööΓöÇOFΓöÇΓöÿ                      Γöé
  1117. Γöé                                        Γöé
  1118. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                        Γöé
  1119. Γöé   ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-1ΓöÇΓöÿ                          Γöé
  1120. Γöé    ΓööΓöÇOFΓöÇΓöÿ                                  Γöé
  1121. Γöé                                        Γöé
  1122. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1123.  
  1124. ΓöîΓöÇΓöÇΓöÇ REFERENCES TO DATA DIVISION NAMES - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1125. Γöé                                        Γöé
  1126. Γöé >>ΓöÇΓöÇLINAGE-COUNTERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                Γöé
  1127. Γöé           ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-2ΓöÇΓöÿ                  Γöé
  1128. Γöé            ΓööΓöÇOFΓöÇΓöÿ                         Γöé
  1129. Γöé                                        Γöé
  1130. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1131.  
  1132. In any hierarchy, the data name associated with the highest level must be 
  1133. unique, and cannot be qualified. 
  1134.  
  1135. You must specify enough qualification to make the name unique; however, it may 
  1136. not be necessary to specify all the levels of the hierarchy. For example, if 
  1137. there is more than one file whose records contain the field EMPLOYEE-NO, but 
  1138. only one of the files has a record named MASTER-RECORD: 
  1139.  
  1140.   EMPLOYEE-NO OF MASTER-RECORD sufficiently qualifies EMPLOYEE-NO 
  1141.  
  1142.   EMPLOYEE-NO OF MASTER-RECORD OF MASTER-FILE is valid but unnecessary. 
  1143.  
  1144.  Related Information: 
  1145.  
  1146.   References to Data Division Names 
  1147.   References to Procedure Division Names 
  1148.   References to COPY Libraries 
  1149.   Qualification Rules. 
  1150.  
  1151.  
  1152. ΓòÉΓòÉΓòÉ 4.19.2.1. References to Data Division Names ΓòÉΓòÉΓòÉ
  1153.  
  1154. Data Division names that are explicitly referenced in a program must be either 
  1155. uniquely defined, or made unique through qualification. Unreferenced data-names 
  1156. need not be uniquely defined. 
  1157.  
  1158. A data-name associated with a level-number 01, or with an FD or SD level 
  1159. indicator in the File Section, is the highest level in a data hierarchy. If 
  1160. referenced, it must be uniquely defined, because it cannot be qualified. Data 
  1161. items with level-numbers 02 through 49 are successively lower levels in a data 
  1162. hierarchy, and if referenced, must be either uniquely defined, or made unique 
  1163. through qualification. Level-77 data-names, if referenced, must be uniquely 
  1164. defined, because they cannot be qualified. 
  1165.  
  1166.  
  1167. ΓòÉΓòÉΓòÉ 4.19.2.2. References to Procedure Division Names ΓòÉΓòÉΓòÉ
  1168.  
  1169. If explicitly referenced, a paragraph-name must not be duplicated within a 
  1170. section.  When a paragraph-name is qualified by a section-name, the word 
  1171. SECTION must not appear.  A paragraph-name need not be qualified when referred 
  1172. to within the section in which it appears.  A paragraph-name or section-name 
  1173. appearing in a program cannot be referenced from any other program. A 
  1174. section-name is the highest (and only) qualifier available for a paragraph-name 
  1175. and must be unique. 
  1176.  
  1177. ΓöîΓöÇΓöÇΓöÇ REFERENCES TO PROCEDURE DIVISION NAMES - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1178. Γöé                                        Γöé
  1179. Γöé >>ΓöÇΓöÇparagraph-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><               Γöé
  1180. Γöé           ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇsection-nameΓöÇΓöÿ                 Γöé
  1181. Γöé            ΓööΓöÇOFΓöÇΓöÿ                         Γöé
  1182. Γöé                                        Γöé
  1183. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1184.  
  1185. ΓöîΓöÇΓöÇΓöÇ REFERENCES TO PROCEDURE DIVISION NAMES - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1186. Γöé                                        Γöé
  1187. Γöé >>ΓöÇΓöÇsection-nameΓöÇΓöÇ><                             Γöé
  1188. Γöé                                        Γöé
  1189. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1190.  
  1191.  
  1192. ΓòÉΓòÉΓòÉ 4.19.2.3. References to COPY Libraries ΓòÉΓòÉΓòÉ
  1193.  
  1194. If more than one COBOL library is available to the compiler during compilation, 
  1195. text-name can be qualified each time it is referenced. 
  1196.  
  1197. ΓöîΓöÇΓöÇΓöÇ REFERENCES TO COPY LIBRARIES - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1198. Γöé                                        Γöé
  1199. Γöé >ΓöÇΓöÇtext-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ>           Γöé
  1200. Γöé        Γöé             (1)      Γöé            Γöé
  1201. Γöé        ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇlibrary-name- ΓöÇΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÿ            Γöé
  1202. Γöé         ΓööΓöÇOFΓöÇΓöÿ                            Γöé
  1203. Γöé                                        Γöé
  1204. Γöé NOTE:                                     Γöé
  1205. Γöé (1)  Required hyphen between library-name-file-name to qualify        Γöé
  1206. Γöé                                        Γöé
  1207. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1208.  
  1209. For rules on referencing COPY libraries, see COPY Statement. 
  1210.  
  1211.  
  1212. ΓòÉΓòÉΓòÉ 4.19.2.4. Qualification Rules ΓòÉΓòÉΓòÉ
  1213.  
  1214. The rules for qualifying a name are: 
  1215.  
  1216.   A name can be qualified even though it does not need qualification. 
  1217.  
  1218.   Each qualifier must be of a higher level than the name it qualifies, and 
  1219.    must be within the same hierarchy. 
  1220.  
  1221.    For example: 
  1222.  
  1223.          01 FIELD-A
  1224.             02 FIELD-B
  1225.                05 SUB1
  1226.                   07 SUB2
  1227.             02 FIELD-C
  1228.                   07 SUB1
  1229.  
  1230.    A hierarchy includes all subordinate entries to the next equal or higher 
  1231.    level-number.  Therefore, in the above example all entries are in the 
  1232.    hierarchy of FIELD-A.  All entries from FIELD-B to, but not including, 
  1233.    FIELD-C are in the hierarchy of FIELD-B. 
  1234.  
  1235.    In the hierarchy of FIELD-A, SUB1 can be used twice; once as subordinate to 
  1236.    FIELD-B and once as subordinate to FIELD-C. In references to SUB-1, it must 
  1237.    be qualified as SUB-1 OF FIELD-B or SUB-1 OF FIELD-C. Within FIELD-B or 
  1238.    FIELD-C, SUB1 cannot be subordinate to itself. 
  1239.  
  1240.   The complete list of qualifiers for one data-name must not be the same as a 
  1241.    partial list of qualifiers for another. 
  1242.  
  1243.   If a data-name or a condition-name is assigned to more than one data item, 
  1244.    it must be qualified each time it is referred to (for the one exception, see 
  1245.    REDEFINES Clause). 
  1246.  
  1247.   If reference can be made unique by qualification, data-names may be defined 
  1248.    in more than one place in a given program or compilation unit. 
  1249.  
  1250.   If there is more than one combination of qualifiers that ensures uniqueness, 
  1251.    then any of these combinations can be used. 
  1252.  
  1253.   If referenced in the program, a section-name must be unique. 
  1254.  
  1255.   If referenced in the program, a paragraph-name must be unique within a 
  1256.    section. When a paragraph-name is qualified by a section-name, the word 
  1257.    SECTION must not appear. A paragraph-name need not be qualified when 
  1258.    referred to within the section in which it appears. 
  1259.  
  1260.   LINAGE-COUNTER must be qualified each time it is referenced if more than one 
  1261.    file description entry containing a LINAGE clause has been specified in the 
  1262.    source program. 
  1263.  
  1264.   Library-name must be unique in the system. Therefore, the first 10 
  1265.    characters of library-name must be unique. 
  1266.  
  1267.   Text-name (member-name) can be qualified by the library-name and file-name 
  1268.    in which it resides. (A hyphen is required between library-name and 
  1269.    file-name, without any intervening spaces.) If no library is specified, the 
  1270.    library list is searched. If no file-name is specified, QCBLLESRC is used. 
  1271.  
  1272.    -----IBM Extension----- 
  1273.  
  1274.    File-name is optional for the COPY statement, Format 1. If file-name is not 
  1275.    specified, the default is QCBLLESRC. 
  1276.  
  1277.    ---End of IBM Extension--- 
  1278.  
  1279.  
  1280. ΓòÉΓòÉΓòÉ 4.19.3. Subscripting ΓòÉΓòÉΓòÉ
  1281.  
  1282. Subscripting is a method of providing table references through the use of 
  1283. positive integers. A subscript is a positive integer (or integer data item) 
  1284. whose value specifies the occurrence number of a table element. 
  1285.  
  1286. ΓöîΓöÇΓöÇΓöÇ SUBSCRIPTING - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1287. Γöé                                        Γöé
  1288. Γöé              ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ              Γöé
  1289. Γöé                          Γöé              Γöé
  1290. Γöé >>ΓöÇΓöÇΓö¼ΓöÇcondition-name-1ΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1291. Γöé   ΓööΓöÇdata-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇdata-name-2ΓöÇΓöÿ              Γöé
  1292. Γöé                ΓööΓöÇOFΓöÇΓöÿ                      Γöé
  1293. Γöé                                        Γöé
  1294. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  1295. Γöé   ΓööΓöÇΓö¼ΓöÇINΓöÇΓö¼ΓöÇΓöÇfile-name-1ΓöÇΓöÿ                          Γöé
  1296. Γöé    ΓööΓöÇOFΓöÇΓöÿ                                  Γöé
  1297. Γöé                                        Γöé
  1298. Γöé    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ               Γöé
  1299. Γöé                         Γöé               Γöé
  1300. Γöé >ΓöÇΓöÇ(ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ)ΓöÇΓöÇ><            Γöé
  1301. Γöé     Γö£ΓöÇdata-name-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  1302. Γöé     Γöé        ΓööΓöÇΓö¼ΓöÇ+ΓöÇΓö¼ΓöÇΓöÇinteger-2ΓöÇΓöÿ  Γöé                Γöé
  1303. Γöé     Γöé         ΓööΓöÇΓö┤ΓöÇΓöÿ        Γöé                Γöé
  1304. Γöé     ΓööΓöÇindex-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                Γöé
  1305. Γöé             ΓööΓöÇΓö¼ΓöÇ+ΓöÇΓö¼ΓöÇΓöÇinteger-3ΓöÇΓöÿ                 Γöé
  1306. Γöé              ΓööΓöÇΓö┤ΓöÇΓöÿ                        Γöé
  1307. Γöé                                        Γöé
  1308. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1309.  
  1310. The subscripts, enclosed in parentheses, are written immediately following any 
  1311. qualification for the name of the table element. The number of subscripts in 
  1312. such a reference must equal the number of dimensions in the table whose element 
  1313. is being referenced. That is, there must be a subscript for each OCCURS clause 
  1314. in the hierarchy containing the data-name including the data-name itself. 
  1315.  
  1316. When more than one subscript is required, they are written in the order of 
  1317. successively less inclusive dimensions of the data organization. If a 
  1318. multi-dimensional table is thought of as a series of nested tables and the most 
  1319. inclusive or outermost table in the nest is considered to be the major table 
  1320. with the innermost or least inclusive table being the minor table, the 
  1321. subscripts are written from left to right in the order major, intermediate, and 
  1322. minor. 
  1323.  
  1324. For example, if TABLE-THREE is defined as: 
  1325.  
  1326. 01  TABLE-THREE.
  1327.     05  ELEMENT-ONE OCCURS 3 TIMES.
  1328.         10  ELEMENT-TWO OCCURS 3 TIMES.
  1329.           15  ELEMENT-THREE OCCURS 2 TIMES    PIC X(8).
  1330. a valid subscripted reference to TABLE-THREE is: 
  1331.  
  1332. ELEMENT-THREE (2 2 1)
  1333.  
  1334. A reference to an item must not be subscripted unless the item is a table 
  1335. element or an item or condition-name associated with a table element. 
  1336.  
  1337. Each table element reference must be subscripted except when such a reference 
  1338. appears: 
  1339.  
  1340.   In a USE FOR DEBUGGING statement 
  1341.   As the subject of a SEARCH statement 
  1342.   In a REDEFINES clause 
  1343.   In the KEY IS phrase of an OCCURS clause 
  1344.   In a LIKE  clause 
  1345.  
  1346.  The lowest permissible occurrence number represented by a subscript is 1. The 
  1347.  highest permissible occurrence number in any particular case is the maximum 
  1348.  number of occurrences of the item as specified in the OCCURS clause. 
  1349.  
  1350.  Related Information: 
  1351.  
  1352.   Subscripting Using Integers or Data-Names 
  1353.   Subscripting Using Index-Names (Indexing) 
  1354.   Relative Subscripting 
  1355.  
  1356.  
  1357. ΓòÉΓòÉΓòÉ 4.19.3.1. Subscripting Using Integers or Data-Names ΓòÉΓòÉΓòÉ
  1358.  
  1359. When an integer or data-name is used to represent a subscript, it can be used 
  1360. to reference items within different tables. These tables need not have elements 
  1361. of the same size. The same integer or data-name can appear as the only 
  1362. subscript with one item and as one of two or more subscripts with another item. 
  1363. A data-name subscript can be qualified; it cannot be subscripted or indexed. 
  1364. For example, valid subscripted references to TABLE-THREE-assuming that SUB1, 
  1365. SUB2, and SUB3 are all items subordinate to SUBSCRIPT-ITEM-include: 
  1366.  
  1367. ELEMENT-THREE (SUB1 SUB2 SUB3)
  1368.  
  1369. ELEMENT-THREE IN TABLE-THREE (SUB1 OF SUBSCRIPT-ITEM, SUB2 OF
  1370. SUBSCRIPT-ITEM, SUB3 OF SUBSCRIPT-ITEM)
  1371.  
  1372.  
  1373. ΓòÉΓòÉΓòÉ 4.19.3.2. Subscripting Using Index-Names (Indexing) ΓòÉΓòÉΓòÉ
  1374.  
  1375. Indexing allows such operations as table searching and manipulating specific 
  1376. items. To use indexing you associate one or more index-names with an item whose 
  1377. data description entry contains an OCCURS clause. An index associated with an 
  1378. index-name acts as a subscript, and its value corresponds to an occurrence 
  1379. number for the item to which the index-name is associated. 
  1380.  
  1381. The INDEXED BY phrase, which identifies the index-name associated with its 
  1382. table, is an optional part of the OCCURS clause. There is no separate entry to 
  1383. describe the index-name since its definition is completely system dependent. 
  1384. Index-names may be seen as compiler generated registers for the use of this 
  1385. program only. They are not data, or part of the data hierarchy, and must be 
  1386. unique in a COBOL program. 
  1387.  
  1388. Each index name must follow the rules for formation of a user-defined word. 
  1389.  
  1390. Each index-name refers to a compiler-generated register or storage area. 
  1391.  
  1392. The initial value of an index at object time is undefined, and the index must 
  1393. be initialized before it is used as a subscript. The initial value of an index 
  1394. is assigned with: 
  1395.  
  1396.   The PERFORM statement with the VARYING phrase, or 
  1397.   The SEARCH statement with the ALL phrase, or 
  1398.   The SET statement. 
  1399.  
  1400.  An index-name can only be referenced by a PERFORM, SET, or SEARCH statement, 
  1401.  as a parameter in the USING phrase in a CALL statement, or in a relational 
  1402.  condition comparison. 
  1403.  
  1404.  The use of an integer or data-name as a subscript referencing a table element 
  1405.  or an item within a table element does not cause the alteration of any index 
  1406.  associated with that table. 
  1407.  
  1408.  An index-name can be used to reference only the table to which it is 
  1409.  associated by the INDEXED BY phrase. 
  1410.  
  1411.  Data that is arranged in the form of a table is often searched.  The SEARCH 
  1412.  statement provides facilities for producing serial and non-serial (for 
  1413.  example, binary) searches. It is used to search for a table element that 
  1414.  satisfies a specific condition and to adjust the value of the associated index 
  1415.  to indicate that table element. 
  1416.  
  1417.  To be valid during execution, an index value must correspond to a table 
  1418.  element occurrence of neither less than one, nor greater than the highest 
  1419.  permissible occurrence number. 
  1420.  
  1421.  
  1422. ΓòÉΓòÉΓòÉ 4.19.3.3. Relative Subscripting ΓòÉΓòÉΓòÉ
  1423.  
  1424. In relative subscripting, the name of a table element is followed by a 
  1425. subscript of the form data-name or index-name followed by the operator + or -, 
  1426. and an unsigned integer literal. The operator + and - must be preceded and 
  1427. followed by a space. If the subscript contains a data-name, the value of the 
  1428. subscript is the same as if the data-name had been set up of down by the value 
  1429. of the integer. If the subscript contains an index-name, the integer is 
  1430. considered to be an occurence number, and is converted to an index value before 
  1431. being added to or subtracted from the index-name. The use of relative indexing 
  1432. does not cause the object program to alter the value of the index. 
  1433.  
  1434. The value of an index can be made accessible to an object program by storing 
  1435. the value in an index data-item.  Index data-items are described in the program 
  1436. by a data description entry containing a USAGE IS INDEX clause.  The index 
  1437. value is moved to the index data-item by the execution of a SET statement. 
  1438.  
  1439. A valid index value must correspond to a table element occurrence of not less 
  1440. than one, nor greater than the highest permissible occurrence number. 
  1441.  
  1442.  
  1443. ΓòÉΓòÉΓòÉ 4.19.4. Reference Modification ΓòÉΓòÉΓòÉ
  1444.  
  1445. Reference modification resembles the use of substringing in other computer 
  1446. languages. Reference modification defines a data item by specifying a starting 
  1447. position and length for the item. 
  1448.  
  1449. ΓöîΓöÇΓöÇΓöÇ REFERENCE MODIFICATION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1450. Γöé                                        Γöé
  1451. Γöé >ΓöÇΓöÇdata-name-1ΓöÇΓöÇ(ΓöÇΓöÇleftmost-character-position:ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇ>       Γöé
  1452. Γöé                          ΓööΓöÇlengthΓöÇΓöÿ          Γöé
  1453. Γöé                                        Γöé
  1454. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1455.  
  1456. Reference modification is generally allowed anywhere an identifier referencing 
  1457. an alphanumeric data item is allowed. 
  1458.  
  1459. Each character of a data item referenced by data-name-1 is assigned an ordinal 
  1460. number incrementing by one from the leftmost position to the rightmost 
  1461. position. The leftmost position is assigned the ordinal number of one. If the 
  1462. data description entry for data-name-1 contains a SIGN IS SEPARATE clause, the 
  1463. sign position is assigned an ordinal number within that data item. 
  1464.  
  1465. Reference modification creates a unique data item which is a subset of the data 
  1466. item referenced by data-name-1. This unique data item is considered an 
  1467. elementary item without the JUSTIFIED clause. 
  1468.  
  1469. When data-name-1 is reference-modified, the unique data item has the same class 
  1470. and category as that defined for the data item referenced by data-name-1; 
  1471. however, if the category of data-name-1 is numeric, numeric-edited, or 
  1472. alphanumeric-edited, the unique data item has the class and category 
  1473. alphanumeric. 
  1474.  
  1475. If length is not specified, the unique data item created extends from and 
  1476. includes the character identified by the leftmost-character position up to and 
  1477. including the rightmost character of the data item referenced by data-name-1. 
  1478.  
  1479. Related Information: 
  1480.  
  1481.   Evaluation of Operands 
  1482.   Range Errors 
  1483.   Restrictions on Reference Modification 
  1484.   Reference Modification Example. 
  1485.  
  1486.  
  1487. ΓòÉΓòÉΓòÉ 4.19.4.1. Evaluation of Operands ΓòÉΓòÉΓòÉ
  1488.  
  1489. Reference modification for an operand is evaluated as follows: 
  1490.  
  1491.   If subscripting is specified for the operand, the reference modification is 
  1492.    evaluated immediately after evaluation of the subscript. 
  1493.  
  1494.   If subscripting is not specified for the operand, the reference modification 
  1495.    is evaluated at the time subscripting would be evaluated if subscripts had 
  1496.    been specified. 
  1497.  
  1498.  
  1499. ΓòÉΓòÉΓòÉ 4.19.4.2. Reference Modification Example ΓòÉΓòÉΓòÉ
  1500.  
  1501. This example transfers the first 25 characters in the variable whole-name to 
  1502. the variable last-name. 
  1503.  
  1504. MOVE whole-name(1:25) TO last-name
  1505.  
  1506.  
  1507. ΓòÉΓòÉΓòÉ 4.19.4.3. Range Errors ΓòÉΓòÉΓòÉ
  1508.  
  1509. An out-of-range reference modification component, such as a 
  1510. leftmost-character-position of zero, causes system message to be generated. 
  1511. This is the same message that signals errors in subscript ranges and 
  1512. character-string boundaries. (This message is generated only when the RANGE 
  1513. option is specified on the CRTCBLMOD or CRTBNDCBL command.) 
  1514.  
  1515.  
  1516. ΓòÉΓòÉΓòÉ 4.19.4.4. Restrictions on Reference Modification ΓòÉΓòÉΓòÉ
  1517.  
  1518. -----IBM Extension----- 
  1519.  
  1520. The INDICATORS phrase does not support reference modification. 
  1521.  
  1522. ---End of IBM Extension--- 
  1523.  
  1524. The following restrictions apply to the statements listed: 
  1525.  
  1526.  Statement               Restriction 
  1527.  STRING                  You cannot reference modify identifier-3. 
  1528.  UNSTRING                You cannot reference modify identifier-1. 
  1529.  START                   You can reference modify last occurrence of 
  1530.                          data-name-1 only. 
  1531.  
  1532.  
  1533. ΓòÉΓòÉΓòÉ 4.20. Scope of Names ΓòÉΓòÉΓòÉ
  1534.  
  1535. This section contains a brief description of the types of COBOL names, followed 
  1536. by the rules for name scoping. 
  1537.  
  1538.  data-name 
  1539.            A data-name names a data item. 
  1540.  
  1541.  file-name 
  1542.            A file-name names a file connector. 
  1543.  
  1544.  record-name 
  1545.            A record-name names a record. 
  1546.  
  1547.  condition-name 
  1548.            A condition-name associates a value with a conditional variable. 
  1549.  
  1550.  program-name 
  1551.            A program-name names a program, either external or internal 
  1552.            (nested). 
  1553.  
  1554.            See Conventions for Program-Names. 
  1555.  
  1556.  section-name 
  1557.            A section-name names a section in the Procedure Division. 
  1558.  
  1559.  paragraph-name 
  1560.            A paragraph-name names a paragraph in the Procedure Division. 
  1561.  
  1562.  library-name 
  1563.            A library-name names a COBOL library that is to be used by the 
  1564.            compiler for a given source program compilation. 
  1565.  
  1566.  text-name 
  1567.            A text-name identifies library text. 
  1568.  
  1569.  alphabet-name 
  1570.            An alphabet-name assigns a name to a specific character set and/or 
  1571.            collating sequence in the SPECIAL-NAMES paragraph of the Environment 
  1572.            Division. 
  1573.  
  1574.  class-name 
  1575.            A class-name assigns a name to the preposition in the SPECIAL-NAMES 
  1576.            paragraph of the Environment Division for which a truth value can be 
  1577.            defined. 
  1578.  
  1579.  mnemonic-name 
  1580.            A mnemonic-name assigns a user-defined word to an implementer-name. 
  1581.  
  1582.  symbolic-character 
  1583.            A symbolic-character specifies a user-defined figurative constant. 
  1584.  
  1585.  index-name 
  1586.            An index-name names an index associated with a specific table. 
  1587.  
  1588.  Related Information: 
  1589.  
  1590.   Nested Programs 
  1591.   Global and Local Names 
  1592.   External and Internal Objects 
  1593.   Resolution of Names. 
  1594.  
  1595.  
  1596. ΓòÉΓòÉΓòÉ 4.20.1. Nested Programs ΓòÉΓòÉΓòÉ
  1597.  
  1598. A COBOL program may contain other COBOL programs. The contained (or nested) 
  1599. programs may themselves contain yet other programs.  A contained program may be 
  1600. directly or indirectly contained within a program. 
  1601.  
  1602. Nested Program Structure with Directly and Indirectly Contained Programs 
  1603. describes a program structure with directly and indirectly contained programs. 
  1604.  
  1605. Nested Program Structure with Directly and Indirectly Contained Programs 
  1606.  
  1607.                  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇID DIVISION.
  1608. X is the outermost program and   Γöé     PROGRAM-ID. X.
  1609. directly contains X1 and X2,  ΓöÇΓöÇΓöé     PROCEDURE DIVISION.
  1610. and indirectly contains      Γöé       DISPLAY "I'm in X"
  1611. X11 and X12.            Γöé       CALL "X1"
  1612.                  Γöé       CALL "X2"
  1613.                  Γöé     STOP RUN.
  1614.                  Γöé
  1615.                  Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇID DIVISION.
  1616.   X1 is directly contained    Γöé  Γöé    PROGRAM-ID. X1.
  1617.   in X and directly containsΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöé    PROCEDURE DIVISION.
  1618.   X11 and X12.          Γöé  Γöé      DISPLAY "I'm in X1"
  1619.                  Γöé  Γöé      CALL "X11"
  1620.                  Γöé  Γöé      CALL "X12"
  1621.                  Γöé  Γöé      EXIT PROGRAM.
  1622.                  Γöé  Γöé
  1623.                  Γöé  Γöé    ID DIVISION.
  1624.      X11 is directly      Γöé  Γöé  ΓöîΓöÇΓöÇΓöÇPROGRAM-ID. X11.
  1625.      contained in X1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓö╝ΓöÇΓöé  PROCEDURE DIVISION.
  1626.      and indirectly      Γöé  Γöé  Γöé    DISPLAY "I'm in X11"
  1627.      contained in X.      Γöé  Γöé  Γöé    EXIT PROGRAM.
  1628.                  Γöé  Γöé  ΓööΓöÇΓöÇΓöÇEND PROGRAM X11.
  1629.                  Γöé  Γöé
  1630.                  Γöé  Γöé  ΓöîΓöÇΓöÇΓöÇID DIVISION.
  1631.      X12 is directly      Γöé  Γöé  Γöé  PROGRAM-ID. X12.
  1632.      contained in X1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓö╝ΓöÇΓöé  PROCEDURE DIVISION.
  1633.      and indirectly      Γöé  Γöé  Γöé    DISPLAY "I'm in X12"
  1634.      contained in X.      Γöé  Γöé  Γöé    EXIT PROGRAM.
  1635.                  Γöé  Γöé  ΓööΓöÇΓöÇΓöÇEND PROGRAM X12.
  1636.                  Γöé  Γöé
  1637.                  Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇEND PROGRAM X1.
  1638.                  Γöé
  1639.                  Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇID DIVISION.
  1640.   X2 is directly contained ΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöé    PROGRAM-ID. X2.
  1641.   in X.             Γöé  Γöé    PROCEDURE DIVISION.
  1642.                  Γöé  Γöé      DISPLAY "I'm in X2"
  1643.                  Γöé  Γöé      EXIT PROGRAM.
  1644.                  Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇEND PROGRAM X2.
  1645.                  Γöé
  1646.                  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇEND PROGRAM X.
  1647. The same user-defined word may be used in different programs to define 
  1648. different objects. In a particular program, a reference to an object always 
  1649. refers to the object defined in that program. 
  1650.  
  1651.  
  1652. ΓòÉΓòÉΓòÉ 4.20.2. Global and Local Names ΓòÉΓòÉΓòÉ
  1653.  
  1654. Names can have global or local attributes. Some names are always global; other 
  1655. names are always local; and some names are either local or global depending 
  1656. upon specifications in the program in which the names are declared. 
  1657.  
  1658. A program cannot reference any condition-name, data-name, file-name, 
  1659. index-name, paragraph-name, record-name, or section-name declared in any 
  1660. program it contains. 
  1661.  
  1662. A global name may be used to refer to the object with which it is associated 
  1663. either from within the program in which the global name is declared or from 
  1664. within any other program which is contained in the program which declares the 
  1665. global name. 
  1666.  
  1667. A local name, however, may be used only to refer to the object with which it is 
  1668. associated from within the program in which the local name is declared. 
  1669.  
  1670. If a data-name, a file-name, record-name, or a condition-name declared in a 
  1671. data description entry is not global, the name is local. 
  1672.  
  1673. Note:   Specific rules sometimes prohibit specification of the GLOBAL clause 
  1674.         for certain data description, file description, or record description 
  1675.         entries. 
  1676.  
  1677.  data-name 
  1678.            A data-name is global if the GLOBAL clause is specified either in 
  1679.            the data description entry by which the data-name is declared or in 
  1680.            another entry to which that data description entry is subordinate. 
  1681.  
  1682.  file-name 
  1683.            A file-name is global if the GLOBAL clause is specified in the file 
  1684.            description entry for that file-name. 
  1685.  
  1686.            Two programs in a run unit can reference common file connectors in 
  1687.            the following circumstances: 
  1688.  
  1689.      1. An external file connector can be referenced from any program that 
  1690.         describes that file connector. 
  1691.  
  1692.      2. If a program is contained within another program, both programs can 
  1693.         refer to a common file connector by referring to an associated global 
  1694.         file-name declared either in the containing program or in any program 
  1695.         that directly or indirectly contains the containing program. 
  1696.  
  1697.  record-name 
  1698.            A record-name is global if the GLOBAL clause is specified in the 
  1699.            record description entry by which the record-name is declared or, in 
  1700.            the case of record description entries in the File Section, if the 
  1701.            GLOBAL clause is specified in the file description entry for the 
  1702.            file-name associated with the record description entry. 
  1703.  
  1704.  condition-name 
  1705.            A condition-name, when declared in the data description entry, is 
  1706.            global if that entry is subordinate to another entry in which the 
  1707.            GLOBAL clause is specified. 
  1708.  
  1709.            A condition-name, when declared within the Configuration Section, is 
  1710.            always global. 
  1711.  
  1712.  program-name 
  1713.            A program-name is neither local nor global.  See Conventions for 
  1714.            Program-Names. 
  1715.  
  1716.  section-name and paragraph-name 
  1717.            These names are always local. 
  1718.  
  1719.  library-name and text-name 
  1720.            These names are external to the program and can be referenced by any 
  1721.            COBOL program, provided that the compiler system supports the 
  1722.            associated library and the entities referenced are known to that 
  1723.            system. 
  1724.  
  1725.  alphabet-name 
  1726.            An alphabet-name is always global. 
  1727.  
  1728.  class-name 
  1729.            A class-name is always global. 
  1730.  
  1731.  mnemonic-name 
  1732.            A mnemonic-name is always global. 
  1733.  
  1734.  index-name 
  1735.            If a data item possessing the global attribute includes a table 
  1736.            accessed with an index, that index also possesses the global 
  1737.            attribute. Therefore, the scope of an index-name is identical to 
  1738.            that of the data-name which names the table whose index is named by 
  1739.            that index-name and the scope of name rules for data-names apply. 
  1740.            Index-names cannot be qualified. 
  1741.  
  1742.  
  1743. ΓòÉΓòÉΓòÉ 4.20.3. External and Internal Objects ΓòÉΓòÉΓòÉ
  1744.  
  1745. Accessible data items usually require that certain representations of data be 
  1746. stored. File connectors usually require that certain information concerning 
  1747. files be stored. The storage associated with a data item or a file connector 
  1748. may be external or internal to the program in which the object is declared. 
  1749.  
  1750. A data item or file connector is external if the storage associated with that 
  1751. object is associated with the run unit rather than with any particular program 
  1752. within the run unit. An external object may be referenced by any program in the 
  1753. run unit which describes the object. References to an external object from 
  1754. different programs using separate descriptions of the object with the same name 
  1755. are always to the same object. In a run unit, there is only one representative 
  1756. of an external object. 
  1757.  
  1758. An object is internal if the storage associated with that object is associated 
  1759. only with the program which describes the object. 
  1760.  
  1761. External and internal objects may have either global or local names. 
  1762.  
  1763. A data record described in the Working-Storage Section is given the external 
  1764. attribute by the presence of the EXTERNAL clause in its data description entry. 
  1765. Any data item described by a data description entry subordinate to an entry 
  1766. describing an external record also attains the external attribute. If a record 
  1767. or data item does not have the external attribute, it is part of the internal 
  1768. data of the program in which it is described. 
  1769.  
  1770. A file connector is given the external attribute by the presence of the 
  1771. EXTERNAL clause in the associated file description entry. If the file connector 
  1772. does not have the external attribute, it is internal to the program in which 
  1773. the associated file-name is described. The EXTERNAL clause cannot be specified 
  1774. for sort-merge files. 
  1775.  
  1776. The data records described subordinate to a file description entry which does 
  1777. not contain the EXTERNAL clause, or those subordinate to a sort-merge file 
  1778. description entry, as well as any data items described subordinate to the data 
  1779. description entries for such records, are always internal to the program 
  1780. describing the file-name. If the EXTERNAL clause is included in the file 
  1781. description entry, the data records and the data items attain the external 
  1782. attribute. 
  1783.  
  1784. Data records and subordinate data items described in the Linkage Section of a 
  1785. program are always considered to be internal to the program describing that 
  1786. data. Special considerations apply to data described in the Linkage Section 
  1787. whereby an association is made between the data records described and other 
  1788. data items accessible to other programs. 
  1789.  
  1790.  
  1791. ΓòÉΓòÉΓòÉ 4.21. Data Attribute Specification ΓòÉΓòÉΓòÉ
  1792.  
  1793. Explicit data attributes are those you specify in actual COBOL coding. 
  1794.  
  1795. Implicit data attributes are default values. If you do not explicitly code a 
  1796. data attribute, the compiler assumes a default value. 
  1797.  
  1798. For example, you need not specify the USAGE of a data item. If it is omitted, 
  1799. the default is USAGE DISPLAY, which is the implicit data attribute. If, 
  1800. however, you specify USAGE DISPLAY in COBOL coding, it becomes an explicit data 
  1801. attribute. 
  1802.  
  1803.  
  1804. ΓòÉΓòÉΓòÉ 4.22. Resolution of Names ΓòÉΓòÉΓòÉ
  1805.  
  1806. When a program, program B, is directly or indirectly contained within another 
  1807. program, program A, both programs may define objects using the same 
  1808. user-defined word. (Objects include, for example, a condition-name, a 
  1809. data-name, a file-name, or a record-name.) When such a duplicated name is 
  1810. referenced in program B, the following rules are used to determine the 
  1811. referenced object: 
  1812.  
  1813.   1. The referenced object is identified from the set of all names which are 
  1814.      defined in program B and all global names defined in the directly 
  1815.      containing program A and in any programs which directly or indirectly 
  1816.      contain program A. Using this set of names, the normal rules for 
  1817.      qualification and any other rules for uniqueness of reference are applied 
  1818.      until one or more objects is identified. 
  1819.  
  1820.   2. If only one object is identified, it is the referenced object. 
  1821.  
  1822.   3. If more than one object is identified, no more than one of them can have a 
  1823.      name local to program B unless each reference to them can be made unique 
  1824.      with appropriate qualification. If zero or one of the objects has a name 
  1825.      local to program B, the following rules apply: 
  1826.  
  1827.      If the name is declared in program B, the object in program B is the 
  1828.       referenced object. 
  1829.  
  1830.      Otherwise, if program A is contained within another program, the 
  1831.       referenced object is: 
  1832.  
  1833.        - The object in program A if the name is declared in program A. 
  1834.  
  1835.        - The object in the containing program if the name is not declared in 
  1836.          program A and is declared in the program containing program A. This 
  1837.          rule is applied to further containing programs until a single valid 
  1838.          object has been found. 
  1839.  
  1840.  Related Information: 
  1841.  
  1842.   Conventions for Program-Names 
  1843.  
  1844.  
  1845. ΓòÉΓòÉΓòÉ 4.22.1. Conventions for Program-Names ΓòÉΓòÉΓòÉ
  1846.  
  1847. The program-name of a program is specified in the PROGRAM-ID paragraph of the 
  1848. program's Identification Division. A program-name can be referenced only by 
  1849. the: 
  1850.  
  1851.   CALL statement 
  1852.   CANCEL statement 
  1853.   END PROGRAM header 
  1854.  
  1855.    -----IBM Extension----- 
  1856.   SET statement 
  1857.  
  1858.    ---End of IBM Extension--- 
  1859.  
  1860.  Names of programs constituting a run unit are not necessarily unique, but when 
  1861.  two programs in a run unit are identically named, at least one of those two 
  1862.  programs must be directly or indirectly contained within another separately 
  1863.  compiled program which does not contain the other of those two programs. 
  1864.  
  1865.  The following rules regulate the scope of a program-name. 
  1866.  
  1867.   If the program-name is that of a program which does not possess the COMMON 
  1868.    attribute and which is directly contained within another program, that 
  1869.    program-name can be referenced only by statements included in that 
  1870.    containing program. 
  1871.  
  1872.   If the program-name is that of a program which possesses the COMMON 
  1873.    attribute and that is directly contained within another program, that 
  1874.    program-name can be referenced only by statements included in that 
  1875.    containing program and any programs directly or indirectly contained within 
  1876.    that containing program, except that program possessing the COMMON attribute 
  1877.    and any programs contained within it. 
  1878.  
  1879.   If the program-name is that of an outermost COBOL program in a separately 
  1880.    compiled module object, that program-name can be referenced by statements 
  1881.    included in any other program in the run unit, except programs it directly 
  1882.    or indirectly contains. 
  1883.  
  1884.  Related Information: 
  1885.  
  1886.   Rules Regulating the Scope of Program Names 
  1887.  
  1888.  
  1889. ΓòÉΓòÉΓòÉ 4.22.1.1. Rules Regulating the Scope of Program Names ΓòÉΓòÉΓòÉ
  1890.  
  1891. The following rules apply to referencing a program-name of a program that is 
  1892. contained within another program. For this discussion, we will say that 
  1893. Program-A directly contains Program-B and Program-C, Program-C directly 
  1894. contains Program-D and Program-F, and Program-D directly contains Program-E. 
  1895.  
  1896.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1897.   Γöé Program-A                Γöé
  1898.   Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé
  1899.   Γöé  Γöé Program-B            Γöé  Γöé
  1900.   Γöé  Γöé                 Γöé  Γöé
  1901.   Γöé  Γöé                 Γöé  Γöé
  1902.   Γöé  Γöé                 Γöé  Γöé
  1903.   Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé
  1904.   Γöé                     Γöé
  1905.   Γöé                     Γöé
  1906.   Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé
  1907.   Γöé  Γöé Program-C            Γöé  Γöé
  1908.   Γöé  Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé  Γöé
  1909.   Γöé  Γöé  Γöé Program-D         Γöé  Γöé  Γöé
  1910.   Γöé  Γöé  Γöé              Γöé  Γöé  Γöé
  1911.   Γöé  Γöé  Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé  Γöé  Γöé
  1912.   Γöé  Γöé  Γöé  Γöé Program-E      Γöé Γöé  Γöé  Γöé
  1913.   Γöé  Γöé  Γöé  Γöé           Γöé Γöé  Γöé  Γöé
  1914.   Γöé  Γöé  Γöé  Γöé           Γöé Γöé  Γöé  Γöé
  1915.   Γöé  Γöé  Γöé  Γöé           Γöé Γöé  Γöé  Γöé
  1916.   Γöé  Γöé  Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé  Γöé  Γöé
  1917.   Γöé  Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé  Γöé
  1918.   Γöé  Γöé  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé  Γöé
  1919.   Γöé  Γöé  Γöé Program-F         Γöé  Γöé  Γöé
  1920.   Γöé  Γöé  Γöé              Γöé  Γöé  Γöé
  1921.   Γöé  Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé  Γöé
  1922.   Γöé  ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé
  1923.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1924.  
  1925. If Program-D does not possess the COMMON attribute, then Program-D can only be 
  1926. referenced by the program that directly contains Program-D, that is, Program-C. 
  1927.  
  1928. If Program-D does possess the COMMON attribute, then Program-D can be 
  1929. referenced by Program-C since it contains Program-D, and by any programs 
  1930. contained in Program-C except for program D and programs contained in 
  1931. Program-D. In other words, if program-D possesses the COMMON attribute, 
  1932. Program-D can be referenced in Program-C and Program-F, but not by statements 
  1933. in Program-E, Program-A, Program-B, or Program-D. 
  1934.  
  1935.  
  1936. ΓòÉΓòÉΓòÉ 5. Transfer of Control ΓòÉΓòÉΓòÉ
  1937.  
  1938. In the Procedure Division, unless there is an explicit control transfer or 
  1939. there is no next executable statement, program flow transfers control from 
  1940. statement to statement in the order in which the statements are written. This 
  1941. normal program flow is an implicit transfer of control. 
  1942.  
  1943. In addition to the implicit transfers of control between consecutive 
  1944. statements, implicit transfer of control also occurs when the normal flow is 
  1945. altered without the execution of a procedure branching statement. The following 
  1946. examples show implicit transfers of control, overriding statement-to-statement 
  1947. transfer of control: 
  1948.  
  1949.   After execution of the last statement of a COBOL procedure being executed 
  1950.    under control of another COBOL statement, control implicitly transfers. 
  1951.    (COBOL statements that control COBOL procedure execution are, for example: 
  1952.    MERGE, PERFORM, SORT, and USE.) 
  1953.  
  1954.   During SORT or MERGE statement execution, when control is implicitly 
  1955.    transferred to an INPUT or OUTPUT procedure. 
  1956.  
  1957.   During execution of any COBOL statement that causes execution of a 
  1958.    declarative procedure, control is implicitly transferred to that procedure. 
  1959.  
  1960.   At the end of execution of any declarative procedure, control is implicitly 
  1961.    transferred back to the control mechanism associated with the statement that 
  1962.    caused its execution. 
  1963.  
  1964.   When a program that has no procedure division or any nondeclarative sections 
  1965.    is called, the calling program issues an implicit EXIT PROGRAM. 
  1966.  
  1967.  COBOL provides explicit control transfers through the execution of any 
  1968.  procedure branching or conditional statement. 
  1969.  
  1970.  
  1971. ΓòÉΓòÉΓòÉ 5.1. Next Executable Statement ΓòÉΓòÉΓòÉ
  1972.  
  1973. Note:   The term "next executable statement" refers to the next COBOL statement 
  1974. to which control is transferred, according to the rules given above. There is 
  1975. no next executable statement under these circumstances: 
  1976.  
  1977.   When the program contains no Procedure Division. 
  1978.  
  1979.   Following the last statement in a declarative section when the paragraph in 
  1980.    which it appears is not being executed under the control of some other COBOL 
  1981.    statement. 
  1982.  
  1983.   Following the last statement in a program when the paragraph in which it 
  1984.    appears is not being executed under the control of some other COBOL 
  1985.    statement in that program. 
  1986.  
  1987.   Following the last statement in a declarative section when the statement is 
  1988.    in the range of an active PERFORM statement executed in a different section 
  1989.    and this last statement of the declarative section is not also the last 
  1990.    statement of the procedure that is the exit of the active PERFORM statement. 
  1991.  
  1992.   Following a STOP RUN, EXIT PROGRAM, or GOBACK statement that transfers 
  1993.    control outside the COBOL program. 
  1994.  
  1995.   Following the END PROGRAM header. 
  1996.  
  1997.  When there is no next executable statement and control is not transferred 
  1998.  outside the COBOL program, the program flow of control is undefined unless the 
  1999.  program execution is in the nondeclarative procedures portion of a program 
  2000.  under control of a CALL statement, in which case an implicit EXIT PROGRAM 
  2001.  statement is executed. 
  2002.  
  2003.  
  2004. ΓòÉΓòÉΓòÉ 6. General Structure ΓòÉΓòÉΓòÉ
  2005.  
  2006. A COBOL source program is a syntactically correct set of COBOL statements. 
  2007.  
  2008. A COBOL source program may contain other COBOL source programs. These contained 
  2009. programs may reference some of the resources of the programs within with they 
  2010. are contained. 
  2011.  
  2012. This concept of contained programs is known as nesting and the contained 
  2013. program is known as a nested program. A nested program may be directly or 
  2014. indirectly contained in another program.  For example, if program B is 
  2015. contained in Program A, it is directly contained if there is no program in 
  2016. program A that also contains program B.  Program B is indirectly contained in 
  2017. program A if there exists a program contained in Program A that also contains 
  2018. program B. 
  2019.  
  2020. With the exception of compiler-directing statements and the END PROGRAM header, 
  2021. the statements, enties, paragraphs, and sections of a COBOL source program are 
  2022. grouped into the following four divisions: 
  2023.  
  2024.   Identification Division 
  2025.   Environment Division 
  2026.   Data Division 
  2027.   Procedure Division 
  2028.  
  2029.  The end of a COBOL source program is indicated by either the END PROGRAM 
  2030.  header, if specified, or by the absence of additional source program lines. 
  2031.  
  2032.  The following figure briefly illustrates the general structure of a COBOL 
  2033.  program. 
  2034.  
  2035.   ΓöîΓöÇΓöÇΓöÇ COBOL SOURCE PROGRAM-FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2036.   Γöé                                        Γöé
  2037.   Γöé >>ΓöÇΓöÇΓö¼ΓöÇIDENTIFICATIONΓöÇΓö¼ΓöÇΓöÇDIVISION.ΓöÇΓöÇPROGRAM-ID.ΓöÇΓöÇΓö¼ΓöÇprogram-name-1ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2038.   Γöé   Γöé    (1)    Γöé              Γöé      (1)  Γöé      Γöé
  2039.   Γöé   ΓööΓöÇIDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ              ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  2040.   Γöé                                        Γöé
  2041.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2042.   Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇINITIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  2043.   Γöé    ΓööΓöÇISΓöÇΓöÿ      ΓööΓöÇPROGRAMΓöÇΓöÿ                       Γöé
  2044.   Γöé                                        Γöé
  2045.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2046.   Γöé   ΓööΓöÇidentification-division-contentΓöÇΓöÿ                    Γöé
  2047.   Γöé                                        Γöé
  2048.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2049.   Γöé   ΓööΓöÇENVIRONMENT DIVISION.ΓöÇΓöÇenvironment-division-contentΓöÇΓöÿ          Γöé
  2050.   Γöé                                        Γöé
  2051.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2052.   Γöé   ΓööΓöÇDATA DIVISION.ΓöÇΓöÇdata-division-contentΓöÇΓöÿ                 Γöé
  2053.   Γöé                                        Γöé
  2054.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2055.   Γöé   ΓööΓöÇPROCEDURE DIVISION.ΓöÇΓöÇprocedure-division-contentΓöÇΓöÿ            Γöé
  2056.   Γöé                                        Γöé
  2057.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  2058.   Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEND  PROGRAMΓöÇΓöÇΓö¼ΓöÇprogram-name-1ΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÿ    Γöé
  2059.   Γöé    Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé         Γöé      (1)  Γöé       Γöé
  2060.   Γöé    Γöé            Γöé Γöé         Γöé         Γöé       Γöé
  2061.   Γöé    ΓööΓöÇΓöÇΓöÇΓöñ nested program Γö£ΓöÇΓö┤ΓöÇΓöÿ         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  2062.   Γöé                                        Γöé
  2063.   Γöé NESTED PROGRAM:                                Γöé
  2064.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇIDENTIFICATIONΓöÇΓö¼ΓöÇΓöÇDIVISION.ΓöÇΓöÇPROGRAM-ID.ΓöÇΓöÇΓö¼ΓöÇprogram-name-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2065.   Γöé   Γöé    (1)    Γöé              Γöé      (1)  Γöé       Γöé
  2066.   Γöé   ΓööΓöÇIDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ              ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  2067.   Γöé                                        Γöé
  2068.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2069.   Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇCOMMONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  2070.   Γöé    ΓööΓöÇISΓöÇΓöÿ  Γöé     ΓööΓöÇINITIALΓöÇΓöÿ Γöé  ΓööΓöÇPROGRAMΓöÇΓöÿ               Γöé
  2071.   Γöé        ΓööΓöÇINITIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                     Γöé
  2072.   Γöé             ΓööΓöÇCOMMONΓöÇΓöÿ                      Γöé
  2073.   Γöé                                        Γöé
  2074.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2075.   Γöé   ΓööΓöÇidentification-division-contentΓöÇΓöÿ                    Γöé
  2076.   Γöé                                        Γöé
  2077.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2078.   Γöé   ΓööΓöÇENVIRONMENT DIVISION.ΓöÇΓöÇenvironment-division-contentΓöÇΓöÿ          Γöé
  2079.   Γöé                                        Γöé
  2080.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2081.   Γöé   ΓööΓöÇDATA DIVISION.ΓöÇΓöÇdata-division-contentΓöÇΓöÿ                 Γöé
  2082.   Γöé                                        Γöé
  2083.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2084.   Γöé   ΓööΓöÇPROCEDURE DIVISION.ΓöÇΓöÇprocedure-division-contentΓöÇΓöÿ            Γöé
  2085.   Γöé                                        Γöé
  2086.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEND  PROGRAMΓöÇΓöÇΓö¼ΓöÇprogram-name-2ΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöñ     Γöé
  2087.   Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé         Γöé      (1)  Γöé        Γöé
  2088.   Γöé   Γöé            Γöé Γöé         Γöé         Γöé        Γöé
  2089.   Γöé   ΓööΓöÇΓöÇΓöÇΓöñ nested program Γö£ΓöÇΓö┤ΓöÇΓöÿ         ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  2090.   Γöé                                        Γöé
  2091.   Γöé NOTE:                                     Γöé
  2092.   Γöé (1)  IBM Extension                              Γöé
  2093.   Γöé                                        Γöé
  2094.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2095.  
  2096.  
  2097. ΓòÉΓòÉΓòÉ 6.1. END PROGRAM Header ΓòÉΓòÉΓòÉ
  2098.  
  2099. The END PROGRAM header indicates the end of a named COBOL source program. It 
  2100. also separates each program in a sequence of source pograms. An END PROGRAM 
  2101. header is optional for the last program in a sequence of source programs only 
  2102. if that program does not contain any nested programs. 
  2103.  
  2104. ΓöîΓöÇΓöÇΓöÇ END PROGRAM HEADER - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2105. Γöé                                        Γöé
  2106. Γöé >>ΓöÇΓöÇEND PROGRAMΓöÇΓöÇΓö¼ΓöÇprogram-name-1ΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                  Γöé
  2107. Γöé          Γöé      (1)  Γöé                      Γöé
  2108. Γöé          ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                      Γöé
  2109. Γöé                                        Γöé
  2110. Γöé NOTE:                                     Γöé
  2111. Γöé (1)  IBM Extension                              Γöé
  2112. Γöé                                        Γöé
  2113. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2114.  
  2115.  
  2116. ΓòÉΓòÉΓòÉ 7. Identification Division ΓòÉΓòÉΓòÉ
  2117.  
  2118. The Identification Division must be the first division in every COBOL source 
  2119. program. It names the program and may include the date the program was written, 
  2120. the date of compilation, and other such documentary information about the 
  2121. program. 
  2122.  
  2123. ΓöîΓöÇΓöÇΓöÇ IDENTIFICATION DIVISION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2124. Γöé                                        Γöé
  2125. Γöé >>ΓöÇΓöÇΓö¼ΓöÇIDENTIFICATIONΓöÇΓö¼ΓöÇΓöÇDIVISION.ΓöÇΓöÇPROGRAM-ID.ΓöÇΓöÇΓö¼ΓöÇprogram-nameΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2126. Γöé   Γöé   (1)     Γöé              Γöé     (1)  Γöé       Γöé
  2127. Γöé   ΓööΓöÇIDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ              ΓööΓöÇliteralΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  2128. Γöé                                        Γöé
  2129. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2130. Γöé   Γöé          (2)               Γöé            Γöé
  2131. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇCOMMONΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ            Γöé
  2132. Γöé    ΓööΓöÇISΓöÇΓöÿ  Γöé       ΓööΓöÇINITIALΓöÇΓöÿ Γöé  ΓööΓöÇPROGRAMΓöÇΓöÿ             Γöé
  2133. Γöé        ΓööΓöÇINITIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  2134. Γöé             ΓööΓöÇCOMMONΓöÇΓöÿ                      Γöé
  2135. Γöé                                        Γöé
  2136. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2137. Γöé   ΓööΓöÇAUTHOR.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                     Γöé
  2138. Γöé        Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                      Γöé
  2139. Γöé        Γöé         Γöé Γöé                      Γöé
  2140. Γöé        ΓööΓöÇΓöÇΓöÇcomment-entryΓöÇΓö┤ΓöÇΓöÿ                      Γöé
  2141. Γöé                                        Γöé
  2142. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2143. Γöé   ΓööΓöÇINSTALLATION.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  2144. Γöé           Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                   Γöé
  2145. Γöé           Γöé         Γöé Γöé                   Γöé
  2146. Γöé           ΓööΓöÇΓöÇΓöÇcomment-entryΓöÇΓö┤ΓöÇΓöÿ                   Γöé
  2147. Γöé                                        Γöé
  2148. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2149. Γöé   ΓööΓöÇDATE-WRITTEN.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  2150. Γöé           Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                   Γöé
  2151. Γöé           Γöé         Γöé Γöé                   Γöé
  2152. Γöé           ΓööΓöÇΓöÇΓöÇcomment-entryΓöÇΓö┤ΓöÇΓöÿ                   Γöé
  2153. Γöé                                        Γöé
  2154. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2155. Γöé   ΓööΓöÇDATE-COMPILED.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                 Γöé
  2156. Γöé            Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  2157. Γöé            Γöé         Γöé Γöé                  Γöé
  2158. Γöé            ΓööΓöÇΓöÇΓöÇcomment-entryΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  2159. Γöé                                        Γöé
  2160. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                  Γöé
  2161. Γöé   ΓööΓöÇSECURITY.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                    Γöé
  2162. Γöé         Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                     Γöé
  2163. Γöé         Γöé         Γöé Γöé                     Γöé
  2164. Γöé         ΓööΓöÇΓöÇΓöÇcomment-entryΓöÇΓö┤ΓöÇΓöÿ                     Γöé
  2165. Γöé                                        Γöé
  2166. Γöé NOTES:                                    Γöé
  2167. Γöé (1)  IBM Extension                              Γöé
  2168. Γöé                                        Γöé
  2169. Γöé (2)  Allowed only for nested COBOL programs                  Γöé
  2170. Γöé                                        Γöé
  2171. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2172.  
  2173. The first paragraph of the Identification Division must be the PROGRAM-ID 
  2174. paragraph. The other paragraphs are optional, but, when written, must appear in 
  2175. the order shown in the format. 
  2176.  
  2177. -----IBM Extension----- 
  2178.  
  2179. The abbreviation ID DIVISION may be substituted for the standard division 
  2180. header, and the optional paragraphs may be in any order. 
  2181.  
  2182. ---End of IBM Extension--- 
  2183.  
  2184. Related Information: 
  2185.  
  2186.   Identification Division Coding Example. 
  2187.  
  2188.  
  2189. ΓòÉΓòÉΓòÉ 7.1. Coding Example ΓòÉΓòÉΓòÉ
  2190.  
  2191.         IDENTIFICATION DIVISION.
  2192.         PROGRAM-ID. IDSAMPLE.
  2193.         AUTHOR. PROGRAMMER NAME.
  2194.         INSTALLATION. COBOL DEVELOPMENT CENTER.
  2195.         DATE-WRITTEN. 12/02/94.
  2196.         DATE-COMPILED. 12/09/94 12:57:53.
  2197.         SECURITY. NON-CONFIDENTIAL.
  2198.  
  2199.  
  2200. ΓòÉΓòÉΓòÉ 7.2. PROGRAM-ID Paragraph ΓòÉΓòÉΓòÉ
  2201.  
  2202. The PROGRAM-ID paragraph specifies the name of the COBOL program. For an 
  2203. outermost program, it can also specify the name of the program object (*PGM) or 
  2204. module object (*MODULE), or both. It is required and must be the first 
  2205. paragraph in the Identification Division. 
  2206.  
  2207. The name by which the program object is known to the system can be overridden 
  2208. by the PGM parameter of the CRTBNDCBL command. The name by which the module 
  2209. object is known can be overridden by the MODULE parameter of the CRTCBLMOD 
  2210. command. 
  2211.  
  2212.  
  2213. ΓòÉΓòÉΓòÉ 7.2.1. program-name ΓòÉΓòÉΓòÉ
  2214.  
  2215. A user-defined word that identifies your program or module object to the 
  2216. system. For program and module objects, only the first 10 characters of 
  2217. program-name are used as the identifying name of the object. For an ILE 
  2218. procedure name, the first 250 characters of program-name are used. If the 
  2219. *MONOPRC option is specified on the CRTBNDCBL or CRTCBLMOD command, the first 
  2220. character of program-name is forced to be alphabetic; if it is numeric, it is 
  2221. converted as follows: 
  2222.  
  2223.    0             to   J
  2224.    1 through 9   to   A through I
  2225.  
  2226. If a hyphen is in positions 2 through 10, it is converted to zero (0). 
  2227.  
  2228.  
  2229. ΓòÉΓòÉΓòÉ 7.2.2. literal ΓòÉΓòÉΓòÉ
  2230.  
  2231. Must be a nonnumeric literal. 
  2232.  
  2233. A nonnumeric literal without the enclosing delimiters becomes the program-name. 
  2234. The same rules apply for forming module, program, and procedure names as 
  2235. defined above under program-name. If the *MONOPRC option is specified, however, 
  2236. lowercase letters in the literal are converted to their uppercase equivalents. 
  2237.  
  2238.  
  2239. ΓòÉΓòÉΓòÉ 7.2.3. COMMON clause ΓòÉΓòÉΓòÉ
  2240.  
  2241. The COMMON clause allows the program named by program-name to be called by its 
  2242. siblings and by programs contained within the siblings. The COMMON clause can 
  2243. be used only in nested programs. 
  2244.  
  2245.  
  2246. ΓòÉΓòÉΓòÉ 7.2.4. INITIAL clause ΓòÉΓòÉΓòÉ
  2247.  
  2248. Specifies that when program-name is called, program-name and any programs 
  2249. contained within it are set to their initial state. (All working storage items 
  2250. are reset to their initial values and all INTERNAL files are closed.) 
  2251.  
  2252. A program is set to its initial state: 
  2253.  
  2254.   The first time the program is called in a run unit 
  2255.  
  2256.   Every time the program is called, if it possesses the INITIAL attribute 
  2257.  
  2258.   The first time the program is called after the execution of a CANCEL 
  2259.    statement referencing the program or a CANCEL statement referencing a 
  2260.    program that directly or indirectly contains the program 
  2261.  
  2262.   The first time the program is called after the execution of a CALL statement 
  2263.    referencing a program that possesses the INITIAL attribute, and that 
  2264.    directly or indirectly contains the program. 
  2265.  
  2266.    For example, if program A calls program B, and program B has the INITIAL 
  2267.    attribute and also contains program C, program C will be set to its initial 
  2268.    state the first time that it is called after A called B. 
  2269.  
  2270.  When a program is set to its initial state, the following occur: 
  2271.  
  2272.   The program's internal data contained in the Working-Storage Section are 
  2273.    initialized. If a VALUE clause is used in the description of the data item, 
  2274.    the data item is initialized to the defined value. If a VALUE clause is not 
  2275.    associated with a data item, the initial value of the data item is set to 
  2276.    the system default depending on whether the *STDINZ or *NOSTDINZ option is 
  2277.    specified on the CRTCBLMOD or CRTBNDCBL command. 
  2278.  
  2279.   Files with internal file connectors associated with the program are not in 
  2280.    the open mode. 
  2281.  
  2282.   The control mechanisms for all PERFORM statements contained in the program 
  2283.    are set to their initial states. 
  2284.  
  2285.   The altered GO TO statements contained in the program are set to their 
  2286.    initial state. 
  2287.  
  2288.  
  2289. ΓòÉΓòÉΓòÉ 7.2.5. comment-entry ΓòÉΓòÉΓòÉ
  2290.  
  2291. The comment-entry in any of the optional paragraphs may be any combination of 
  2292. characters from the character set of the computer. Do not confuse the 
  2293. comment-entry with a comment line. (The latter is indicated by a slash or 
  2294. asterisk in the indicator area.) The comment-entry is written in Area B on one 
  2295. or more lines. 
  2296.  
  2297. Comment-entries serve only as documentation; they do not affect the meaning of 
  2298. the program. A hyphen in the indicator area (column 7) is not permitted in 
  2299. comment-entries. 
  2300.  
  2301. The paragraph name DATE-COMPILED and any comment-entry associated with it are 
  2302. replaced during compilation with a paragraph of the form: 
  2303.  
  2304.    DATE-COMPILED. current date.
  2305.  
  2306. The first eight lines of the comment-entry in the SECURITY paragraph will form 
  2307. the copyright information in the created module object. 
  2308.  
  2309. -----IBM Extension----- 
  2310.  
  2311. A comment-entry may contain the *CBL, *CONTROL, EJECT, SKIP1, SKIP2, SKIP3, or 
  2312. TITLE statements anywhere on the line. These statements will be acted on if 
  2313. they are alone on a line within the comment-entry, and they will not terminate 
  2314. the comment-entry. 
  2315.  
  2316. Comments may combine double-byte and single-byte character-strings. Multiple 
  2317. lines are allowed in a comment-entry containing double-byte strings. 
  2318.  
  2319. Note:   Mixed strings are described under Character-Strings. 
  2320.  
  2321. ---End of IBM Extension--- 
  2322.  
  2323.  
  2324. ΓòÉΓòÉΓòÉ 8. Environment Division ΓòÉΓòÉΓòÉ
  2325.  
  2326. The Environment Division has two sections: 
  2327.  
  2328.   The Configuration Section 
  2329.  
  2330.   The Input-Output Section. 
  2331.  
  2332.  The Environment Division is optional in a COBOL source program. 
  2333.  
  2334.   ΓöîΓöÇΓöÇΓöÇ ENVIRONMENT DIVISION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2335.   Γöé                                        Γöé
  2336.   Γöé >>ΓöÇΓöÇENVIRONMENT DIVISION.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2337.   Γöé                                        Γöé
  2338.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2339.   Γöé   ΓööΓöÇCONFIGURATION SECTION.ΓöÇΓöÇΓöñ Configuration Section Paragraphs Γö£ΓöÇΓöÿ      Γöé
  2340.   Γöé                                        Γöé
  2341.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  2342.   Γöé   ΓööΓöÇINPUT-OUTPUT SECTION.ΓöÇΓöÇΓöñ Input-Output Section Paragraphs Γö£ΓöÇΓöÿ       Γöé
  2343.   Γöé                                        Γöé
  2344.   Γöé CONFIGURATION SECTION PARAGRAPHS:                       Γöé
  2345.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2346.   Γöé   ΓööΓöÇSOURCE-COMPUTER.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  2347.   Γöé             ΓööΓöÇsource-computer-entryΓöÇΓöÿ               Γöé
  2348.   Γöé                                        Γöé
  2349.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2350.   Γöé   ΓööΓöÇOBJECT-COMPUTER.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  2351.   Γöé             ΓööΓöÇobject-computer-entryΓöÇΓöÿ               Γöé
  2352.   Γöé                                        Γöé
  2353.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ               Γöé
  2354.   Γöé   ΓööΓöÇSPECIAL-NAMES.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                Γöé
  2355.   Γöé            ΓööΓöÇspecial-names-entryΓöÇΓöÿ                 Γöé
  2356.   Γöé                                        Γöé
  2357.   Γöé INPUT-OUTPUT SECTION PARAGRAPHS:                       Γöé
  2358.   Γöé          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  2359.   Γöé                     Γöé                   Γöé
  2360.   Γöé Γö£ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇΓöÇΓöÇfile-control-entryΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2361.   Γöé                                        Γöé
  2362.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ               Γöé
  2363.   Γöé   ΓööΓöÇI-O-CONTROL.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                Γöé
  2364.   Γöé           Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                 Γöé
  2365.   Γöé           Γöé           Γöé Γöé                 Γöé
  2366.   Γöé           ΓööΓöÇΓöÇΓöÇi-o-control-entryΓöÇΓö┤ΓöÇΓöÿ                 Γöé
  2367.   Γöé                                        Γöé
  2368.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2369.  
  2370.  Related Information: 
  2371.  
  2372.   Environment Division Coding Example. 
  2373.  
  2374.  
  2375. ΓòÉΓòÉΓòÉ 8.1. Configuration Section ΓòÉΓòÉΓòÉ
  2376.  
  2377. The Configuration Section is optional. When specified, it can describe the 
  2378. computer on which the source program is compiled and the computer on which the 
  2379. object program is executed. However, the Configuration Section must not be 
  2380. specified in a nested program.  The entries specified in the Configuration 
  2381. Section of a program apply to all programs contained within that program. 
  2382.  
  2383. In addition, the Configuration Section can: 
  2384.  
  2385.   Relate IBM-defined environment-names to user-defined mnemonic names 
  2386.  
  2387.   Specify the collating sequence 
  2388.  
  2389.   Specify a substitution for the currency sign 
  2390.  
  2391.   Interchange the functions of the comma and the period in PICTURE clauses and 
  2392.    numeric literals 
  2393.  
  2394.   Relate alphabet-names to character sets or collating sequences 
  2395.  
  2396.   Relate class names to sets of characters 
  2397.  
  2398.   Specify the type of linkage to be made on a CALL, CANCEL, or SET...ENTRY 
  2399.    statement. 
  2400.  
  2401.  Each paragraph must contain one, and only one, separator period immediately 
  2402.  after the last entry in the paragraph. 
  2403.  
  2404.  The Configuration Section of the Environment Division contains three 
  2405.  paragraphs: 
  2406.  
  2407.   SOURCE-COMPUTER paragraph 
  2408.   OBJECT-COMPUTER paragraph 
  2409.   SPECIAL-NAMES paragraph. 
  2410.  
  2411.  
  2412. ΓòÉΓòÉΓòÉ 8.1.1. Coding Example ΓòÉΓòÉΓòÉ
  2413.  
  2414.         ENVIRONMENT DIVISION.
  2415.         CONFIGURATION SECTION.
  2416.         SOURCE-COMPUTER. IBM-AS400.
  2417.         OBJECT-COMPUTER. IBM-AS400.
  2418.         SPECIAL-NAMES. C01 IS TOP-OF-PAGE.
  2419.  
  2420.  
  2421. ΓòÉΓòÉΓòÉ 8.2. SOURCE-COMPUTER Paragraph ΓòÉΓòÉΓòÉ
  2422.  
  2423. The SOURCE-COMPUTER paragraph describes the computer on which the source 
  2424. program is to be compiled. 
  2425.  
  2426. ΓöîΓöÇΓöÇΓöÇ SOURCE-COMPUTER PARAGRAPH - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2427. Γöé                                        Γöé
  2428. Γöé >>ΓöÇΓöÇSOURCE-COMPUTER.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ>< Γöé
  2429. Γöé            ΓööΓöÇcomputer-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÿ   Γöé
  2430. Γöé                     ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDEBUGGING MODEΓöÇΓöÿ      Γöé
  2431. Γöé                      ΓööΓöÇWITHΓöÇΓöÿ               Γöé
  2432. Γöé                                        Γöé
  2433. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2434.  
  2435. Except for the WITH DEBUGGING MODE clause, the SOURCE-COMPUTER paragraph is 
  2436. syntax checked, and has no effect on the execution of the program. 
  2437.  
  2438.  
  2439. ΓòÉΓòÉΓòÉ 8.2.1. WITH DEBUGGING MODE ΓòÉΓòÉΓòÉ
  2440.  
  2441. Activates a compile-time switch for debugging lines written in the source 
  2442. program. 
  2443.  
  2444. A debugging line is a statement that is compiled only when the compile-time 
  2445. switch is activated. Debugging lines allow you, for example, to check the value 
  2446. of a data-name at certain points in a procedure. 
  2447.  
  2448. The WITH DEBUGGING MODE clause causes any USE FOR DEBUGGING procedure to be 
  2449. compiled. Without this clause, these procedures are treated as comments and 
  2450. ignored. 
  2451.  
  2452. To specify a debugging line in your program, code a 'D' or 'd' in column 7 
  2453. (indicator area).  You may include successive debugging lines, but each must 
  2454. have a 'D' or 'd' in column 7 and you may not break character strings across 
  2455. lines. 
  2456.  
  2457. All your debugging lines must be written so that the program is syntactically 
  2458. correct, whether the debugging lines are compiled or treated as comments. 
  2459.  
  2460. The presence or absence of the DEBUGGING MODE clause is determined after all 
  2461. COPY statements are processed. See COPY Statement for details. 
  2462.  
  2463. You may code debugging lines in the Environment (after the OBJECT-COMPUTER 
  2464. paragraph), Data, or Procedure Divisions. 
  2465.  
  2466. If a debugging line contains only spaces in Area A and in Area B, it is treated 
  2467. the same as a blank line. 
  2468.  
  2469. If the WITH DEBUGGING MODE clause is omitted, debug lines are treated as 
  2470. comment lines. 
  2471.  
  2472.  
  2473. ΓòÉΓòÉΓòÉ 8.3. OBJECT-COMPUTER Paragraph ΓòÉΓòÉΓòÉ
  2474.  
  2475. The OBJECT-COMPUTER paragraph specifies the system for which the object program 
  2476. is designated. 
  2477.  
  2478. ΓöîΓöÇΓöÇΓöÇ OBJECT-COMPUTER PARAGRAPH - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2479. Γöé                                        Γöé
  2480. Γöé >>ΓöÇΓöÇOBJECT-COMPUTER.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><           Γöé
  2481. Γöé            ΓööΓöÇcomputer-nameΓöÇΓöÇΓöñ Entry Γö£ΓöÇΓöÇ.ΓöÇΓöÿ             Γöé
  2482. Γöé                                        Γöé
  2483. Γöé ENTRY:                                    Γöé
  2484. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2485. Γöé   Γöé     (1)                  Γöé              Γöé
  2486. Γöé   ΓööΓöÇMEMORYΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇintegerΓöÇΓöÇΓö¼ΓöÇWORDSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  2487. Γöé         ΓööΓöÇSIZEΓöÇΓöÿ      Γö£ΓöÇCHARACTERSΓöÇΓöñ               Γöé
  2488. Γöé                   ΓööΓöÇMODULESΓöÇΓöÇΓöÇΓöÇΓöÿ               Γöé
  2489. Γöé                                        Γöé
  2490. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2491. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENCEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-nameΓöÇΓöÿ      Γöé
  2492. Γöé    ΓööΓöÇPROGRAMΓöÇΓöÿ  ΓööΓöÇCOLLATINGΓöÇΓöÿ       ΓööΓöÇISΓöÇΓöÿ               Γöé
  2493. Γöé                                        Γöé
  2494. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ              Γöé
  2495. Γöé   Γöé        (1)             Γöé                Γöé
  2496. Γöé   ΓööΓöÇSEGMENT-LIMITΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇsegment-numberΓöÇΓöÿ                Γöé
  2497. Γöé             ΓööΓöÇISΓöÇΓöÿ                         Γöé
  2498. Γöé                                        Γöé
  2499. Γöé NOTE:                                     Γöé
  2500. Γöé (1)  Syntax-checked only                           Γöé
  2501. Γöé                                        Γöé
  2502. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2503.  
  2504.  
  2505. ΓòÉΓòÉΓòÉ 8.3.1. MEMORY SIZE ΓòÉΓòÉΓòÉ
  2506.  
  2507. The amount of main storage needed to run the object program. The MEMORY SIZE 
  2508. clause is syntax checked only. 
  2509.  
  2510.  
  2511. ΓòÉΓòÉΓòÉ 8.3.2. PROGRAM COLLATING SEQUENCE IS ΓòÉΓòÉΓòÉ
  2512.  
  2513. The collating sequence used in this program (and any programs it may contain) 
  2514. is the collating sequence associated with the specified alphabet-name. 
  2515.  
  2516. PROGRAM COLLATING SEQUENCE determines the truth value of the following 
  2517. nonnumeric comparisons: 
  2518.  
  2519.   Those explicitly specified in relation conditions 
  2520.   Those explicitly specified in condition-name conditions. 
  2521.  
  2522.  The PROGRAM COLLATING SEQUENCE clause also applies to any nonnumeric merge or 
  2523.  sort keys, unless the COLLATING SEQUENCE phrase is specified in the MERGE or 
  2524.  SORT statement. When the PROGRAM COLLATING SEQUENCE clause is omitted, the 
  2525.  EBCDIC collating sequence is used. 
  2526.  
  2527.  
  2528. ΓòÉΓòÉΓòÉ 8.3.3. SEGMENT-LIMIT IS ΓòÉΓòÉΓòÉ
  2529.  
  2530. Determines which segments will be considered as permanent segments of the 
  2531. object program. This clause is syntax checked only. 
  2532.  
  2533.  
  2534. ΓòÉΓòÉΓòÉ 8.4. SPECIAL-NAMES Paragraph ΓòÉΓòÉΓòÉ
  2535.  
  2536. The SPECIAL-NAMES paragraph: 
  2537.  
  2538.   Relates IBM-specified environment-names to user-defined mnemonic-names. 
  2539.  
  2540.   Relates alphabet-names to character sets or collating sequences. 
  2541.  
  2542.   Relates class names to sets of characters. 
  2543.  
  2544.   Specifies a substitute character for the currency sign. 
  2545.  
  2546.   Specifies that the functions of the comma and decimal point are to be 
  2547.    interchanged in PICTURE clauses and numeric literals. 
  2548.  
  2549.    -----IBM Extension----- 
  2550.  
  2551.   Specifies that ACCEPT or DISPLAY statements are treated as extended ACCEPT 
  2552.    or DISPLAY statements, or as requests to the dynamic screen manager session 
  2553.    services APIs. 
  2554.  
  2555.   Specifies additional functions associated with ACCEPT statements. 
  2556.  
  2557.   Specifies the type of linkage used for a CALL or CANCEL of a program, and 
  2558.    for setting a procedure-pointer with the SET statement. 
  2559.  
  2560.    ---End of IBM Extension--- 
  2561.  
  2562.   ΓöîΓöÇΓöÇΓöÇ SPECIAL-NAMES PARAGRAPH - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2563.   Γöé                                        Γöé
  2564.   Γöé >>ΓöÇΓöÇSPECIAL-NAMES.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2565.   Γöé                                        Γöé
  2566.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé
  2567.   Γöé                                     Γöé   Γöé
  2568.   Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇ> Γöé
  2569.   Γöé    Γö£ΓöÇenvironment-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇmnemonic-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ    Γöé
  2570.   Γöé    Γöé           ΓööΓöÇISΓöÇΓöÿ                   Γöé    Γöé
  2571.   Γöé    ΓööΓöÇenvironment-name-2ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇmnemonic-name-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÿ    Γöé
  2572.   Γöé               Γöé ΓööΓöÇISΓöÇΓöÿ          ΓööΓöÇΓöñ cond Γö£ΓöÇΓöÿ Γöé     Γöé
  2573.   Γöé               ΓööΓöÇΓöñ cond Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÿ     Γöé
  2574.   Γöé                                        Γöé
  2575.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  2576.   Γöé             Γöé           Γöé                 Γöé
  2577.   Γöé >ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2578.   Γöé   ΓööΓöÇALPHABET ClauseΓöÇΓöÿ   ΓööΓöÇCLASS ClauseΓöÇΓöÿ  Γöé         (1)Γöé      Γöé
  2579.   Γöé                        ΓööΓöÇCONSOLE ClauseΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  2580.   Γöé                                        Γöé
  2581.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2582.   Γöé   Γöé           (1)Γöé  ΓööΓöÇCURRENCY SIGN ClauseΓöÇΓöÿ            Γöé
  2583.   Γöé   ΓööΓöÇCRT  STATUS ClauseΓöÇΓöÇΓöÇΓöÇΓöÿ                         Γöé
  2584.   Γöé                                        Γöé
  2585.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2586.   Γöé   Γöé        (1)Γöé  ΓööΓöÇDECIMAL-POINT ClauseΓöÇΓöÿ               Γöé
  2587.   Γöé   ΓööΓöÇCURSOR ClauseΓöÇΓöÇΓöÇΓöÇΓöÿ                            Γöé
  2588.   Γöé                                        Γöé
  2589.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                        Γöé
  2590.   Γöé                 Γöé                        Γöé
  2591.   Γöé >ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                 Γöé
  2592.   Γöé   Γöé           (1)Γöé  Γöé  (2)Γöé                   Γöé
  2593.   Γöé   ΓööΓöÇLINKAGE TYPE ClauseΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  2594.   Γöé                                        Γöé
  2595.   Γöé COND:                                     Γöé
  2596.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇONΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇcondition-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöñ      Γöé
  2597.   Γöé   Γöé    ΓööΓöÇSTATUSΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ        ΓööΓöÇΓöñ off phrase Γö£ΓöÇΓöÿ Γöé       Γöé
  2598.   Γöé   ΓööΓöÇΓöñ off phrase Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÿ       Γöé
  2599.   Γöé            ΓööΓöÇONΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇcondition-1ΓöÇΓöÿ        Γöé
  2600.   Γöé                ΓööΓöÇSTATUSΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                Γöé
  2601.   Γöé                                        Γöé
  2602.   Γöé OFF PHRASE:                                  Γöé
  2603.   Γöé Γö£ΓöÇΓöÇOFFΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇcondition-2ΓöÇΓöÇΓöñ                  Γöé
  2604.   Γöé      ΓööΓöÇSTATUSΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                          Γöé
  2605.   Γöé                                        Γöé
  2606.   Γöé NOTES:                                    Γöé
  2607.   Γöé (1)  IBM Extension                              Γöé
  2608.   Γöé                                        Γöé
  2609.   Γöé (2)  The separator period must be used if any of the optional clauses are   Γöé
  2610.   Γöé    selected.  Clauses can be entered in any order.             Γöé
  2611.   Γöé                                        Γöé
  2612.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2613.  
  2614.  Related Information: 
  2615.  
  2616.   SPECIAL-NAMES Paragraph Coding Example. 
  2617.  
  2618.  
  2619. ΓòÉΓòÉΓòÉ 8.4.1. environment-name-1 ΓòÉΓòÉΓòÉ
  2620.  
  2621. System devices or standard system actions taken by the compiler. 
  2622.  
  2623. Choices of Environment-Name-1 and Action Taken shows the actions that are 
  2624. associated with mnemonic-names for environment-name-1. 
  2625.  
  2626. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2627. Γöé      Choices of Environment-Name-1 and Action Taken            Γöé
  2628. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2629. Γöé ENVIRONMENT-NAME-1Γöé STATEMENT WHERE  Γöé USAGE                 Γöé
  2630. Γöé          Γöé MNEMONIC-NAME   Γöé                    Γöé
  2631. Γöé          Γöé ASSOCIATED WITH  Γöé                    Γöé
  2632. Γöé          Γöé ENVIRONMENT-NAME  Γöé                    Γöé
  2633. Γöé          Γöé IS USED      Γöé                    Γöé
  2634. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2635. Γöé CSP        Γöé WRITE       Γöé Suppress spacing when printing a   Γöé
  2636. Γöé          Γöé          Γöé line.  Use only when the device is  Γöé
  2637. Γöé          Γöé          Γöé PRINTER.               Γöé
  2638. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2639. Γöé C01        Γöé WRITE       Γöé Skip to the next page.  Use only   Γöé
  2640. Γöé          Γöé          Γöé when the device is PRINTER.      Γöé
  2641. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2642. Γöé ATTRIBUTE-DATA   Γöé ACCEPT       Γöé Retrieve attribute data about a    Γöé
  2643. Γöé          Γöé          Γöé program device acquired by a trans-  Γöé
  2644. Γöé          Γöé          Γöé action file, but only when the file  Γöé
  2645. Γöé          Γöé          Γöé is open.               Γöé
  2646. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2647. Γöé I-O-FEEDBACK    Γöé ACCEPT       Γöé Give information about the last I-O  Γöé
  2648. Γöé          Γöé          Γöé operation on a file, but only when  Γöé
  2649. Γöé          Γöé          Γöé the file is open.           Γöé
  2650. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2651. Γöé OPEN-FEEDBACK   Γöé ACCEPT       Γöé Give information about a file, but  Γöé
  2652. Γöé          Γöé          Γöé only when the file is open.      Γöé
  2653. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2654. Γöé CONSOLE,      Γöé ACCEPT, DISPLAY  Γöé Communicate with the system opera-  Γöé
  2655. Γöé SYSTEM-CONSOLE   Γöé          Γöé tor's message queue (QSYSOPR).    Γöé
  2656. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2657. Γöé LOCAL-DATA     Γöé ACCEPT, DISPLAY  Γöé Retrieve data from, or move data to  Γöé
  2658. Γöé          Γöé          Γöé the local data area created by the  Γöé
  2659. Γöé          Γöé          Γöé system for every job.         Γöé
  2660. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2661. Γöé PIP-DATA      Γöé ACCEPT       Γöé Retrieve data from the Program    Γöé
  2662. Γöé          Γöé          Γöé Initialization Parameters (PIP) data Γöé
  2663. Γöé          Γöé          Γöé area for programs running as part of Γöé
  2664. Γöé          Γöé          Γöé a prestart job.  For more informa-  Γöé
  2665. Γöé          Γöé          Γöé tion regarding prestart jobs, see   Γöé
  2666. Γöé          Γöé          Γöé the Work Management.         Γöé
  2667. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2668. Γöé REQUESTOR     Γöé ACCEPT, DISPLAY  Γöé Communicate with the user work    Γöé
  2669. Γöé          Γöé          Γöé station (interactive jobs) or the   Γöé
  2670. Γöé          Γöé          Γöé batch input stream or job log (batch Γöé
  2671. Γöé          Γöé          Γöé jobs).                Γöé
  2672. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2673. Γöé SYSIN       Γöé ACCEPT       Γöé The equivalent of REQUESTOR (for the Γöé
  2674. Γöé          Γöé          Γöé ACCEPT statement only).        Γöé
  2675. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2676. Γöé SYSOUT       Γöé DISPLAY      Γöé The equivalent of REQUESTOR (for the Γöé
  2677. Γöé          Γöé          Γöé DISPLAY statement only).       Γöé
  2678. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2679.  
  2680.  
  2681. ΓòÉΓòÉΓòÉ 8.4.2. environment-name-2 ΓòÉΓòÉΓòÉ
  2682.  
  2683. Environment-name-2 can be defined as UPSI-0 through UPSI-7 or as 
  2684. SYSTEM-SHUTDOWN; UPSI stands for a one-byte User Programmable Status Indicator 
  2685. switch. 
  2686.  
  2687. UPSI-0 through UPSI-7 are COBOL names that identify program switches defined 
  2688. outside the COBOL program at object time. Their contents are considered to be 
  2689. alphanumeric. A value of zero is off; a value of one is on. 
  2690.  
  2691. Each switch represents one byte from the 8-character SWS parameter of the 
  2692. control language CHGJOB, SBMJOB, JOB, and JOBD commands as follows: 
  2693.  
  2694.    UPSI-0  First byte (leftmost)
  2695.    UPSI-1  Second byte
  2696.    UPSI-2  Third byte
  2697.    .           .
  2698.    .           .
  2699.    .           .
  2700.    UPSI-7  Eighth byte (rightmost)
  2701.  
  2702. SYSTEM-SHUTDOWN is an internal switch that is set to ON status when the system 
  2703. operator causes the system to be in a shutdown-pending state or when the job is 
  2704. being canceled in a controlled manner.  The associated ON or OFF 
  2705. condition-names can be referenced anywhere a condition-name is valid.  Their 
  2706. status cannot be altered by the program. 
  2707.  
  2708.  
  2709. ΓòÉΓòÉΓòÉ 8.4.3. mnemonic-name-1, mnemonic-name-2 ΓòÉΓòÉΓòÉ
  2710.  
  2711. Mnemonic-name-1 and mnemonic-name-2 follow the rules of formation for 
  2712. user-defined names. Mnemonic-name-1 can be used in ACCEPT, DISPLAY, and WRITE 
  2713. statements. Mnemonic-name-2 can be referenced only in the SET statement. 
  2714. Mnemonic-name-2 can qualify condition-1 or condition-2 names. 
  2715.  
  2716. Mnemonic-names and environment-names need not be unique. If you choose a 
  2717. mnemonic-name that is also an environment name, its definition as a 
  2718. mnemonic-name takes precedence over its definition as an environment-name for a 
  2719. given reference to such a name. 
  2720.  
  2721.  
  2722. ΓòÉΓòÉΓòÉ 8.4.4. ON STATUS IS, OFF STATUS IS ΓòÉΓòÉΓòÉ
  2723.  
  2724. UPSI switches process special conditions within a program, such as 
  2725. year-beginning or year-ending processing. For example, at the beginning of the 
  2726. Procedure Division, an UPSI switch can be tested; if it is ON, the special 
  2727. branch is taken. (See Switch-Status Condition.) 
  2728.  
  2729.  
  2730. ΓòÉΓòÉΓòÉ 8.4.5. condition-1, condition-2 ΓòÉΓòÉΓòÉ
  2731.  
  2732. If environment-name-2 references an external switch, the on/off status of that 
  2733. switch can be associated with condition-names, such as condition-1, 
  2734. condition-2. The status of the switch can be obtained through the 
  2735. condition-names. Condition-names follow the rules for user-defined names. At 
  2736. least one character must be alphabetic. The value associated with the 
  2737. condition-name is considered to be alphanumeric. 
  2738.  
  2739. In the Procedure Division, the UPSI switch status is tested through the 
  2740. associated condition-name. Each condition-name is the equivalent of a level-88 
  2741. item; the associated mnemonic-name, if specified, is considered the conditional 
  2742. variable and can be used for qualification. 
  2743.  
  2744. Any names declared in a program's SPECIAL-NAMES paragraph can be referenced 
  2745. from any contained program. 
  2746.  
  2747.  
  2748. ΓòÉΓòÉΓòÉ 8.4.6. Coding Example ΓòÉΓòÉΓòÉ
  2749.  
  2750. This coding example assigns mnemonic-names to some commonly used 
  2751. environment-names in the SPECIAL-NAMES paragraph. 
  2752.  
  2753.    SPECIAL-NAMES.  SYSTEM-CONSOLE IS SYSTM
  2754.        REQUESTOR IS WORK-STATION
  2755.        C01 IS NEXT-PAGE
  2756.        LOCAL-DATA IS LOCAL-DATA-AREA
  2757.        ATTRIBUTE-DATA IS ATTRB-DATA
  2758.        SYSTEM-SHUTDOWN IS SHUTDOWN-SWITCH
  2759.            ON STATUS IS SHUTDOWN-PENDING
  2760.        UPSI-0 IS UPSI-SWITCH-0
  2761.            ON STATUS IS U0-ON
  2762.            OFF STATUS IS U0-OFF
  2763.        UPSI-1 IS UPSI-SWITCH-1
  2764.            ON STATUS IS U1-ON
  2765.            OFF STATUS IS U1-OFF
  2766.        IBM-ASCII IS STANDARD-1
  2767.        CURRENCY-SIGN IS "Y".
  2768.  
  2769.  
  2770. ΓòÉΓòÉΓòÉ 8.5. ALPHABET Clause ΓòÉΓòÉΓòÉ
  2771.  
  2772. The ALPHABET clause provides a means of relating an alphabet-name to a 
  2773. specified character code set or collating sequence. 
  2774.  
  2775. ΓöîΓöÇΓöÇΓöÇ ALPHABET CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2776. Γöé                                        Γöé
  2777. Γöé >>ΓöÇΓöÇALPHABETΓöÇΓöÇalphabet-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2778. Γöé                 ΓööΓöÇISΓöÇΓöÿ                     Γöé
  2779. Γöé                                        Γöé
  2780. Γöé >ΓöÇΓöÇΓö¼ΓöÇSTANDARD-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><             Γöé
  2781. Γöé   Γö£ΓöÇSTANDARD-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  2782. Γöé   Γö£ΓöÇNATIVEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  2783. Γöé   Γö£ΓöÇEBCDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  2784. Γöé   Γö£ΓöÇNLSSORTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  2785. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé               Γöé
  2786. Γöé   Γöé                     Γöé Γöé               Γöé
  2787. Γöé   ΓööΓöÇΓöÇΓöÇliteral-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ               Γöé
  2788. Γöé          Γö£ΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇliteral-2ΓöÇΓöñ                 Γöé
  2789. Γöé          Γöé ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé                 Γöé
  2790. Γöé          Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé                 Γöé
  2791. Γöé          Γöé          Γöé   Γöé                 Γöé
  2792. Γöé          ΓööΓöÇΓöÇΓöÇALSOΓöÇΓöÇliteral-3ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  2793. Γöé                                        Γöé
  2794. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2795.  
  2796. It specifies a collating sequence when used in either: 
  2797.  
  2798.   The PROGRAM COLLATING SEQUENCE clause of the OBJECT-COMPUTER paragraph 
  2799.  
  2800.   The COLLATING SEQUENCE phrase of the SORT or MERGE statement. 
  2801.  
  2802.  It specifies a character code set when specified in 
  2803.  
  2804.   The FD entry CODE-SET clause. 
  2805.  
  2806.  Note:   The EBCDIC collating sequence is used when the alphabet-name clause is 
  2807.          omitted. 
  2808.  
  2809.  Related Information: 
  2810.  
  2811.   ALPHABET Clause Coding Examples. 
  2812.  
  2813.  
  2814. ΓòÉΓòÉΓòÉ 8.5.1. alphabet-name-1 ΓòÉΓòÉΓòÉ
  2815.  
  2816. Alphabet-name-1 follows the rules for user-defined names.  At least one 
  2817. character must be alphabetic.  Alphabet-name-1 identifies a specific character 
  2818. code set or collating sequence. 
  2819.  
  2820.  
  2821. ΓòÉΓòÉΓòÉ 8.5.2. literal-1, literal-2, literal-3 ΓòÉΓòÉΓòÉ
  2822.  
  2823. Specifies that the collating sequence is to be determined by the program, 
  2824. according to the following rules: 
  2825.  
  2826.   The order in which literals appear specifies the ordinal number, in 
  2827.    ascending sequence, of the character(s) in this collating sequence. 
  2828.  
  2829.   Each numeric literal specified must be an unsigned integer and must have a 
  2830.    value from 1 through 256 (the maximum number of characters in the EBCDIC 
  2831.    character set).  The value of each literal specifies the relative position 
  2832.    of a character within the EBCDIC character set. For example: 
  2833.  
  2834.     literal 112 represents the EBCDIC character ? 
  2835.     literal 234 represents the EBCDIC character Z 
  2836.     literal 241 represents the EBCDIC numeric character 0. 
  2837.  
  2838.   Each character in a nonnumeric literal represents that actual character in 
  2839.    the EBCDIC character set. (If the nonnumeric literal contains more than one 
  2840.    character, each character, starting with the leftmost, is assigned a 
  2841.    successively ascending position within this collating sequence.) 
  2842.  
  2843.   Any EBCDIC characters not explicitly specified assume positions in this 
  2844.    collating sequence higher than any of the explicitly specified characters. 
  2845.    The relative order of the unspecified characters remains unchanged from the 
  2846.    EBCDIC collating sequence. 
  2847.  
  2848.   Within one alphabet-name clause, a given character must not be specified 
  2849.    more than once. 
  2850.  
  2851.   Each nonnumeric literal associated with a THROUGH or ALSO phrase must be 1 
  2852.    character in length (if it is longer, only the first character is kept, and 
  2853.    a warning is issued) 
  2854.  
  2855.   When the THROUGH phrase is specified, the contiguous EBCDIC characters 
  2856.    beginning with the character specified by literal-1 and ending with the 
  2857.    character specified by literal-2 are assigned successively ascending 
  2858.    positions in this collating sequence. This sequence may be either ascending 
  2859.    or descending within the original EBCDIC sequence. For example, if the 
  2860.    characters Z through S are specified, then for this collating sequence the 
  2861.    ascending values are: ZYXWVUTS. 
  2862.  
  2863.   When the ALSO phrase is specified, the EBCDIC characters specified as 
  2864.    literal-1, literal-3, and so on, are assigned to the same position in this 
  2865.    collating sequence. For example, if you specify: 
  2866.  
  2867.       "D" ALSO "N" ALSO "%"
  2868.    the characters D, N, and % are all considered to be in the same position in 
  2869.    the collating sequence. 
  2870.  
  2871.   If specified as literals in the SPECIAL-NAMES paragraph, the figurative 
  2872.    constants HIGH-VALUE and LOW-VALUE are associated with hex FF and hex 00 
  2873.    respectively. 
  2874.  
  2875.   After all clauses in the SPECIAL-NAMES paragraph are processed, the 
  2876.    character having the highest ordinal position in this collating sequence is 
  2877.    associated with the figurative constant HIGH-VALUE. If more than one 
  2878.    character has the highest position, because of specification of the ALSO 
  2879.    phrase, the last character specified (or defaulted to when some characters 
  2880.    in the native collating sequence are not explicitly specified) is considered 
  2881.    to be the HIGH-VALUE character for procedural statements such as DISPLAY, or 
  2882.    as the sending field in a MOVE statement. (If all characters within the 
  2883.    native collating sequence were explicitly specified, and the ALSO phrase 
  2884.    example from above were specified as the high-order characters of this 
  2885.    collating sequence, the HIGH-VALUE character would be %.) 
  2886.  
  2887.   After all clauses in the SPECIAL-NAMES paragraph are processed, the 
  2888.    character having the lowest ordinal position in this collating sequence is 
  2889.    associated with the figurative constant LOW-VALUE. If more than one 
  2890.    character has the lowest position, because of specification of the ALSO 
  2891.    phrase, the first character specified is the LOW-VALUE character. (If the 
  2892.    ALSO phrase example given above were specified as the low-order characters 
  2893.    of the collating sequence, the LOW-VALUE character would be D.) 
  2894.  
  2895.  When literal-1, literal-2, or literal-3 is specified, the alphabet-name must 
  2896.  not be referred to in a CODE-SET clause (see CODE-SET Clause). 
  2897.  
  2898.  
  2899. ΓòÉΓòÉΓòÉ 8.5.3. Coding Examples ΓòÉΓòÉΓòÉ
  2900.  
  2901. The following examples illustrate some uses for the ALPHABET clause. 
  2902.  
  2903. If PROGRAM COLLATING SEQUENCE IS USER-SEQUENCE; if the alphabet-name clause is 
  2904. specified as USER-SEQUENCE IS "D", "E", "F"; and if two Data Division items are 
  2905. defined as follows: 
  2906.  
  2907.    77 ITEM-1 PIC X(3) VALUE "ABC".
  2908.    77 ITEM-2 PIC X(3) VALUE "DEF".
  2909.  
  2910. then the following comparison is true: 
  2911.  
  2912.    IF ITEM-1 > ITEM-2
  2913.  
  2914. Characters D, E, and F are in ordinal positions 1, 2, and 3 of this collating 
  2915. sequence.  Characters A, B, and C are in ordinal positions 197, 198, and 199 of 
  2916. this collating sequence. 
  2917.  
  2918. If the alphabet-name clause is USER-SEQUENCE IS 1 THRU 247, 251 THRU 256, "7", 
  2919. ALSO "8", ALSO "9"; if all 256 EBCDIC characters have been specified; and if 
  2920. the two Data Division items are specified as follows: 
  2921.  
  2922.    77 ITEM-1 PIC X(3) VALUE HIGH-VALUE.
  2923.    77 ITEM-2 PIC X(3) VALUE "789".
  2924.  
  2925. then both of the following comparisons are true: 
  2926.  
  2927.    IF ITEM-1 = ITEM-2 . . .
  2928.    IF ITEM-2 = HIGH-VALUE . . .
  2929.  
  2930. They compare as true because the values "7", "8", and "9" all occupy the same 
  2931. position (HIGH-VALUE) in this USER-SEQUENCE collating sequence. 
  2932.  
  2933. If the alphabet-name clause is specified as USER-SEQUENCE IS "E", "D", "F" and 
  2934. a table in the Data Division is defined as follows: 
  2935.  
  2936.    05 TABLE A OCCURS 6 ASCENDING KEY IS
  2937.       KEY-A INDEXED BY INX-A.
  2938.       10 FIELD-A ...
  2939.       10 KEY-A ...
  2940.  
  2941. and if the contents in ascending sequence of each occurrence of KEY-A are A, B, 
  2942. C, D, E, G, then the results of the execution of a SEARCH ALL statement for 
  2943. this table will be invalid because the contents of KEY-A are not in ascending 
  2944. order.  The proper ascending order would be E, D, A, B, C, G. 
  2945.  
  2946.  
  2947. ΓòÉΓòÉΓòÉ 8.6. CLASS Clause ΓòÉΓòÉΓòÉ
  2948.  
  2949. The CLASS clause relates a name to the specified set of characters listed in 
  2950. that clause. 
  2951.  
  2952. ΓöîΓöÇΓöÇΓöÇ CLASS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2953. Γöé                                        Γöé
  2954. Γöé >>ΓöÇΓöÇCLASSΓöÇΓöÇclass-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  2955. Γöé              ΓööΓöÇISΓöÇΓöÿ                        Γöé
  2956. Γöé                                        Γöé
  2957. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  2958. Γöé                       Γöé                 Γöé
  2959. Γöé >ΓöÇΓöÇΓöÇΓöÇliteral-4ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><               Γöé
  2960. Γöé         ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇliteral-5ΓöÇΓöÿ                  Γöé
  2961. Γöé          ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                         Γöé
  2962. Γöé                                        Γöé
  2963. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2964.  
  2965.  
  2966. ΓòÉΓòÉΓòÉ 8.6.1. class-name-1 ΓòÉΓòÉΓòÉ
  2967.  
  2968. Class-name-1 is a user-defined word and must contain at least one alphabetic 
  2969. character. Class-name-1 can be referenced only in a class condition. See Class 
  2970. Condition for more information. The characters specified by the values of the 
  2971. literals in this clause define the exclusive set of characters of which 
  2972. class-name-1 consists. 
  2973.  
  2974.  
  2975. ΓòÉΓòÉΓòÉ 8.6.2. literal-4, literal-5 ΓòÉΓòÉΓòÉ
  2976.  
  2977. If numeric, must be unsigned integers and must have a value from 1 through 256 
  2978. (the maximum number of characters in the EBCDIC character set). 
  2979.  
  2980. The value of each literal specifies the relative position, or ordinal number, 
  2981. of a character within the EBCDIC character set. 
  2982.  
  2983. If nonnumeric, the literal is the actual character within the EBCDIC character 
  2984. set. If the value of the nonnumeric literal contains multiple characters, each 
  2985. character in the literal is included in the set of characters identified by 
  2986. class-name. 
  2987.  
  2988. If the nonnumeric literal is associated with a THROUGH phrase, it must be one 
  2989. character in length. 
  2990.  
  2991.  
  2992. ΓòÉΓòÉΓòÉ 8.6.3. THROUGH, THRU ΓòÉΓòÉΓòÉ
  2993.  
  2994. If THROUGH is specified, class-name includes those characters beginning with 
  2995. the value of literal-4 and ending with the value of literal-5. In addition, the 
  2996. characters specified by a THROUGH phrase may specify characters in either 
  2997. ascending or descending order. 
  2998.  
  2999.  
  3000. ΓòÉΓòÉΓòÉ 8.7. CONSOLE Clause ΓòÉΓòÉΓòÉ
  3001.  
  3002. -----IBM Extension----- 
  3003.  
  3004. If CONSOLE IS CRT is specified, any ACCEPT or DISPLAY statement that has no 
  3005. phrases specific to a particular format (such as LOCAL-DATA or PIP-DATA), is 
  3006. treated as an extended ACCEPT or DISPLAY statement. 
  3007.  
  3008. Similarly, if CONSOLE IS DISPLAY is specified, any ACCEPT or DISPLAY statement 
  3009. that has no phrases specific to a particular format is treated as a request to 
  3010. the dynamic screen manager session services APIs. For information on theses 
  3011. APIs, see the System API Reference. 
  3012.  
  3013. ΓöîΓöÇΓöÇΓöÇ CONSOLE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3014. Γöé                                        Γöé
  3015. Γöé       (1)                                Γöé
  3016. Γöé >>ΓöÇΓöÇCONSOLEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇCRTΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                    Γöé
  3017. Γöé         ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇDISPLAYΓöÇΓöÿ                      Γöé
  3018. Γöé                                        Γöé
  3019. Γöé NOTE:                                     Γöé
  3020. Γöé (1)  IBM Extension                              Γöé
  3021. Γöé                                        Γöé
  3022. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3023.  
  3024. If no CONSOLE IS clause is specified, any ACCEPT or DISPLAY statement that has 
  3025. no phrases specific to a particular format is treated as a standard ANSI COBOL 
  3026. ACCEPT or DISPLAY statement. 
  3027.  
  3028. ---End of IBM Extension--- 
  3029.  
  3030.  
  3031. ΓòÉΓòÉΓòÉ 8.8. CRT STATUS Clause ΓòÉΓòÉΓòÉ
  3032.  
  3033. -----IBM Extension----- 
  3034.  
  3035. The CRT STATUS clause specifies a data item into which a status value is moved 
  3036. after an extended ACCEPT statement. 
  3037.  
  3038. ΓöîΓöÇΓöÇΓöÇ CRT STATUS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3039. Γöé                                        Γöé
  3040. Γöé         (1)                              Γöé
  3041. Γöé >>ΓöÇΓöÇCRT STATUSΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-2ΓöÇΓöÇ><                  Γöé
  3042. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3043. Γöé                                        Γöé
  3044. Γöé NOTE:                                     Γöé
  3045. Γöé (1)  IBM Extension                              Γöé
  3046. Γöé                                        Γöé
  3047. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3048.  
  3049. Related Information: 
  3050.  
  3051.   CRT STATUS Clause Considerations 
  3052.  
  3053.  ---End of IBM Extension--- 
  3054.  
  3055.  
  3056. ΓòÉΓòÉΓòÉ 8.8.1. CRT STATUS Clause Considerations ΓòÉΓòÉΓòÉ
  3057.  
  3058. -----IBM Extension----- 
  3059.  
  3060. If the CRT STATUS clause is specified in the SPECIAL-NAMES paragraph, every 
  3061. extended ACCEPT statement places a value into data-name-2 to indicate the 
  3062. outcome of the ACCEPT operation. Data-name-2 consists of status keys which are 
  3063. set to indicate possible conditions resulting from the completion of the 
  3064. operation. There are three CRT status keys: 
  3065.  
  3066.  CRT Status Key 1    The first two bytes of data-name-2.  It indicates the 
  3067.                      condition that caused the termination of the ACCEPT 
  3068.                      operation. 
  3069.  CRT Status Key 2    The next two bytes of data-name-2.  It gives further 
  3070.                      details of the condition that caused the termination of 
  3071.                      the ACCEPT operation. 
  3072.  CRT Status Key 3    The last two bytes of data-name-2.  It contains the code 
  3073.                      for the keyboard key that terminated the ACCEPT operation. 
  3074.  
  3075.  ---End of IBM Extension--- 
  3076.  
  3077.  
  3078. ΓòÉΓòÉΓòÉ 8.8.1.1. CRT Status Key 1 ΓòÉΓòÉΓòÉ
  3079.  
  3080. -----IBM Extension----- 
  3081.  
  3082. The first two bytes of data-name-2 form CRT Status Key 1 and should be 
  3083. described as PIC 99. It indicates the condition that caused the termination of 
  3084. the ACCEPT operation. The possible values are: 
  3085.  
  3086.  0   Indicates a terminating key such as an enter key, or an auto skip from the 
  3087.      final field 
  3088.  1   Indicates a function key 
  3089.  9   Indicates an error 
  3090.  
  3091.  If the ACCEPT statement contains an ON EXCEPTION phrase, any value in CRT 
  3092.  Status Key 1, except 0, will cause the execution of the imperative statement 
  3093.  in the ON EXCEPTION phrase. 
  3094.  
  3095.  ---End of IBM Extension--- 
  3096.  
  3097.  
  3098. ΓòÉΓòÉΓòÉ 8.8.1.2. CRT Status Key 2 ΓòÉΓòÉΓòÉ
  3099.  
  3100. -----IBM Extension----- 
  3101.  
  3102. The next two bytes of data-name-2 form CRT Status Key 2, and contain a code 
  3103. giving further details of the condition that terminated the ACCEPT operation. 
  3104. Its format and possible values depend on the value in CRT Status Key 1, as 
  3105. shown in the following table. 
  3106.  
  3107. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3108. Γöé      Valid Combinations of CRT STATUS Keys 1 and 2            Γöé
  3109. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3110. Γöé  KEY 1 Γöé           KEY 2           Γöé     MEANING    Γöé
  3111. Γöé     Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ            Γöé
  3112. Γöé     Γöé     FORMAT     Γöé     VALUE     Γöé            Γöé
  3113. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3114. Γöé   0  Γöé PIC 99        Γöé      0      Γöé The operator pressed Γöé
  3115. Γöé     Γöé            Γöé            Γöé a terminating key   Γöé
  3116. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3117. Γöé   0  Γöé PIC 99        Γöé      1      Γöé Auto skip from the  Γöé
  3118. Γöé     Γöé            Γöé            Γöé last field      Γöé
  3119. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3120. Γöé   1  Γöé PIC 99        Γöé      1-24     Γöé The function key   Γöé
  3121. Γöé     Γöé            Γöé            Γöé number        Γöé
  3122. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3123. Γöé   9  Γöé PIC 99        Γöé      0      Γöé Error condition (no  Γöé
  3124. Γöé     Γöé            Γöé            Γöé items fall within   Γöé
  3125. Γöé     Γöé            Γöé            Γöé the screen)      Γöé
  3126. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3127. Γöé NOTE:  When auto skip from the last field takes place, the value of 1 for   Γöé
  3128. Γöé CRT STATUS KEY 2 is returned to supported controllers, and the value of 0 is Γöé
  3129. Γöé returned to those controllers not supported.                 Γöé
  3130. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3131.  
  3132. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3133. Γöé      Auto Skip Value Returned by Controller Type             Γöé
  3134. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3135. Γöé TYPE OF CONTROLLER           Γöé AUTO SKIP VALUE OF 1 RETURNED     Γöé
  3136. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3137. Γöé AS/400 controllers:          Γöé                    Γöé
  3138. Γöé  Local workstation controllers    Γöé Yes                  Γöé
  3139. Γöé  Remote 5251 model 12         Γöé Not applicable            Γöé
  3140. Γöé  Remote 5294             Γöé No                  Γöé
  3141. Γöé  Remote 5394             Γöé Yes, if installed with new work-   Γöé
  3142. Γöé                    Γöé station                Γöé
  3143. Γöé  Remote 3174             Γöé controller code            Γöé
  3144. Γöé  Remote 3274             Γöé No, with *NOUNDSPCHR option      Γöé
  3145. Γöé                    Γöé No, with *NOUNDSPCHR option      Γöé
  3146. Γöé                    Γöé                    Γöé
  3147. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3148. Γöé PC attachments:            Γöé                    Γöé
  3149. Γöé  DOS and Operating System/2*     Γöé No                  Γöé
  3150. Γöé (OS/2(*)) operating          Γöé                    Γöé
  3151. Γöé  environments             Γöé                    Γöé
  3152. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3153. Γöé System to system passthru:       Γöé                    Γöé
  3154. Γöé  AS/400 system to AS/400 system    Γöé Yes                  Γöé
  3155. Γöé  System/36* to AS/400 system     Γöé No                  Γöé
  3156. Γöé  System/38 to AS/400 system      Γöé No                  Γöé
  3157. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3158.  
  3159. ---End of IBM Extension--- 
  3160.  
  3161.  
  3162. ΓòÉΓòÉΓòÉ 8.8.1.3. CRT Status Key 3 ΓòÉΓòÉΓòÉ
  3163.  
  3164. -----IBM Extension----- 
  3165.  
  3166. The last two bytes of data-name-2 form CRT Status Key 3. If CRT Status Key 1 is 
  3167. 0, CRT Status Key 3 contains the code for the keyboard key that terminated the 
  3168. ACCEPT operation. Otherwise, if CRT Status Key 1 is 9, an error is signaled by 
  3169. the operating system, and CRT Status Key 3 will be set to 99. 
  3170.  
  3171. The codes for the keys are: 
  3172.  
  3173.   00  Enter key 
  3174.   90  Roll up key 
  3175.   91  Roll down key 
  3176.   93  Help key 
  3177.   94  Clear key 
  3178.  
  3179.  Help and Clear keys accept data only on local AS/400 workstations. 
  3180.  
  3181.  ---End of IBM Extension--- 
  3182.  
  3183.  
  3184. ΓòÉΓòÉΓòÉ 8.9. CURRENCY SIGN Clause ΓòÉΓòÉΓòÉ
  3185.  
  3186. The CURRENCY SIGN clause defines the currency symbol used in the PICTURE 
  3187. clause. 
  3188.  
  3189. ΓöîΓöÇΓöÇΓöÇ CURRENCY SIGN CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3190. Γöé                                        Γöé
  3191. Γöé >>ΓöÇΓöÇCURRENCYΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-6ΓöÇΓöÇ><                 Γöé
  3192. Γöé        ΓööΓöÇSIGNΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                        Γöé
  3193. Γöé                                        Γöé
  3194. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3195.  
  3196. When the CURRENCY SIGN clause is omitted, only the dollar sign ($) may be used 
  3197. as the PICTURE symbol for the currency sign. 
  3198.  
  3199.  
  3200. ΓòÉΓòÉΓòÉ 8.9.1. literal-6 ΓòÉΓòÉΓòÉ
  3201.  
  3202. Specifies the character that will be used as the currency symbol. It must be a 
  3203. one-character, nonnumeric literal, and must not be any of the following: 
  3204.  
  3205.   Digits zero (0) through nine (9) 
  3206.   Uppercase alphabetic characters A B C D P R S V X Z 
  3207.   Lowercase alphabetic characters a through z 
  3208.   The space 
  3209.   Special characters * + - / , . ; ( ) = ". 
  3210.   A figurative constant. 
  3211.  
  3212.  
  3213. ΓòÉΓòÉΓòÉ 8.10. CURSOR Clause ΓòÉΓòÉΓòÉ
  3214.  
  3215. -----IBM Extension----- 
  3216.  
  3217. The CURSOR clause specifies the data item that will contain the cursor address 
  3218. used by the extended ACCEPT statement. 
  3219.  
  3220. ΓöîΓöÇΓöÇΓöÇ CURSOR CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3221. Γöé                                        Γöé
  3222. Γöé       (1)                                Γöé
  3223. Γöé >>ΓöÇΓöÇCURSORΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇ><                    Γöé
  3224. Γöé         ΓööΓöÇISΓöÇΓöÿ                             Γöé
  3225. Γöé                                        Γöé
  3226. Γöé NOTE:                                     Γöé
  3227. Γöé (1)  IBM Extension                              Γöé
  3228. Γöé                                        Γöé
  3229. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3230.  
  3231. Related Information: 
  3232.  
  3233.   CURSOR Clause Considerations 
  3234.  
  3235.  ---End of IBM Extension--- 
  3236.  
  3237.  
  3238. ΓòÉΓòÉΓòÉ 8.10.1. data-name-1 ΓòÉΓòÉΓòÉ
  3239.  
  3240. -----IBM Extension----- 
  3241.  
  3242. Must be a 4- or 6-byte alphanumeric field or a 4- or 6-byte unsigned zoned 
  3243. integer field. If data-name-1 is 4 characters in length, the first two 
  3244. characters are interpreted as line number, and the second two as column number. 
  3245. If data-name-1 is 6 characters in length, the first three characters are 
  3246. interpreted as line number, and the second three as column number. 
  3247.  
  3248. The clause has no effect if data-name-1 contains an invalid position value 
  3249. (such as zeros, a nonnumeric value, or a value that is beyond the range of the 
  3250. screen). 
  3251.  
  3252. Data-name-1 must be described in the WORKING-STORAGE SECTION. If data-name-1 is 
  3253. referenced from a nested program, it must be defined as global in the outermost 
  3254. program. 
  3255.  
  3256. ---End of IBM Extension--- 
  3257.  
  3258.  
  3259. ΓòÉΓòÉΓòÉ 8.10.2. CURSOR Clause Considerations ΓòÉΓòÉΓòÉ
  3260.  
  3261. -----IBM Extension----- 
  3262.  
  3263. At the start of an extended ACCEPT operation, if data-name-1 contains a value 
  3264. that is a valid character position on the screen, that position is used as the 
  3265. initial position for the cursor. A valid position is a coordinate that lies on 
  3266. the screen (that is, within the range from line 1, column 1, to line 24, column 
  3267. 80). After the ACCEPT operation, if the position in data-name-1 was valid, 
  3268. data-name-1 is updated to show the position of the cursor at the end of the 
  3269. operation. 
  3270.  
  3271. If the CURSOR IS identifier contains an invalid value (such as spaces, 
  3272. low-values, high-values or a value outside of the screen range), the cursor is 
  3273. positioned at the start of the first input field that is active on the screen. 
  3274.  
  3275. CURSOR IS has no effect on the positioning of fields on the screen. 
  3276.  
  3277. ---End of IBM Extension--- 
  3278.  
  3279.  
  3280. ΓòÉΓòÉΓòÉ 8.11. DECIMAL-POINT IS COMMA Clause ΓòÉΓòÉΓòÉ
  3281.  
  3282. The DECIMAL-POINT IS COMMA clause exchanges the functions of the period and the 
  3283. comma in PICTURE character strings and in numeric literals. 
  3284.  
  3285. ΓöîΓöÇΓöÇΓöÇ DECIMAL-POINT IS COMMA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3286. Γöé                                        Γöé
  3287. Γöé >>ΓöÇΓöÇDECIMAL-POINTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇCOMMAΓöÇΓöÇ><                     Γöé
  3288. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3289. Γöé                                        Γöé
  3290. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3291.  
  3292.  
  3293. ΓòÉΓòÉΓòÉ 8.12. LINKAGE TYPE Clause ΓòÉΓòÉΓòÉ
  3294.  
  3295. -----IBM Extension----- 
  3296.  
  3297. The LINKAGE TYPE clause specifies the type of linkage to be made on a CALL to 
  3298. or a CANCEL of the program specified by literal-7, and to the type of linkage 
  3299. to be made on the SET statement. 
  3300.  
  3301. ΓöîΓöÇΓöÇΓöÇ LINKAGE TYPE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3302. Γöé                                        Γöé
  3303. Γöé       (1)                                Γöé
  3304. Γöé >>ΓöÇΓöÇLINKAGEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇenvironment-name-3ΓöÇΓö¼ΓöÇΓöÇFORΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3305. Γöé         ΓööΓöÇTYPEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  3306. Γöé                  ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  3307. Γöé                                        Γöé
  3308. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ              Γöé
  3309. Γöé                          Γöé              Γöé
  3310. Γöé >ΓöÇΓöÇΓöÇΓöÇliteral-7ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><            Γöé
  3311. Γöé         ΓööΓöÇUSINGΓöÇΓöÇΓöñ linkage-arguments Γö£ΓöÇΓöÿ               Γöé
  3312. Γöé                                        Γöé
  3313. Γöé LINKAGE-ARGUMENTS:                              Γöé
  3314. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé
  3315. Γöé                                     Γöé   Γöé
  3316. Γöé Γö£ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇALLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDESCRIBEDΓöÇΓö┤ΓöÇΓöÇΓöñ  Γöé
  3317. Γöé    Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé  Γö£ΓöÇISΓöÇΓöÇΓöñ          Γöé
  3318. Γöé    Γöé                     Γöé Γöé  Γöé   Γöé          Γöé
  3319. Γöé    ΓööΓöÇΓöÇΓöÇliteral-8ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÿ          Γöé
  3320. Γöé           ΓööΓöÇΓö¼ΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-9ΓöÇΓöÿ                Γöé
  3321. Γöé            ΓööΓöÇTHROUGHΓöÇΓöÿ                       Γöé
  3322. Γöé                                        Γöé
  3323. Γöé NOTE:                                     Γöé
  3324. Γöé (1)  IBM Extension                              Γöé
  3325. Γöé                                        Γöé
  3326. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3327.  
  3328. Related Information: 
  3329.  
  3330.   LINKAGE TYPE Clause Considerations 
  3331.  
  3332.  ---End of IBM Extension--- 
  3333.  
  3334.  
  3335. ΓòÉΓòÉΓòÉ 8.12.1. environment-name-3 ΓòÉΓòÉΓòÉ
  3336.  
  3337. -----IBM Extension----- 
  3338.  
  3339. Environment-name-3 can be defined as: 
  3340.  
  3341.  PGM            Linkage to a program object (*PGM) is generated. 
  3342.  PRC            Linkage to an ILE procedure is generated. 
  3343.  SYS            Linkage to a system-supplied procedure is generated. 
  3344.  
  3345.  ---End of IBM Extension--- 
  3346.  
  3347.  
  3348. ΓòÉΓòÉΓòÉ 8.12.2. USING ΓòÉΓòÉΓòÉ
  3349.  
  3350. -----IBM Extension----- 
  3351.  
  3352. Specifies which arguments are to have their operational descriptors made 
  3353. available to the called procedure. 
  3354.  
  3355. The USING clause is allowed for a linkage type of procedure and applies only to 
  3356. a CALL statement. 
  3357.  
  3358.  literal-8, literal-9 
  3359.            Must be a positive non-zero integer. Specifies the ordinal position 
  3360.            of any argument described using operational descriptors. Literal-9 
  3361.            must be greater than literal-8. 
  3362.  
  3363.  DESCRIBED 
  3364.            The arguments specified by literal-8 through literal-9 are passed 
  3365.            along with corresponding operational descriptors. If ALL is 
  3366.            specified, all arguments defined for the procedure are passed along 
  3367.            with corresponding operational descriptors, where applicable. 
  3368.  
  3369.  ---End of IBM Extension--- 
  3370.  
  3371.  
  3372. ΓòÉΓòÉΓòÉ 8.12.3. LINKAGE TYPE Clause Considerations ΓòÉΓòÉΓòÉ
  3373.  
  3374. -----IBM Extension----- 
  3375.  
  3376. There are several ways to affect the type of linkage generated for a CALL, 
  3377. CANCEL, or SET. They are listed in order of precedence. The LINKAGE phrase of 
  3378. the CALL, CANCEL, or SET statement has the highest precedence. If no LINKAGE 
  3379. phrase is specified on the statement and there is no visible nested program, 
  3380. the LINKAGE TYPE clause is used if specified. The order of precedence is: 
  3381.  
  3382.   The LINKAGE phrase of the statement 
  3383.  
  3384.   CALL or CANCEL to a nested program 
  3385.  
  3386.   The LINKAGE TYPE clause of the SPECIAL-NAMES paragraph 
  3387.  
  3388.   The LINKLIT parameter of the CRTCBLMOD or CRTBNDCBL command 
  3389.  
  3390.  ---End of IBM Extension--- 
  3391.  
  3392.  
  3393. ΓòÉΓòÉΓòÉ 8.13. stitle='Part 2.  COBOL Program Structure' subject='Environment Division-Input-Output Section'.Input-Output Section ΓòÉΓòÉΓòÉ
  3394.  
  3395. The Input-Output Section defines each file, identifies its external storage 
  3396. medium, assigns the file to one or more input/output devices, and specifies 
  3397. information needed for transmission of data between the external medium and the 
  3398. COBOL program. 
  3399.  
  3400. The Input-Output section of the Environment Division contains two paragraphs: 
  3401.  
  3402.   FILE-CONTROL paragraph 
  3403.   I-O-CONTROL paragraph. 
  3404.  
  3405.  The AS/400 system has four categories of files: 
  3406.  
  3407.   Database Files 
  3408.   Device Files 
  3409.   DDM Files 
  3410.   Save Files. 
  3411.  
  3412.  
  3413. ΓòÉΓòÉΓòÉ 8.13.1. Database Files ΓòÉΓòÉΓòÉ
  3414.  
  3415. Database files allow information to be permanently stored on the system. A 
  3416. database file is subdivided into groups of records called members. There are 
  3417. two types of database files: physical files and logical files. 
  3418.  
  3419. A physical file is a file that contains data records (similar to disk files on 
  3420. other systems). 
  3421.  
  3422. A logical file is a database file through which data from one or more physical 
  3423. files can be accessed.  The format and organization of this data is different 
  3424. from that of the data in the physical file(s).  Each logical file can define a 
  3425. different access path (index) for the data in the physical file(s), and can 
  3426. exclude and reorder the fields defined in the physical file(s). 
  3427.  
  3428.  
  3429. ΓòÉΓòÉΓòÉ 8.13.2. Device Files ΓòÉΓòÉΓòÉ
  3430.  
  3431. A device file reads from or writes to a device or remote system. It controls 
  3432. the transfer of data between the physical device or remote system and the 
  3433. program. 
  3434.  
  3435.  
  3436. ΓòÉΓòÉΓòÉ 8.13.3. DDM Files ΓòÉΓòÉΓòÉ
  3437.  
  3438. Distributed Data Management (DDM) allows you to access data that reside on 
  3439. remote systems that support DDM. You can retrieve, add, update, or delete data 
  3440. records in a file that resides on another system. 
  3441.  
  3442.  
  3443. ΓòÉΓòÉΓòÉ 8.13.4. Save Files ΓòÉΓòÉΓòÉ
  3444.  
  3445. A save file is a file that is used to prepare data in a format that is correct 
  3446. for backup and recovery purposes or for transportation to another system. It 
  3447. contains the output that is produced from the Save Library (SAVLIB) or Save 
  3448. Object (SAVOBJ) CL commands. 
  3449.  
  3450.  
  3451. ΓòÉΓòÉΓòÉ 8.14. FILE-CONTROL Paragraph ΓòÉΓòÉΓòÉ
  3452.  
  3453. The FILE-CONTROL paragraph associates each file in the COBOL program with an 
  3454. external medium, and specifies file organization, access mode, and other 
  3455. information. 
  3456.  
  3457. The FILE-CONTROL paragraph begins with the word "FILE-CONTROL", followed by a 
  3458. separator period. It must contain one and only one entry for each file 
  3459. described in an FD or SD entry in the Data Division. Within each entry, the 
  3460. SELECT clause must appear first. The other clauses may appear in any order. 
  3461.  
  3462. Each data-name must appear in a Data Division data description entry.  Each 
  3463. data-name can be qualified but cannot be subscripted or indexed. 
  3464.  
  3465. The FILE-CONTROL paragraph has five formats: 
  3466.  
  3467.   Format 1 - Sequential Files 
  3468.   Format 2 - Relative Files 
  3469.   Format 3 - Indexed Files 
  3470.   Format 4 - Sort or Merge Files 
  3471.    -----IBM Extension----- 
  3472.   Format 5 - Transaction Files. 
  3473.    ---End of IBM Extension--- 
  3474.  
  3475.  
  3476. ΓòÉΓòÉΓòÉ 8.14.1. FILE-CONTROL Paragraph - Format 1 - Sequential Files ΓòÉΓòÉΓòÉ
  3477.  
  3478. ΓöîΓöÇΓöÇΓöÇ FILE-CONTROL PARAGRAPH - FORMAT 1 - SEQUENTIAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3479. Γöé                                        Γöé
  3480. Γöé >>ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇSELECTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3481. Γöé               ΓööΓöÇOPTIONALΓöÇΓöÿ                    Γöé
  3482. Γöé                                        Γöé
  3483. Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ (3)                Γöé
  3484. Γöé                      Γöé                  Γöé
  3485. Γöé >ΓöÇΓöÇASSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3486. Γöé       ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  3487. Γöé                                        Γöé
  3488. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3489. Γöé   Γöé     (2)           Γöé                     Γöé
  3490. Γöé   ΓööΓöÇRESERVEΓöÇΓöÇΓöÇΓöÇΓöÇintegerΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                     Γöé
  3491. Γöé              Γö£ΓöÇAREAΓöÇΓöÇΓöñ                      Γöé
  3492. Γöé              ΓööΓöÇAREASΓöÇΓöÿ                      Γöé
  3493. Γöé                                        Γöé
  3494. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3495. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓöÿ                  Γöé
  3496. Γöé    ΓööΓöÇORGANIZATIONΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÿ                        Γöé
  3497. Γöé            ΓööΓöÇISΓöÇΓöÿ                          Γöé
  3498. Γöé                                        Γöé
  3499. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3500. Γöé   Γöé     (2)                     Γöé           Γöé
  3501. Γöé   ΓööΓöÇPADDINGΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-6ΓöÇΓö¼ΓöÇΓöÿ           Γöé
  3502. Γöé          ΓööΓöÇCHARACTERΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÿ            Γöé
  3503. Γöé                                        Γöé
  3504. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3505. Γöé   Γöé          (2)                Γöé           Γöé
  3506. Γöé   ΓööΓöÇRECORD DELIMITERΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARD-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ           Γöé
  3507. Γöé              ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇassignment-name-2ΓöÇΓöÿ            Γöé
  3508. Γöé                                        Γöé
  3509. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3510. Γöé   ΓööΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENTIALΓöÇΓöÿ                  Γöé
  3511. Γöé        ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  3512. Γöé                                        Γöé
  3513. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><    Γöé
  3514. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSTATUSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ       Γöé
  3515. Γöé    ΓööΓöÇFILEΓöÇΓöÿ      ΓööΓöÇISΓöÇΓöÿ        Γöé       (1)Γöé        Γöé
  3516. Γöé                       ΓööΓöÇdata-name-5ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  3517. Γöé                                        Γöé
  3518. Γöé NOTES:                                    Γöé
  3519. Γöé (1)  IBM Extension                              Γöé
  3520. Γöé                                        Γöé
  3521. Γöé (2)  Syntax checked only                           Γöé
  3522. Γöé                                        Γöé
  3523. Γöé (3)  Subsequent repetitions syntax checked only                Γöé
  3524. Γöé                                        Γöé
  3525. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3526.  
  3527.  
  3528. ΓòÉΓòÉΓòÉ 8.14.2. FILE-CONTROL Paragraph - Format 2 - Relative Files ΓòÉΓòÉΓòÉ
  3529.  
  3530. ΓöîΓöÇΓöÇΓöÇ FILE-CONTROL PARAGRAPH - FORMAT 2 - RELATIVE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3531. Γöé                                        Γöé
  3532. Γöé >>ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇSELECTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3533. Γöé               ΓööΓöÇOPTIONALΓöÇΓöÿ                    Γöé
  3534. Γöé                                        Γöé
  3535. Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ (3)                Γöé
  3536. Γöé                      Γöé                  Γöé
  3537. Γöé >ΓöÇΓöÇASSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3538. Γöé       ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  3539. Γöé                                        Γöé
  3540. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3541. Γöé   Γöé     (2)           Γöé                     Γöé
  3542. Γöé   ΓööΓöÇRESERVEΓöÇΓöÇΓöÇΓöÇΓöÇintegerΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                     Γöé
  3543. Γöé              Γö£ΓöÇAREAΓöÇΓöÇΓöñ                      Γöé
  3544. Γöé              ΓööΓöÇAREASΓöÇΓöÿ                      Γöé
  3545. Γöé                                        Γöé
  3546. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇRELATIVEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3547. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                          Γöé
  3548. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3549. Γöé                                        Γöé
  3550. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3551. Γöé   ΓööΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÿ       Γöé
  3552. Γöé        ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γöé       ΓööΓöÇΓöñ rel-key Γö£ΓöÇΓöÿ Γöé        Γöé
  3553. Γöé                 ΓööΓöÇΓö¼ΓöÇRANDOMΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ rel-key Γö£Γö┤ΓöÇΓöÇΓöÇΓöÿ        Γöé
  3554. Γöé                  ΓööΓöÇDYNAMICΓöÇΓöÿ                 Γöé
  3555. Γöé                                        Γöé
  3556. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><    Γöé
  3557. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSTATUSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ       Γöé
  3558. Γöé    ΓööΓöÇFILEΓöÇΓöÿ      ΓööΓöÇISΓöÇΓöÿ        Γöé       (1)Γöé        Γöé
  3559. Γöé                       ΓööΓöÇdata-name-5ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  3560. Γöé                                        Γöé
  3561. Γöé REL-KEY:                                   Γöé
  3562. Γöé Γö£ΓöÇΓöÇRELATIVEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-4ΓöÇΓöÇΓöñ                 Γöé
  3563. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  3564. Γöé                                        Γöé
  3565. Γöé NOTES:                                    Γöé
  3566. Γöé (1)  IBM Extension                              Γöé
  3567. Γöé                                        Γöé
  3568. Γöé (2)  Syntax checked only                           Γöé
  3569. Γöé                                        Γöé
  3570. Γöé (3)  Subsequent repetitions syntax checked only                Γöé
  3571. Γöé                                        Γöé
  3572. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3573.  
  3574.  
  3575. ΓòÉΓòÉΓòÉ 8.14.3. FILE-CONTROL Paragraph - Format 3 - Indexed Files ΓòÉΓòÉΓòÉ
  3576.  
  3577. ΓöîΓöÇΓöÇΓöÇ FILE-CONTROL PARAGRAPH - FORMAT 3 - INDEXED ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3578. Γöé                                        Γöé
  3579. Γöé >>ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇSELECTΓöÇΓöÇfile-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3580. Γöé                                        Γöé
  3581. Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ (3)                Γöé
  3582. Γöé                      Γöé                  Γöé
  3583. Γöé >ΓöÇΓöÇASSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3584. Γöé       ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  3585. Γöé                                        Γöé
  3586. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3587. Γöé   Γöé     (2)           Γöé                     Γöé
  3588. Γöé   ΓööΓöÇRESERVEΓöÇΓöÇΓöÇΓöÇΓöÇintegerΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                     Γöé
  3589. Γöé              Γö£ΓöÇAREAΓöÇΓöÇΓöñ                      Γöé
  3590. Γöé              ΓööΓöÇAREASΓöÇΓöÿ                      Γöé
  3591. Γöé                                        Γöé
  3592. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇINDEXEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3593. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                          Γöé
  3594. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3595. Γöé                                        Γöé
  3596. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3597. Γöé   ΓööΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓö¼ΓöÇΓöÿ      ΓööΓöÇKEYΓöÇΓöÇΓöÿ       Γöé
  3598. Γöé        ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γö£ΓöÇRANDOMΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                 Γöé
  3599. Γöé                 ΓööΓöÇDYNAMICΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  3600. Γöé                                        Γöé
  3601. Γöé                    (1)                   Γöé
  3602. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEXTERNALLY-DESCRIBED-KEYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  3603. Γöé   ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇdata-name-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé            (1)Γöé    Γöé
  3604. Γöé                       ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDUPLICATESΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé
  3605. Γöé                        ΓööΓöÇWITHΓöÇΓöÿ            Γöé
  3606. Γöé                                        Γöé
  3607. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><    Γöé
  3608. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSTATUSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ       Γöé
  3609. Γöé    ΓööΓöÇFILEΓöÇΓöÿ      ΓööΓöÇISΓöÇΓöÿ        Γöé       (1)Γöé        Γöé
  3610. Γöé                       ΓööΓöÇdata-name-5ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  3611. Γöé                                        Γöé
  3612. Γöé NOTES:                                    Γöé
  3613. Γöé (1)  IBM Extension                              Γöé
  3614. Γöé                                        Γöé
  3615. Γöé (2)  Syntax checked only                           Γöé
  3616. Γöé                                        Γöé
  3617. Γöé (3)  Subsequent repetitions syntax checked only                Γöé
  3618. Γöé                                        Γöé
  3619. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3620.  
  3621.  
  3622. ΓòÉΓòÉΓòÉ 8.14.4. FILE-CONTROL Paragraph - Format 4 - Sort or Merge Files ΓòÉΓòÉΓòÉ
  3623.  
  3624. ΓöîΓöÇΓöÇΓöÇ FILE-CONTROL PARAGRAPH - FORMAT 4 - SORT OR MERGE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3625. Γöé                                        Γöé
  3626. Γöé                        (1)               Γöé
  3627. Γöé >>ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇSELECTΓöÇΓöÇfile-nameΓöÇΓöÇASSIGNΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3628. Γöé                          ΓööΓöÇTOΓöÇΓöÿ            Γöé
  3629. Γöé                                        Γöé
  3630. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                         Γöé
  3631. Γöé               Γöé                         Γöé
  3632. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ.ΓöÇΓöÇ><                      Γöé
  3633. Γöé    ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  3634. Γöé                                        Γöé
  3635. Γöé NOTE:                                     Γöé
  3636. Γöé (1)  Syntax checked only                           Γöé
  3637. Γöé                                        Γöé
  3638. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3639.  
  3640.  
  3641. ΓòÉΓòÉΓòÉ 8.14.5. FILE-CONTROL Paragraph - Format 5 - Transaction Files ΓòÉΓòÉΓòÉ
  3642.  
  3643. -----IBM Extension----- 
  3644.  
  3645. ΓöîΓöÇΓöÇΓöÇ FILE-CONTROL PARAGRAPH - FORMAT 5 - TRANSACTION ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3646. Γöé                                        Γöé
  3647. Γöé >>ΓöÇΓöÇFILE-CONTROL.ΓöÇΓöÇSELECTΓöÇΓöÇfile-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3648. Γöé                                        Γöé
  3649. Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ (2)                Γöé
  3650. Γöé                      Γöé                  Γöé
  3651. Γöé >ΓöÇΓöÇASSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3652. Γöé       ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  3653. Γöé                                        Γöé
  3654. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTRANSACTIONΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3655. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                          Γöé
  3656. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3657. Γöé                                        Γöé
  3658. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3659. Γöé   ΓööΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÿ       Γöé
  3660. Γöé        ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γöé       ΓööΓöÇΓöñ rel-key Γö£ΓöÇΓöÿ Γöé        Γöé
  3661. Γöé                 ΓööΓöÇDYNAMICΓöÇΓöÇΓöñ relΓö┤key Γö£ΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÿ        Γöé
  3662. Γöé                                        Γöé
  3663. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  3664. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSTATUSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ         Γöé
  3665. Γöé    ΓööΓöÇFILEΓöÇΓöÿ      ΓööΓöÇISΓöÇΓöÿ        ΓööΓöÇdata-name-5ΓöÇΓöÿ          Γöé
  3666. Γöé                                        Γöé
  3667. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                Γöé
  3668. Γöé   ΓööΓöÇCONTROL-AREAΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-7ΓöÇΓöÿ                   Γöé
  3669. Γöé           ΓööΓöÇISΓöÇΓöÿ                           Γöé
  3670. Γöé                                        Γöé
  3671. Γöé REL-KEY:                                   Γöé
  3672. Γöé Γö£ΓöÇΓöÇRELATIVEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-3ΓöÇΓöÇΓöñ                 Γöé
  3673. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  3674. Γöé                                        Γöé
  3675. Γöé NOTES:                                    Γöé
  3676. Γöé (1)  Syntax checked only                           Γöé
  3677. Γöé                                        Γöé
  3678. Γöé (2)  Subsequent repetitions syntax checked only                Γöé
  3679. Γöé                                        Γöé
  3680. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3681.  
  3682. ---End of IBM Extension--- 
  3683.  
  3684.  
  3685. ΓòÉΓòÉΓòÉ 8.15. SELECT Clause ΓòÉΓòÉΓòÉ
  3686.  
  3687. The SELECT clause chooses a file. 
  3688.  
  3689. ΓöîΓöÇΓöÇΓöÇ SELECT CLAUSE - FORMAT - SEQUENTIAL & RELATIVE FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3690. Γöé                                        Γöé
  3691. Γöé >>ΓöÇΓöÇSELECTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-nameΓöÇΓöÇ><                    Γöé
  3692. Γöé       ΓööΓöÇOPTIONALΓöÇΓöÿ                           Γöé
  3693. Γöé                                        Γöé
  3694. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3695.  
  3696. ΓöîΓöÇΓöÇΓöÇ SELECT CLAUSE - INDEXED, SORT/MERGE, & TRANSACTION FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3697. Γöé                                        Γöé
  3698. Γöé >>ΓöÇΓöÇSELECTΓöÇΓöÇfile-nameΓöÇΓöÇ><                           Γöé
  3699. Γöé                                        Γöé
  3700. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3701.  
  3702.  
  3703. ΓòÉΓòÉΓòÉ 8.16. ASSIGN Clause ΓòÉΓòÉΓòÉ
  3704.  
  3705. The ASSIGN clause associates a file with an external medium. 
  3706.  
  3707. ΓöîΓöÇΓöÇΓöÇ ASSIGN CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3708. Γöé                                        Γöé
  3709. Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ (1)                Γöé
  3710. Γöé                      Γöé                  Γöé
  3711. Γöé >>ΓöÇΓöÇASSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ><              Γöé
  3712. Γöé       ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé
  3713. Γöé                                        Γöé
  3714. Γöé NOTE:                                     Γöé
  3715. Γöé (1)  Subsequent repetitions syntax checked only                Γöé
  3716. Γöé                                        Γöé
  3717. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3718.  
  3719. For sort or merge files (associated with an SD entry), no external medium is 
  3720. used.  The related ASSIGN clause is syntax checked only. It is not actually 
  3721. used for I-O. 
  3722.  
  3723.  
  3724. ΓòÉΓòÉΓòÉ 8.16.1. assignment-name-1, literal-1 ΓòÉΓòÉΓòÉ
  3725.  
  3726. The assignment-name or literal makes the association between the file and the 
  3727. external medium. 
  3728.  
  3729. Any assignment-name or literal after the first is syntax checked, but has no 
  3730. effect on the execution of the program 
  3731.  
  3732. Assignment-name-1 or literal-1 consists of 3 parts: 
  3733.  
  3734.   Device 
  3735.   File name 
  3736.   Attribute 
  3737.  
  3738.  It has the following general structure: 
  3739.  
  3740.   ΓöîΓöÇΓöÇΓöÇ FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3741.   Γöé                                        Γöé
  3742.   Γöé >ΓöÇΓöÇdeviceΓöÇΓöÇ-file-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ>                   Γöé
  3743.   Γöé             ΓööΓöÇ-attributeΓöÇΓöÿ                     Γöé
  3744.   Γöé                                        Γöé
  3745.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3746.  
  3747.  
  3748. ΓòÉΓòÉΓòÉ 8.16.2. Device ΓòÉΓòÉΓòÉ
  3749.  
  3750. This part specifies the type of device that the file will use. The compiler can 
  3751. then check whether the file is described and used in a consistent manner. 
  3752.  
  3753. Note: 
  3754.  
  3755.   1. The compiler does not check whether the device associated with the 
  3756.      external file is of the type specified in the device portion of 
  3757.      assignment-name-1 or literal-1. 
  3758.  
  3759.   2. The compiler provides no diagnostics unless the I-O verbs were used in an 
  3760.      inconsistent manner. 
  3761.  
  3762.   3. When the program runs, the operating system could either issue an escape 
  3763.      message or ignore the function if it was not applicable to the device. 
  3764.  
  3765.  -----IBM Extension----- 
  3766.  
  3767.  The device that the file will use can be changed at run time with the OVRxxxF 
  3768.  CL command. To ensure consistent results, the device type associated with the 
  3769.  file should correspond to that given in the assignment-name. 
  3770.  
  3771.  ---End of IBM Extension--- 
  3772.  
  3773.  Device can be any of the following: 
  3774.  
  3775.  Device           Associated file 
  3776.  PRINTER          PRINTER should be specified for program described printer 
  3777.                   files only. 
  3778.  FORMATFILE       FORMATFILE should be specified for externally described 
  3779.                   printer files only. See the OPEN Statement for information 
  3780.                   about Dynamic Files. 
  3781.  TAPEFILE         Tape file 
  3782.  DISKETTE         Diskette file 
  3783.  DISK             Any physical database file or single format logical database 
  3784.                   file. When DISK is the device, database extensions cannot be 
  3785.                   used. 
  3786.  DATABASE         Any database file (or DDM file). When DATABASE is the device, 
  3787.                   externally described data and database extensions can be 
  3788.                   used. However these file types are not supported for 
  3789.                   dynamically created files. See the OPEN Statement for 
  3790.                   information about Dynamic Files. See the OPEN Statement for 
  3791.                   information about Dynamic Files. 
  3792.  WORKSTATION      Display file or ICF file. See the OPEN Statement for 
  3793.                   information about Dynamic Files. 
  3794.  
  3795.  
  3796. ΓòÉΓòÉΓòÉ 8.16.3. File Name ΓòÉΓòÉΓòÉ
  3797.  
  3798. This part of assignment-name must be a 1 through 10-character system name of 
  3799. the actual external file- physical or logical database, or device. This 
  3800. external file has to be created before compiling the program only when it is 
  3801. used by a COPY statement, DDS (data description specifications) or DD format, 
  3802. within this program. 
  3803.  
  3804. A quoted file name can be specified within literal-1. For example, if an AS/400 
  3805. system file has a quoted name of "sysfile", the entry for literal-1 is coded as 
  3806. follows: 
  3807.  
  3808. "device-""sysfile""-SI"
  3809.  
  3810. For database files, the member name cannot be specified in the program.  If a 
  3811. member other than the first member is to be specified, the Override with 
  3812. Database File (OVRDBF) CL command must be used at execution time to specify the 
  3813. member name. 
  3814.  
  3815. This file name is the name of the AS/400 object that is displayed by the 
  3816. Display Program References (DSPPGMREF) command. Since no external medium is 
  3817. used for an SD file, the DSPPGMREF command does not list any files defined for 
  3818. an SD file. 
  3819.  
  3820. The file name can be changed at execution time with the TOFILE parameter of the 
  3821. OVRxxxF CL command. To ensure consistent results, the device type associated 
  3822. with the TOFILE parameter should be the same as that specified for 
  3823. assignment-name-1 or literal-1. 
  3824.  
  3825.  
  3826. ΓòÉΓòÉΓòÉ 8.16.4. Attribute ΓòÉΓòÉΓòÉ
  3827.  
  3828. This part of assignment-name-1 or literal-1 can be SI. SI indicates that a 
  3829. separate indicator area has been specified in the DDS for a FORMATFILE or 
  3830. WORKSTATION file. 
  3831.  
  3832. The valid entries for each field of assignment-name-1 or literal-1 vary with 
  3833. the device. The valid combinations of fields are shown in Valid Entries for 
  3834. Assignment-Name-1 and Literal-1. 
  3835.  
  3836. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3837. Γöé            Γöé FILE    Γöé DEFAULT  Γöé   Γöé
  3838. Γöé DEVICE        Γöé NAME    Γöé FILE NAME Γöé SI  Γöé
  3839. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3840. Γöé PRINTER        Γöé O     Γöé QPRINT   Γöé N  Γöé
  3841. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3842. Γöé FORMATFILE      Γöé R     Γöé      Γöé O  Γöé
  3843. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3844. Γöé TAPEFILE       Γöé O     Γöé QTAPE   Γöé N  Γöé
  3845. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3846. Γöé DISKETTE       Γöé O     Γöé QDKT    Γöé N  Γöé
  3847. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3848. Γöé DISK         Γöé R     Γöé      Γöé N  Γöé
  3849. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3850. Γöé DATABASE       Γöé R     Γöé      Γöé N  Γöé
  3851. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3852. Γöé WORKSTATION      Γöé R     Γöé      Γöé O  Γöé
  3853. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3854.  
  3855.    R=Required
  3856.    O=Optional
  3857.    N=Not Allowed
  3858.  
  3859. Valid Entries for Assignment-Name-1 and Literal-1 
  3860.  
  3861.  
  3862. ΓòÉΓòÉΓòÉ 8.17. RESERVE Clause ΓòÉΓòÉΓòÉ
  3863.  
  3864. The RESERVE clause reserves input-output areas. It is syntax checked, but 
  3865. treated as documentation. 
  3866.  
  3867. ΓöîΓöÇΓöÇΓöÇ RESERVE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3868. Γöé                                        Γöé
  3869. Γöé       (1)                                Γöé
  3870. Γöé >>ΓöÇΓöÇRESERVEΓöÇΓöÇΓöÇΓöÇΓöÇintegerΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                    Γöé
  3871. Γöé              Γö£ΓöÇAREAΓöÇΓöÇΓöñ                      Γöé
  3872. Γöé              ΓööΓöÇAREASΓöÇΓöÿ                      Γöé
  3873. Γöé                                        Γöé
  3874. Γöé NOTE:                                     Γöé
  3875. Γöé (1)  Syntax checked only                           Γöé
  3876. Γöé                                        Γöé
  3877. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3878.  
  3879.  
  3880. ΓòÉΓòÉΓòÉ 8.18. ORGANIZATION Clause ΓòÉΓòÉΓòÉ
  3881.  
  3882. The ORGANIZATION clause specifies the logical structure of the file. The file 
  3883. organization is established at the time the file is created and cannot 
  3884. subsequently be changed. 
  3885.  
  3886. COBOL allows for four distinct kinds of file organization: 
  3887.  
  3888.   ORGANIZATION IS SEQUENTIAL (Format 1) 
  3889.   ORGANIZATION IS RELATIVE (Format 2) 
  3890.   ORGANIZATION IS INDEXED (Format 3) 
  3891.    -----IBM Extension----- 
  3892.   ORGANIZATION IS TRANSACTION (Format 5). 
  3893.    ---End of IBM Extension--- 
  3894.  
  3895.  -----IBM Extension----- 
  3896.  
  3897.  For database files, the ORGANIZATION clause indicates the current program 
  3898.  usage of the file in the program. Therefore, the same database file can use 
  3899.  SEQUENTIAL, RELATIVE, or INDEXED (assuming a keyed sequence access path 
  3900.  exists) in the ORGANIZATION clause.  This is true regardless of what is 
  3901.  specified in other programs that use this file. 
  3902.  
  3903.  A keyed sequence access path is always created when a key is specified in the 
  3904.  DDS that was used as input to the Create Physical File (CRTPF) or the Create 
  3905.  Logical File (CRTLF) CL command. 
  3906.  
  3907.  ---End of IBM Extension--- 
  3908.  
  3909.  
  3910. ΓòÉΓòÉΓòÉ 8.18.1. ORGANIZATION IS SEQUENTIAL (Format 1) ΓòÉΓòÉΓòÉ
  3911.  
  3912. ΓöîΓöÇΓöÇΓöÇ ORGANIZATION CLAUSE - SEQUENTIAL FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3913. Γöé                                        Γöé
  3914. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENTIALΓöÇΓöÇ><                 Γöé
  3915. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                         Γöé
  3916. Γöé           ΓööΓöÇISΓöÇΓöÿ                          Γöé
  3917. Γöé                                        Γöé
  3918. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3919.  
  3920. A predecessor-successor relationship of the records in the files is established 
  3921. by the order in which records are placed in the file when it is created or 
  3922. extended (arrival sequence access path). 
  3923.  
  3924.  
  3925. ΓòÉΓòÉΓòÉ 8.18.2. ORGANIZATION IS RELATIVE (Format 2) ΓòÉΓòÉΓòÉ
  3926.  
  3927. ΓöîΓöÇΓöÇΓöÇ ORGANIZATION CLAUSE - RELATIVE FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3928. Γöé                                        Γöé
  3929. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇRELATIVEΓöÇΓöÇ><                  Γöé
  3930. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                         Γöé
  3931. Γöé           ΓööΓöÇISΓöÇΓöÿ                          Γöé
  3932. Γöé                                        Γöé
  3933. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3934.  
  3935. The position of each record in the file is determined by its relative record 
  3936. number within the arrival sequence access path. 
  3937.  
  3938.  
  3939. ΓòÉΓòÉΓòÉ 8.18.3. ORGANIZATION IS INDEXED (Format 3) ΓòÉΓòÉΓòÉ
  3940.  
  3941. ΓöîΓöÇΓöÇΓöÇ ORGANIZATION CLAUSE - INDEXED FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3942. Γöé                                        Γöé
  3943. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇINDEXEDΓöÇΓöÇ><                   Γöé
  3944. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                         Γöé
  3945. Γöé           ΓööΓöÇISΓöÇΓöÿ                          Γöé
  3946. Γöé                                        Γöé
  3947. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3948.  
  3949. The position of each logical record in the file is determined by the key 
  3950. sequence access path created with the file and maintained by the system.  The 
  3951. access path is based on an embedded key within the file's records. 
  3952.  
  3953.  
  3954. ΓòÉΓòÉΓòÉ 8.18.4. ORGANIZATION IS TRANSACTION (Format 5) ΓòÉΓòÉΓòÉ
  3955.  
  3956. -----IBM Extension----- 
  3957.  
  3958. ΓöîΓöÇΓöÇΓöÇ ORGANIZATION CLAUSE - TRANSACTION FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3959. Γöé                                        Γöé
  3960. Γöé                      (1)                 Γöé
  3961. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTRANSACTIONΓöÇΓöÇΓöÇΓöÇΓöÇ><               Γöé
  3962. Γöé   ΓööΓöÇORGANIZATIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                         Γöé
  3963. Γöé           ΓööΓöÇISΓöÇΓöÿ                          Γöé
  3964. Γöé                                        Γöé
  3965. Γöé NOTE:                                     Γöé
  3966. Γöé (1)  IBM Extension                              Γöé
  3967. Γöé                                        Γöé
  3968. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3969.  
  3970. Signifies interaction between a COBOL program and either a workstation user or 
  3971. another system. 
  3972.  
  3973. ---End of IBM Extension--- 
  3974.  
  3975.  
  3976. ΓòÉΓòÉΓòÉ 8.19. PADDING CHARACTER Clause ΓòÉΓòÉΓòÉ
  3977.  
  3978. The PADDING CHARACTER clause specifies the character which is to be used for 
  3979. block padding on sequential files. 
  3980.  
  3981. The PADDING CHARACTER clause is syntax checked, but no compile-time or run-time 
  3982. verification checking is done, and the clause has no effect on the execution of 
  3983. the program. 
  3984.  
  3985. ΓöîΓöÇΓöÇΓöÇ PADDING CHARACTER CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3986. Γöé                                        Γöé
  3987. Γöé       (1)                                Γöé
  3988. Γöé >>ΓöÇΓöÇPADDINGΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-6ΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  3989. Γöé         ΓööΓöÇCHARACTERΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÿ            Γöé
  3990. Γöé                                        Γöé
  3991. Γöé NOTE:                                     Γöé
  3992. Γöé (1)  Syntax checked only                           Γöé
  3993. Γöé                                        Γöé
  3994. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3995.  
  3996. For EXTERNAL files, if data-name-6 is specified, it must reference an EXTERNAL 
  3997. data item. 
  3998.  
  3999.  
  4000. ΓòÉΓòÉΓòÉ 8.20. RECORD DELIMITER Clause ΓòÉΓòÉΓòÉ
  4001.  
  4002. The RECORD DELIMITER clause indicates the method of determining the length of a 
  4003. variable-length record on an external medium. It can be specified only for 
  4004. variable-length records. 
  4005.  
  4006. The RECORD DELIMITER clause is syntax checked, but no compile-time or run-time 
  4007. verification checking is done, and the clause is treated as documentation 
  4008.  
  4009. ΓöîΓöÇΓöÇΓöÇ RECORD DELIMITER CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4010. Γöé                                        Γöé
  4011. Γöé            (1)                           Γöé
  4012. Γöé >>ΓöÇΓöÇRECORDΓöÇΓöÇDELIMITERΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARD-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  4013. Γöé              ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇassignment-name-2ΓöÇΓöÿ            Γöé
  4014. Γöé                                        Γöé
  4015. Γöé NOTE:                                     Γöé
  4016. Γöé (1)  Syntax-checked only                           Γöé
  4017. Γöé                                        Γöé
  4018. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4019.  
  4020.  
  4021. ΓòÉΓòÉΓòÉ 8.21. ACCESS MODE Clause ΓòÉΓòÉΓòÉ
  4022.  
  4023. The ACCESS MODE clause defines the manner in which the records of the file are 
  4024. made available for processing. If the ACCESS MODE clause is not specified, 
  4025. SEQUENTIAL access is assumed. 
  4026.  
  4027. The ACCESS MODE clause has four formats: 
  4028.  
  4029.   Format 1 - Sequential Files 
  4030.   Format 2 - Relative Files 
  4031.   Format 3 - Indexed Files 
  4032.    -----IBM Extension----- 
  4033.   Format 5 - Transaction Files 
  4034.    ---End of IBM Extension--- 
  4035.  
  4036.  
  4037. ΓòÉΓòÉΓòÉ 8.21.1. ACCESS MODE Clause - Format 1 - Sequential Files ΓòÉΓòÉΓòÉ
  4038.  
  4039. ΓöîΓöÇΓöÇΓöÇ ACCESS MODE CLAUSE - FORMAT 1 - SEQUENTIAL FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4040. Γöé                                        Γöé
  4041. Γöé >>ΓöÇΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENTIALΓöÇΓöÇ><                 Γöé
  4042. Γöé       ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  4043. Γöé                                        Γöé
  4044. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4045.  
  4046.  
  4047. ΓòÉΓòÉΓòÉ 8.21.2. ACCESS MODE Clause - Format 2 - Relative Files ΓòÉΓòÉΓòÉ
  4048.  
  4049. ΓöîΓöÇΓöÇΓöÇ ACCESS MODE CLAUSE - FORMAT 3 - RELATIVE FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4050. Γöé                                        Γöé
  4051. Γöé >>ΓöÇΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇ><       Γöé
  4052. Γöé       ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γöé       ΓööΓöÇΓöñ Rel Key Γö£ΓöÇΓöÿ Γöé         Γöé
  4053. Γöé                Γö£ΓöÇRANDOMΓöÇΓöÇΓöñ Rel Key Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöñ         Γöé
  4054. Γöé                ΓööΓöÇDYNAMICΓöÇΓö┤Γöñ Rel Key Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  4055. Γöé                                        Γöé
  4056. Γöé REL KEY:                                   Γöé
  4057. Γöé Γö£ΓöÇΓöÇRELATIVEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-4ΓöÇΓöÇΓöñ                 Γöé
  4058. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  4059. Γöé                                        Γöé
  4060. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4061.  
  4062.  
  4063. ΓòÉΓòÉΓòÉ 8.21.3. ACCESS MODE Clause - Format 3 - Indexed Files ΓòÉΓòÉΓòÉ
  4064.  
  4065. ΓöîΓöÇΓöÇΓöÇ ACCESS MODE CLAUSE - FORMAT 2 - INDEXED FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4066. Γöé                                        Γöé
  4067. Γöé >>ΓöÇΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓö¼ΓöÇΓöÇ><               Γöé
  4068. Γöé       ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γö£ΓöÇRANDOMΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                 Γöé
  4069. Γöé                ΓööΓöÇDYNAMICΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  4070. Γöé                                        Γöé
  4071. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4072.  
  4073.  
  4074. ΓòÉΓòÉΓòÉ 8.21.4. ACCESS MODE Clause - Format 5 - Transaction Files ΓòÉΓòÉΓòÉ
  4075.  
  4076. -----IBM Extension----- 
  4077.  
  4078. ΓöîΓöÇΓöÇΓöÇ ACCESS MODE CLAUSE - FORMAT 5 - TRANSACTION FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4079. Γöé                                        Γöé
  4080. Γöé >>ΓöÇΓöÇACCESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSEQUENTIALΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  4081. Γöé       ΓööΓöÇMODEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇDYNAMICΓöÇΓöÇΓöñ Rel Key Γö£ΓöÇΓöÿ            Γöé
  4082. Γöé                                        Γöé
  4083. Γöé REL KEY:                                   Γöé
  4084. Γöé Γö£ΓöÇΓöÇRELATIVEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-4ΓöÇΓöÇΓöñ                 Γöé
  4085. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  4086. Γöé                                        Γöé
  4087. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4088.  
  4089. ---End of IBM Extension--- 
  4090.  
  4091.  
  4092. ΓòÉΓòÉΓòÉ 8.22. RECORD KEY Clause ΓòÉΓòÉΓòÉ
  4093.  
  4094. The RECORD KEY clause must be specified for an indexed file. The RECORD KEY 
  4095. clause specifies the data item within the record that is the record key for an 
  4096. indexed file. 
  4097.  
  4098. ΓöîΓöÇΓöÇΓöÇ RECORD KEY CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4099. Γöé                                        Γöé
  4100. Γöé                             (1)          Γöé
  4101. Γöé >>ΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEXTERNALLY-DESCRIBED-KEYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4102. Γöé       ΓööΓöÇKEYΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇdata-name-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  4103. Γöé                                        Γöé
  4104. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                      Γöé
  4105. Γöé   Γöé           (1) Γöé                        Γöé
  4106. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇDUPLICATESΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  4107. Γöé    ΓööΓöÇWITHΓöÇΓöÿ                                Γöé
  4108. Γöé                                        Γöé
  4109. Γöé NOTE:                                     Γöé
  4110. Γöé (1)  IBM Extension                              Γöé
  4111. Γöé                                        Γöé
  4112. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4113.  
  4114.  
  4115. ΓòÉΓòÉΓòÉ 8.22.1. DUPLICATES ΓòÉΓòÉΓòÉ
  4116.  
  4117. -----IBM Extension----- 
  4118.  
  4119. The DUPLICATES phrase can only be specified for files assigned duplicate record 
  4120. keys. This allows the file to have keys with the same values. If the file has 
  4121. multiple formats, two keys in different formats have the same values only when 
  4122. the key lengths and the contents of the keys are the same. 
  4123.  
  4124. For example, given a file with the following two formats: 
  4125.  
  4126.  Format F1 with keys A, B, C 
  4127.  Format F2 with keys A, B, D. 
  4128.  
  4129.  If fields C and D are the same length, have the same data type, and have the 
  4130.  same values, the file would contain two records with a duplicate key.  The 
  4131.  term duplicate key applies only to a complete record key for the format.  A 
  4132.  record key for the format consists of the key field(s) defined for a DDS 
  4133.  format for records residing on the database.  The term does not apply to the 
  4134.  common key for the file (only fields A and B in the above example). 
  4135.  
  4136.  Users can indicate DUPLICATES on the RECORD KEY clause.  A file status of 95 
  4137.  is returned after a successful open when: 
  4138.  
  4139.   The DUPLICATES phrase is specified in the COBOL program and the file was 
  4140.    created with UNIQUE specified in DDS. 
  4141.  
  4142.   The DUPLICATES phrase is not specified in the COBOL program and the file was 
  4143.    created allowing nonunique keys. 
  4144.  
  4145.  Processing files when either of these conditions exist can cause unpredictable 
  4146.  results. 
  4147.  
  4148.  In a file that allows duplicates and is processed randomly or dynamically, the 
  4149.  duplicate record that is updated or deleted must be the proper one. To ensure 
  4150.  this, the last input/output statement processed prior to the REWRITE or DELETE 
  4151.  operation must be a successfully processed READ statement without the NO LOCK 
  4152.  phrase. 
  4153.  
  4154.  If the DDS file level keyword LIFO (last-in-first-out) is specified, the 
  4155.  duplicate records within a physical file are retrieved in a last-in-first-out 
  4156.  order. 
  4157.  
  4158.  ---End of IBM Extension--- 
  4159.  
  4160.  
  4161. ΓòÉΓòÉΓòÉ 8.22.2. data-name-2 ΓòÉΓòÉΓòÉ
  4162.  
  4163. Data-name-2 is the RECORD KEY data item. It must be described as a fixed-length 
  4164. alphanumeric item within a record description entry associated with the file. 
  4165. It must not reference a group item that contains a variable occurrence data 
  4166. item. Data-name-2 may be qualified, but it must not be subscripted. 
  4167.  
  4168. The length of the record key is restricted; the key length, in bytes, cannot 
  4169. exceed 2 000. 
  4170.  
  4171. If the indexed file contains variable-length records, data-name-2 must be 
  4172. contained within the first "x" positions of the record, where "x" equals the 
  4173. minimum record size specified for the file. 
  4174.  
  4175. For EXTERNAL files, all file description entries in the run unit that are 
  4176. associated with the EXTERNAL file must specify the same data description entry 
  4177. for data-name-2 with the same relative location within the associated record; 
  4178. otherwise the results are undefined. 
  4179.  
  4180. -----IBM Extension----- 
  4181.  
  4182. The RECORD KEY data item, data-name-2, can be a numeric item when the file is 
  4183. assigned to a DATABASE device type. The numeric item can have a usage of 
  4184. DISPLAY, COMP (COMP-3), COMP-4, PACKED-DECIMAL, or BINARY. 
  4185.  
  4186. ---End of IBM Extension--- 
  4187.  
  4188. The keys are ordered within the collating sequence used when the file was 
  4189. created. 
  4190.  
  4191. The data description of data-name-2 and its relative location within the record 
  4192. must be the same as the ones used when the file was defined in DDS. 
  4193.  
  4194. The record description that defines data-name-2 will always be used to access 
  4195. the record key field for the I-O operation. 
  4196.  
  4197.  
  4198. ΓòÉΓòÉΓòÉ 8.22.3. EXTERNALLY-DESCRIBED-KEY ΓòÉΓòÉΓòÉ
  4199.  
  4200. -----IBM Extension----- 
  4201.  
  4202. The reserved word EXTERNALLY-DESCRIBED-KEY can specify that the keys for this 
  4203. file are those that are externally described in DDS.  The keys are determined 
  4204. by the record formats that are copied by the COPY statement, DDS, DD, DDSR, or 
  4205. DDR format, under the FD for this file. 
  4206.  
  4207. The key can start at different offsets within the buffer for each format.  In 
  4208. this situation, care must be used when changing from one record format to 
  4209. another, using a random READ or START statement. The key must be placed in the 
  4210. record format at the correct offset in the format that will be used in the 
  4211. random access of the file.  Unpredictable results can occur if the key for the 
  4212. desired record is based on data that was part of the last record read.  This is 
  4213. because the movement of the data to the key field can involve overlapping 
  4214. fields. 
  4215.  
  4216. The key within a format can be made up of multiple, noncontiguous (not 
  4217. adjacent) fields. Only those record formats copied in within the FD for the 
  4218. file should be referenced by the FORMAT phrase.  If a format is referenced that 
  4219. is defined within the file, but that format has not been copied into the 
  4220. program, the key is built using the key fields defined for the first record 
  4221. format that was copied. This can cause unpredictable results. 
  4222.  
  4223. If a portion of the key is declared in the logical file only as an element of a 
  4224. concatenated item (rather than an independently-declared item), the result of 
  4225. the CONCAT operation must not be a variable-length item. 
  4226.  
  4227. ---End of IBM Extension--- 
  4228.  
  4229.  
  4230. ΓòÉΓòÉΓòÉ 8.23. RELATIVE KEY Clause ΓòÉΓòÉΓòÉ
  4231.  
  4232. The RELATIVE KEY clause identifies a data-name that specifies the relative 
  4233. record number for a specific logical record within a relative file. 
  4234.  
  4235. ΓöîΓöÇΓöÇΓöÇ RELATIVE KEY CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4236. Γöé                                        Γöé
  4237. Γöé >>ΓöÇΓöÇRELATIVEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-4ΓöÇΓöÇ><                Γöé
  4238. Γöé        ΓööΓöÇKEYΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                         Γöé
  4239. Γöé                                        Γöé
  4240. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4241.  
  4242.  
  4243. ΓòÉΓòÉΓòÉ 8.23.1. data-name-4 ΓòÉΓòÉΓòÉ
  4244.  
  4245. Must be defined as an unsigned integer data item whose description does not 
  4246. contain the PICTURE symbol P. Data-name-4 must not be defined in a record 
  4247. description entry associated with this relative file. That is, the RELATIVE KEY 
  4248. is not part of the record. Data-name-4 can be qualified. 
  4249.  
  4250. For reads under sequential access, the RELATIVE KEY data item is updated with 
  4251. the relative record number of the record being made available. 
  4252.  
  4253. Data-name-4 is required for ACCESS IS SEQUENTIAL only when the START statement 
  4254. is to be used. It is always required for ACCESS IS RANDOM and ACCESS IS 
  4255. DYNAMIC. When the START statement is issued, the system uses the contents of 
  4256. the RELATIVE KEY data item to determine the record at which sequential 
  4257. processing is to begin. 
  4258.  
  4259. If a value is placed in data-name-4, and a START statement is not issued, the 
  4260. value is ignored and processing begins with the first record in the file. 
  4261.  
  4262. -----IBM Extension----- 
  4263.  
  4264. When the file is opened, the POSITION parameter on the OVRDBF CL command can be 
  4265. used to set the file position indicator. This causes processing to begin with a 
  4266. record other than the first record. 
  4267.  
  4268. ---End of IBM Extension--- 
  4269.  
  4270. If a relative file is to be referenced by a START statement, you must specify 
  4271. the RELATIVE KEY clause for that file. 
  4272.  
  4273. The ACCESS MODE IS RANDOM clause must not be specified for file-names specified 
  4274. in the USING or GIVING phrase of a SORT or MERGE statement. 
  4275.  
  4276. For EXTERNAL files, data-name-4 must reference an external data item, and the 
  4277. RELATIVE KEY phrase in each associated file control entry must reference that 
  4278. same external data item. (Relative keys are used with subfiles.) 
  4279.  
  4280.  
  4281. ΓòÉΓòÉΓòÉ 8.24. FILE STATUS Clause ΓòÉΓòÉΓòÉ
  4282.  
  4283. The FILE STATUS clause monitors the execution of each input-output request for 
  4284. the file. 
  4285.  
  4286. ΓöîΓöÇΓöÇΓöÇ FILE STATUS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4287. Γöé                                        Γöé
  4288. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSTATUSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><       Γöé
  4289. Γöé   ΓööΓöÇFILEΓöÇΓöÿ      ΓööΓöÇISΓöÇΓöÿ        Γöé       (1)Γöé         Γöé
  4290. Γöé                       ΓööΓöÇdata-name-5ΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  4291. Γöé                                        Γöé
  4292. Γöé NOTE:                                     Γöé
  4293. Γöé (1)  IBM Extension                              Γöé
  4294. Γöé                                        Γöé
  4295. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4296.  
  4297. When the FILE STATUS clause is specified, the system moves a value into the 
  4298. status key data item after each input-output request that explicitly or 
  4299. implicitly refers to this file. The value indicates the status of execution of 
  4300. the statement. (See the "Status Key" description under Common Processing 
  4301. Facilities.) 
  4302.  
  4303. When the compiler generates code to block output records or unblock input 
  4304. records, file status values that are caused by OS/400 exceptions are set only 
  4305. when a block is processed. 
  4306.  
  4307.  
  4308. ΓòÉΓòÉΓòÉ 8.24.1. data-name-1 ΓòÉΓòÉΓòÉ
  4309.  
  4310. The status key data item must be defined in the Data Division as a 2-character 
  4311. alphanumeric item. Data-name-1 must not be defined in the File Section. 
  4312. Data-name-1 can be qualified. 
  4313.  
  4314.  
  4315. ΓòÉΓòÉΓòÉ 8.24.2. data-name-5 ΓòÉΓòÉΓòÉ
  4316.  
  4317. -----IBM Extension----- 
  4318.  
  4319. An optional status key data item may be specified for file processing. 
  4320.  
  4321. For transaction files, the data item must be a 4-character alphanumeric item. 
  4322.  
  4323. For non-transaction files, the data item must be a 6-byte group item. The item 
  4324. is treated as documentation for all non-transaction files except for those that 
  4325. are dynamically created. Extended file status is set to 0900 for files that are 
  4326. created dynamically when OPEN OUTPUT is specified. Data-name-5 can be 
  4327. qualified. 
  4328.  
  4329. ---End of IBM Extension--- 
  4330.  
  4331.  
  4332. ΓòÉΓòÉΓòÉ 8.25. CONTROL-AREA Clause ΓòÉΓòÉΓòÉ
  4333.  
  4334. -----IBM Extension----- 
  4335.  
  4336. This clause specifies device-dependent and system-dependent information used to 
  4337. control input/output operations for TRANSACTION files. You could achieve the 
  4338. same result through the use of INDICATORS. 
  4339.  
  4340. ΓöîΓöÇΓöÇΓöÇ CONTROL-AREA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4341. Γöé                                        Γöé
  4342. Γöé          (1)                             Γöé
  4343. Γöé >>ΓöÇΓöÇCONTROL-AREAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-7ΓöÇΓöÇ><                 Γöé
  4344. Γöé            ΓööΓöÇISΓöÇΓöÿ                          Γöé
  4345. Γöé                                        Γöé
  4346. Γöé NOTE:                                     Γöé
  4347. Γöé (1)  IBM Extension                              Γöé
  4348. Γöé                                        Γöé
  4349. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4350.  
  4351. ---End of IBM Extension--- 
  4352.  
  4353.  
  4354. ΓòÉΓòÉΓòÉ 8.25.1. data-name-7 ΓòÉΓòÉΓòÉ
  4355.  
  4356. -----IBM Extension----- 
  4357.  
  4358. A data-item (2, 12, or 22 characters long) defined in the LINKAGE SECTION or 
  4359. the WORKING STORAGE SECTION, of the following format: 
  4360.  
  4361. 01    data-name-7
  4362.     05   function-key  PIC X(2)
  4363.     05   device-name   PIC X(10)
  4364.     05   record-format PIC X(10)
  4365.  
  4366. Where: 
  4367.  
  4368.  function-key 
  4369.            Is a 2-digit number inserted in the field by the workstation 
  4370.            interface that identifies the function key the operator pressed to 
  4371.            initiate the transaction. 
  4372.  
  4373.     number   meaning 
  4374.     00       Enter key 
  4375.     01-24    Function keys 1 through 24 
  4376.     90       Roll up / Page down key 
  4377.     91       Roll down / Page up key 
  4378.     92       Print key 
  4379.     93       Help key 
  4380.     94       Clear key 
  4381.     95       Home key 
  4382.     99       Undefined 
  4383.  
  4384.  device-name 
  4385.            The program device name 
  4386.  
  4387.  record-format 
  4388.            The DDS record format name that was referenced by the last 
  4389.            input/output statement run. 
  4390.  
  4391.  ---End of IBM Extension--- 
  4392.  
  4393.  
  4394. ΓòÉΓòÉΓòÉ 8.26. I-O-CONTROL Paragraph ΓòÉΓòÉΓòÉ
  4395.  
  4396. The I-O-CONTROL paragraph of the INPUT-OUTPUT SECTION specifies the storage 
  4397. areas to be shared by different files. This paragraph is optional in a COBOL 
  4398. program. 
  4399.  
  4400. The keyword I-O-CONTROL may appear only once, at the beginning of the 
  4401. paragraph. The word I-O-CONTROL must begin in Area A, and must be followed by a 
  4402. separator period. 
  4403.  
  4404. Each clause within the paragraph may be separated from the next by a separator 
  4405. comma or a separator semicolon. The order in which I-O-CONTROL paragraph 
  4406. clauses are written is not significant. The I-O-CONTROL paragraph ends with a 
  4407. separator period. 
  4408.  
  4409. The I-O-CONTROL paragraph has three formats: 
  4410.  
  4411.   Format 1 - Sequential Files 
  4412.   Format 2 - Indexed and Relative Files 
  4413.   Format 3 - Sort or Merge Files 
  4414.  
  4415.  
  4416. ΓòÉΓòÉΓòÉ 8.26.1. I-O-CONTROL Paragraph - Format 1 - Sequential Files ΓòÉΓòÉΓòÉ
  4417.  
  4418. ΓöîΓöÇΓöÇΓöÇ I-O-CONTROL PARAGRAPH - FORMAT 1 - SEQUENTIAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4419. Γöé                                        Γöé
  4420. Γöé >>ΓöÇΓöÇI-O-CONTROL.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4421. Γöé                                        Γöé
  4422. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  4423. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé     Γöé
  4424. Γöé   Γöé                              Γöé   Γöé     Γöé
  4425. Γöé   Γöé      (2)                          Γöé     Γöé
  4426. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇRERUNΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ records Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇ.ΓöÇΓöÿ     Γöé
  4427. Γöé    Γöé      ΓööΓöÇONΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼ΓöÇΓöÿ        Γöé        Γöé
  4428. Γöé    Γöé         ΓööΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé        Γöé
  4429. Γöé    Γö£ΓöÇSAMEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ files Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  4430. Γöé    Γöé    ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ          Γöé        Γöé
  4431. Γöé    Γö£ΓöÇΓöñ multiple file tape Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  4432. Γöé    Γöé           (1)      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé        Γöé
  4433. Γöé    Γöé                         Γöé   Γöé        Γöé
  4434. Γöé    ΓööΓöÇCOMMITMENTΓöÇΓöÇCONTROLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇfile-name-6ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  4435. Γöé                 ΓööΓöÇFORΓöÇΓöÿ                    Γöé
  4436. Γöé                                        Γöé
  4437. Γöé RECORDS:                                   Γöé
  4438. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇinteger-1ΓöÇΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-2ΓöÇΓö¼ΓöÇΓöÇΓöñ      Γöé
  4439. Γöé   ΓööΓöÇEVERYΓöÇΓöÿ  Γöé ΓööΓöÇENDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇREELΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇOFΓöÇΓöÿ        Γöé       Γöé
  4440. Γöé        Γöé     ΓööΓöÇOFΓöÇΓöÿ  ΓööΓöÇUNITΓöÇΓöÿ             Γöé       Γöé
  4441. Γöé        Γö£ΓöÇinteger-2ΓöÇΓöÇCLOCK-UNITSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  4442. Γöé        ΓööΓöÇcondition-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  4443. Γöé                                        Γöé
  4444. Γöé FILES:                                    Γöé
  4445. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                        Γöé
  4446. Γöé                Γöé                        Γöé
  4447. Γöé Γö£ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇΓöñ                      Γöé
  4448. Γöé                                        Γöé
  4449. Γöé MULTIPLE FILE TAPE:                              Γöé
  4450. Γöé          (2)                             Γöé
  4451. Γöé Γö£ΓöÇΓöÇMULTIPLEΓöÇΓöÇFILEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4452. Γöé            ΓööΓöÇTAPEΓöÇΓöÿ  ΓööΓöÇCONTAINSΓöÇΓöÿ                 Γöé
  4453. Γöé                                        Γöé
  4454. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                  Γöé
  4455. Γöé                       Γöé                  Γöé
  4456. Γöé >ΓöÇΓöÇΓöÇΓöÇfile-name-5ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöñ                Γöé
  4457. Γöé          ΓööΓöÇPOSITIONΓöÇΓöÇinteger-2ΓöÇΓöÿ                   Γöé
  4458. Γöé                                        Γöé
  4459. Γöé NOTES:                                    Γöé
  4460. Γöé (1)  IBM Extension                              Γöé
  4461. Γöé                                        Γöé
  4462. Γöé (2)  Syntax checked only                           Γöé
  4463. Γöé                                        Γöé
  4464. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4465.  
  4466.  
  4467. ΓòÉΓòÉΓòÉ 8.26.2. I-O-CONTROL Paragraph - Format 2 - Relative and Indexed Files ΓòÉΓòÉΓòÉ
  4468.  
  4469. ΓöîΓöÇΓöÇΓöÇ I-O-CONTROL PARAGRAPH - FORMAT 2 - RELATIVE/INDEXED ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4470. Γöé                                        Γöé
  4471. Γöé >>ΓöÇΓöÇI-O-CONTROL.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4472. Γöé                                        Γöé
  4473. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  4474. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé     Γöé
  4475. Γöé   Γöé                              Γöé   Γöé     Γöé
  4476. Γöé   Γöé      (2)                          Γöé     Γöé
  4477. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇRERUNΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ records Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇ.ΓöÇΓöÿ     Γöé
  4478. Γöé    Γöé      ΓööΓöÇONΓöÇΓöÇΓö¼ΓöÇassignment-name-1ΓöÇΓö¼ΓöÇΓöÿ        Γöé        Γöé
  4479. Γöé    Γöé         ΓööΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé        Γöé
  4480. Γöé    Γö£ΓöÇSAMEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ files Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  4481. Γöé    Γöé    ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ          Γöé        Γöé
  4482. Γöé    Γöé           (1)      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé        Γöé
  4483. Γöé    Γöé                         Γöé   Γöé        Γöé
  4484. Γöé    ΓööΓöÇCOMMITMENTΓöÇΓöÇCONTROLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇfile-name-6ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  4485. Γöé                 ΓööΓöÇFORΓöÇΓöÿ                    Γöé
  4486. Γöé                                        Γöé
  4487. Γöé RECORDS:                                   Γöé
  4488. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇinteger-1ΓöÇΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-2ΓöÇΓö¼ΓöÇΓöÇΓöñ         Γöé
  4489. Γöé   ΓööΓöÇEVERYΓöÇΓöÿ  Γöé           ΓööΓöÇOFΓöÇΓöÿ        Γöé           Γöé
  4490. Γöé        Γö£ΓöÇinteger-2ΓöÇΓöÇCLOCK-UNITSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  4491. Γöé        ΓööΓöÇcondition-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  4492. Γöé                                        Γöé
  4493. Γöé FILES:                                    Γöé
  4494. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                        Γöé
  4495. Γöé                Γöé                        Γöé
  4496. Γöé Γö£ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇΓöñ                      Γöé
  4497. Γöé                                        Γöé
  4498. Γöé NOTES:                                    Γöé
  4499. Γöé (1)  IBM Extension                              Γöé
  4500. Γöé                                        Γöé
  4501. Γöé (2)  Syntax checked only                           Γöé
  4502. Γöé                                        Γöé
  4503. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4504.  
  4505.  
  4506. ΓòÉΓòÉΓòÉ 8.26.3. I-O-CONTROL Paragraph - Format 3 - Sort or Merge Files ΓòÉΓòÉΓòÉ
  4507.  
  4508. ΓöîΓöÇΓöÇΓöÇ I-O-CONTROL ENTRIES - FORMAT 3 - SORT/MERGE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4509. Γöé                                        Γöé
  4510. Γöé >>ΓöÇΓöÇI-O-CONTROL.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4511. Γöé                                        Γöé
  4512. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><    Γöé
  4513. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé      Γöé
  4514. Γöé   Γöé                             Γöé   Γöé      Γöé
  4515. Γöé   ΓööΓöÇΓöÇΓöÇSAMEΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ files Γö£ΓöÇΓö┤ΓöÇΓöÇ.ΓöÇΓöÿ      Γöé
  4516. Γöé        Γöé    (1)    Γöé  ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ               Γöé
  4517. Γöé        Γö£ΓöÇSORTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  4518. Γöé        Γöé       (1)Γöé                        Γöé
  4519. Γöé        ΓööΓöÇSORT-MERGEΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  4520. Γöé                                        Γöé
  4521. Γöé FILES:                                    Γöé
  4522. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                        Γöé
  4523. Γöé                Γöé                        Γöé
  4524. Γöé Γö£ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇΓöñ                      Γöé
  4525. Γöé                                        Γöé
  4526. Γöé NOTE:                                     Γöé
  4527. Γöé (1)  Syntax checked only                           Γöé
  4528. Γöé                                        Γöé
  4529. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4530.  
  4531.  
  4532. ΓòÉΓòÉΓòÉ 8.27. RERUN Clause ΓòÉΓòÉΓòÉ
  4533.  
  4534. The RERUN clause specifies that checkpoint records are to be taken. 
  4535.  
  4536. The RERUN clause is syntax checked, but is treated as documentation. 
  4537.  
  4538. ΓöîΓöÇΓöÇΓöÇ RERUN CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4539. Γöé                                        Γöé
  4540. Γöé      (1)                                 Γöé
  4541. Γöé >>ΓöÇΓöÇRERUNΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4542. Γöé        ΓööΓöÇONΓöÇΓöÇΓö¼ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇEVERYΓöÇΓöÿ            Γöé
  4543. Γöé           ΓööΓöÇassignment-name-1ΓöÇΓöÿ                   Γöé
  4544. Γöé                                        Γöé
  4545. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇinteger-1ΓöÇΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-2ΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  4546. Γöé   Γöé ΓööΓöÇENDΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇREELΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇOFΓöÇΓöÿ        Γöé            Γöé
  4547. Γöé   Γöé     ΓööΓöÇOFΓöÇΓöÿ  ΓööΓöÇUNITΓöÇΓöÿ             Γöé            Γöé
  4548. Γöé   Γö£ΓöÇinteger-2ΓöÇΓöÇCLOCK-UNITSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ            Γöé
  4549. Γöé   ΓööΓöÇcondition-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  4550. Γöé                                        Γöé
  4551. Γöé NOTE:                                     Γöé
  4552. Γöé (1)  Syntax checked only                           Γöé
  4553. Γöé                                        Γöé
  4554. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4555.  
  4556.  
  4557. ΓòÉΓòÉΓòÉ 8.28. SAME AREA Clause ΓòÉΓòÉΓòÉ
  4558.  
  4559. The SAME AREA clause specifies that two or more files, that do not represent 
  4560. sort or merge files, are to use the same main storage area during processing. 
  4561. The SAME AREA clause is syntax checked, but is treated as documentation. 
  4562.  
  4563. ΓöîΓöÇΓöÇΓöÇ SAME AREA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4564. Γöé                                        Γöé
  4565. Γöé      (1)                 ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  4566. Γöé                               Γöé         Γöé
  4567. Γöé >>ΓöÇΓöÇSAMEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇ><       Γöé
  4568. Γöé        ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ                        Γöé
  4569. Γöé                                        Γöé
  4570. Γöé NOTE:                                     Γöé
  4571. Γöé (1)  Syntax checked only                           Γöé
  4572. Γöé                                        Γöé
  4573. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4574.  
  4575. The files named in a SAME AREA clause need not have the same organization or 
  4576. access. 
  4577.  
  4578.  
  4579. ΓòÉΓòÉΓòÉ 8.29. SAME RECORD AREA Clause ΓòÉΓòÉΓòÉ
  4580.  
  4581. The SAME RECORD AREA clause specifies that two or more files are to use the 
  4582. same main storage area for processing the current logical record. All of the 
  4583. files may be open at the same time. 
  4584.  
  4585. Note:   The SAME RECORD AREA clause is intended to make efficient use of main 
  4586.         storage.  However, AS/400 virtual storage architecture eliminates the 
  4587.         need for this clause, and the clause is supported for compatibility 
  4588.         rather than for performance.  Use of the SAME RECORD AREA clause 
  4589.         actually degrades performance and increases program size. 
  4590.  
  4591.   ΓöîΓöÇΓöÇΓöÇ SAME RECORD AREA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4592.   Γöé                                        Γöé
  4593.   Γöé                          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  4594.   Γöé                                 Γöé       Γöé
  4595.   Γöé >>ΓöÇΓöÇSAMEΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇ><     Γöé
  4596.   Γöé          ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ                      Γöé
  4597.   Γöé                                        Γöé
  4598.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4599.  
  4600.  A logical record in the shared storage area is considered to be both of the 
  4601.  following: 
  4602.  
  4603.   A logical record of each opened output file using the SAME RECORD AREA 
  4604.    clause 
  4605.  
  4606.   A logical record of the most recently read input file using the SAME RECORD 
  4607.    AREA clause. 
  4608.  The SAME RECORD AREA clause allows transfer of data from one file to another 
  4609.  with no explicit data manipulation because the input/output record areas of 
  4610.  named files are identical, and all are available to the user. 
  4611.  
  4612.  More than one SAME RECORD AREA clause may be included in a program. However: 
  4613.  
  4614.   A specific file-name must not appear in more than one SAME RECORD AREA 
  4615.    clause. 
  4616.  
  4617.   If one or more file-names of a SAME AREA clause appear in a SAME RECORD AREA 
  4618.    clause, all the file-names in that SAME AREA clause must appear in that SAME 
  4619.    RECORD AREA clause. However, the SAME RECORD AREA clause may contain 
  4620.    additional file-names that do not appear in the SAME AREA clause. 
  4621.  
  4622.   If the SAME RECORD AREA is specified for several files, the record 
  4623.    description entries or the file description entries for these files must not 
  4624.    include the GLOBAL clause. 
  4625.  
  4626.   The SAME RECORD AREA clause cannot be used with EXTERNAL files. 
  4627.  
  4628.  
  4629. ΓòÉΓòÉΓòÉ 8.30. SAME SORT AREA Clause ΓòÉΓòÉΓòÉ
  4630.  
  4631. The SAME SORT AREA clause optimizes the storage area assignment to a given SORT 
  4632. statement. 
  4633.  
  4634. The SAME SORT AREA clause is syntax checked, but is treated as documentation. 
  4635.  
  4636. ΓöîΓöÇΓöÇΓöÇ SAME SORT AREA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4637. Γöé                                        Γöé
  4638. Γöé         (1)                 ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  4639. Γöé                                  Γöé      Γöé
  4640. Γöé >>ΓöÇΓöÇSAMEΓöÇΓöÇSORTΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇ><    Γöé
  4641. Γöé           ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ                     Γöé
  4642. Γöé                                        Γöé
  4643. Γöé NOTE:                                     Γöé
  4644. Γöé (1)  Syntax checked only                           Γöé
  4645. Γöé                                        Γöé
  4646. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4647.  
  4648. When the SAME SORT AREA clause is specified, at least one file-name specified 
  4649. must be a sort file. Files that are not sort files may also be specified. The 
  4650. following rules apply: 
  4651.  
  4652.   More than one SAME SORT AREA clause may be specified. However, a given sort 
  4653.    file must not be named in more than one such clause. 
  4654.  
  4655.   If a file that is not a sort file is named in both a SAME AREA clause and in 
  4656.    one or more SAME SORT AREA clauses, all the files in the SAME AREA clause 
  4657.    must also appear in that SAME SORT AREA clause. 
  4658.  
  4659.   Files named in a SAME SORT AREA clause need not have the same organization 
  4660.    or access. 
  4661.  
  4662.   Files named in a SAME SORT AREA clause that are not sort files do not share 
  4663.    storage with each other unless the user names them in a SAME RECORD AREA 
  4664.    clause. 
  4665.  
  4666.  
  4667. ΓòÉΓòÉΓòÉ 8.31. SAME SORT-MERGE AREA Clause ΓòÉΓòÉΓòÉ
  4668.  
  4669. The SAME SORT-MERGE AREA clause optimizes the storage area assignment to a 
  4670. given SORT or MERGE statement. 
  4671.  
  4672. The SAME SORT-MERGE AREA clause is syntax checked, but is treated as 
  4673. documentation. 
  4674.  
  4675. ΓöîΓöÇΓöÇΓöÇ SAME SORT-MERGE AREA CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4676. Γöé                                        Γöé
  4677. Γöé            (1)                 ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé
  4678. Γöé                                     Γöé   Γöé
  4679. Γöé >>ΓöÇΓöÇSAMEΓöÇΓöÇSORT-MERGEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-3ΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇ>< Γöé
  4680. Γöé              ΓööΓöÇAREAΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÿ                  Γöé
  4681. Γöé                                        Γöé
  4682. Γöé NOTE:                                     Γöé
  4683. Γöé (1)  Syntax checked only                           Γöé
  4684. Γöé                                        Γöé
  4685. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4686.  
  4687. When the SAME SORT-MERGE AREA clause is specified, at least one file-name 
  4688. specified must be a sort or merge file. Files that are not sort or merge files 
  4689. may also be specified. The following rules apply: 
  4690.  
  4691.   More than one SAME SORT-MERGE AREA clause may be specified. However, a given 
  4692.    sort or merge file must not be named in more than one such clause. 
  4693.  
  4694.   If a file that is not a sort or merge file is named in both a SAME AREA 
  4695.    clause and in one or more SAME SORT-MERGE AREA clauses, all the files in the 
  4696.    SAME AREA clause must also appear in that SAME SORT-MERGE AREA clause. 
  4697.  
  4698.   Files named in a SAME SORT-MERGE AREA clause need not have the same 
  4699.    organization or access. 
  4700.  
  4701.   Files named in a SAME SORT-MERGE AREA clause that are not sort or merge 
  4702.    files do not share storage with each other unless the user names them in a 
  4703.    SAME RECORD AREA clause. 
  4704.  
  4705.  
  4706. ΓòÉΓòÉΓòÉ 8.32. MULTIPLE FILE TAPE Clause ΓòÉΓòÉΓòÉ
  4707.  
  4708. This clause specifies that two or more files share the same reel of tape.  The 
  4709. function is provided by the system through the use of command language. 
  4710.  
  4711. The MULTIPLE FILE TAPE clause is syntax checked, but is treated as 
  4712. documentation. 
  4713.  
  4714. ΓöîΓöÇΓöÇΓöÇ MULTIPLE FILE TAPE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4715. Γöé                                        Γöé
  4716. Γöé           (1)                            Γöé
  4717. Γöé >>ΓöÇΓöÇMULTIPLEΓöÇΓöÇFILEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4718. Γöé             ΓööΓöÇTAPEΓöÇΓöÿ  ΓööΓöÇCONTAINSΓöÇΓöÿ                 Γöé
  4719. Γöé                                        Γöé
  4720. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                  Γöé
  4721. Γöé                       Γöé                  Γöé
  4722. Γöé >ΓöÇΓöÇΓöÇΓöÇfile-name-5ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><                Γöé
  4723. Γöé          ΓööΓöÇPOSITIONΓöÇΓöÇinteger-2ΓöÇΓöÿ                   Γöé
  4724. Γöé                                        Γöé
  4725. Γöé NOTE:                                     Γöé
  4726. Γöé (1)  Syntax checked only                           Γöé
  4727. Γöé                                        Γöé
  4728. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4729.  
  4730.  
  4731. ΓòÉΓòÉΓòÉ 8.33. COMMITMENT CONTROL Clause ΓòÉΓòÉΓòÉ
  4732.  
  4733. -----IBM Extension----- 
  4734.  
  4735. The COMMITMENT CONTROL clause specifies the files that will be placed under 
  4736. commitment control when they are opened. 
  4737.  
  4738. ΓöîΓöÇΓöÇΓöÇ COMMITMENT CONTROL CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4739. Γöé                                        Γöé
  4740. Γöé             (1)      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé
  4741. Γöé                           Γöé             Γöé
  4742. Γöé >>ΓöÇΓöÇCOMMITMENTΓöÇΓöÇCONTROLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇfile-name-6ΓöÇΓö┤ΓöÇΓöÇ><           Γöé
  4743. Γöé               ΓööΓöÇFORΓöÇΓöÿ                      Γöé
  4744. Γöé                                        Γöé
  4745. Γöé NOTE:                                     Γöé
  4746. Γöé (1)  IBM Extension                              Γöé
  4747. Γöé                                        Γöé
  4748. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4749.  
  4750. File-name-6 must be specified in the FILE CONTROL paragraph of the same program 
  4751. as the I-O-CONTROL paragraph in which the COMMITMENT CONTROL clause appears. 
  4752.  
  4753. These files will then be affected by the COMMIT and ROLLBACK statements.  The 
  4754. COMMIT statement allows the synchronization of changes to database records 
  4755. while preventing other jobs from modifying those records until the COMMIT is 
  4756. complete.  The ROLLBACK statement provides a method of cancelling changes made 
  4757. to database files when those changes should not be made permanent. 
  4758.  
  4759. The COMMITMENT CONTROL clause can specify only files assigned to a device type 
  4760. of DATABASE.  Files under commitment control may have an organization of 
  4761. sequential, relative or indexed, and may have any access mode valid for a 
  4762. particular organization. 
  4763.  
  4764. The system locks records contained in files under commitment control when these 
  4765. records are accessed.  Records remain locked until released by a COMMIT or 
  4766. ROLLBACK statement. 
  4767.  
  4768. Note:   Always try to use files in a consistent manner to avoid record locking 
  4769.         problems, and to avoid reading records that have not yet been 
  4770.         permanently committed to the database.  Typically, a file should either 
  4771.         always be accessed under commitment control or never be accessed under 
  4772.         commitment control. 
  4773.  
  4774.  ---End of IBM Extension--- 
  4775.  
  4776.  
  4777. ΓòÉΓòÉΓòÉ 9. Data Division ΓòÉΓòÉΓòÉ
  4778.  
  4779. The Data Division of a COBOL source program describes, in a structured manner, 
  4780. all the data to be processed by the object program; also the relationship 
  4781. between physical and logical records. The Data Division is optional in a COBOL 
  4782. source program. 
  4783.  
  4784. This section outlines the structure of the Data Division and explains the types 
  4785. of data. 
  4786.  
  4787. The Data Division must begin with the words DATA DIVISION, followed by a period 
  4788. and a space. 
  4789.  
  4790. The Data Division is divided into three sections: 
  4791.  
  4792.  File Section 
  4793.            Describes externally stored data (including sort-merge files). 
  4794.  
  4795.  Working-Storage Section 
  4796.            Describes internal data. 
  4797.  
  4798.  Linkage Section 
  4799.            Describes data made available by another program. It appears in the 
  4800.            called program and describes data items that are provided by the 
  4801.            calling program and are referred to by the called program. The 
  4802.            called program can be a nested program. 
  4803.  
  4804.  Each section has a specific logical function within a COBOL source program, 
  4805.  and each may be omitted from the source program when that logical function is 
  4806.  not needed. If included, the sections must be written in the order shown. 
  4807.  
  4808.   ΓöîΓöÇΓöÇΓöÇ DATA DIVISION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4809.   Γöé                                        Γöé
  4810.   Γöé >>ΓöÇΓöÇDATA DIVISION.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  4811.   Γöé           Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé    Γöé
  4812.   Γöé           Γöé                         Γöé Γöé    Γöé
  4813.   Γöé           ΓööΓöÇFILE SECTION.ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ    Γöé
  4814.   Γöé                     ΓööΓöÇΓöñ file-section-entries Γö£ΓöÇΓöÿ      Γöé
  4815.   Γöé                                        Γöé
  4816.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  4817.   Γöé   Γöé              ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé     Γöé
  4818.   Γöé   Γöé                               Γöé Γöé     Γöé
  4819.   Γöé   ΓööΓöÇWORKING-STORAGE SECTION.ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ     Γöé
  4820.   Γöé                  Γö£ΓöÇrecord-description-entryΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  4821.   Γöé                  ΓööΓöÇdata-item-description-entryΓöÇΓöÿ       Γöé
  4822.   Γöé                                        Γöé
  4823.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><       Γöé
  4824.   Γöé   Γöé          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé         Γöé
  4825.   Γöé   Γöé                           Γöé Γöé         Γöé
  4826.   Γöé   ΓööΓöÇLINKAGE SECTION.ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ         Γöé
  4827.   Γöé              Γö£ΓöÇrecord-description-entryΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  4828.   Γöé              ΓööΓöÇdata-item-description-entryΓöÇΓöÿ           Γöé
  4829.   Γöé                                        Γöé
  4830.   Γöé FILE-SECTION-ENTRIES:                             Γöé
  4831.   Γöé               ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ            Γöé
  4832.   Γöé                             Γöé            Γöé
  4833.   Γöé Γö£ΓöÇΓöÇfile-description-entryΓöÇΓöÇΓöÇΓöÇrecord-description-entryΓöÇΓö┤ΓöÇΓöÇΓöñ          Γöé
  4834.   Γöé                                        Γöé
  4835.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4836.  
  4837.  Related Information: 
  4838.  
  4839.   File Description(FD) and Sort Description(SD) Entries 
  4840.   Data Description Entry 
  4841.   Data Types 
  4842.   Data Relationships 
  4843.  
  4844.  
  4845. ΓòÉΓòÉΓòÉ 9.1. File Section ΓòÉΓòÉΓòÉ
  4846.  
  4847. The File Section describes: 
  4848.  
  4849.   All externally stored files 
  4850.   Each sort-merge file. 
  4851.  
  4852.  Group items (including tables) are limited to a length of 16 711 568 bytes. 
  4853.  
  4854.  The initial value of a data item in the File Section is undefined. 
  4855.  
  4856.  -----IBM Extension----- 
  4857.  
  4858.  The record description entry for a file can be specified using the Format 2 
  4859.  COPY statement (DD, DDR, DDS, or DDSR option). This allows the field 
  4860.  descriptions for a record format to be exactly as defined in DDS. Also, 
  4861.  programs are easier to write because the record format description is 
  4862.  maintained in only one place. 
  4863.  
  4864.  ---End of IBM Extension--- 
  4865.  
  4866.  
  4867. ΓòÉΓòÉΓòÉ 9.2. Working-Storage Section ΓòÉΓòÉΓòÉ
  4868.  
  4869. The Working-Storage Section describes data records that are not part of 
  4870. external data files but are developed and processed internally by the program. 
  4871.  
  4872. Data entries in the Working-Storage Section that bear a definite hierarchic 
  4873. relationship to one another must be grouped into records structured by level 
  4874. number. 
  4875.  
  4876. The initial value of any data item in the Working-Storage Section, except an 
  4877. index data item, is specified by associating a VALUE clause with the item. The 
  4878. initial value of any index data item, or of any data item not associated with a 
  4879. VALUE clause, is undefined. 
  4880.  
  4881. Note:   A maximum of 16 711 568 bytes is permitted for group items (including 
  4882. tables). 
  4883.  
  4884.  
  4885. ΓòÉΓòÉΓòÉ 9.3. Linkage Section ΓòÉΓòÉΓòÉ
  4886.  
  4887. The Linkage Section describes data made available from another program through 
  4888. the CALL statement. It can also be used to describe the format of data accessed 
  4889. by using the ADDRESS OF special register. For example, you can set the ADDRESS 
  4890. OF special register for a Linkage Section item to data that is dynamically 
  4891. allocated using ILE bindable APIs. 
  4892.  
  4893. Record description entries and data item description entries in the Linkage 
  4894. Section provide names and descriptions of the data item, but not the storage. 
  4895. Storage is not reserved in the program because the data area exists elsewhere. 
  4896.  
  4897. Any data description clause may be used to describe items in the Linkage 
  4898. Section, with these exceptions: 
  4899.  
  4900.   The VALUE clause may not be specified for items other than level-88 items. 
  4901.  
  4902.    -----IBM Extension----- 
  4903.  
  4904.    If the VALUE clause is specified for items other than level-88 in the 
  4905.    Linkage section, it is treated as a comment. 
  4906.  
  4907.    ---End of IBM Extension--- 
  4908.  
  4909.   The EXTERNAL clause cannot be specified in the Linkage section. 
  4910.  
  4911.   The GLOBAL clause cannot be specified in the Linkage section. 
  4912.  
  4913.    -----IBM Extension----- 
  4914.  
  4915.   The GLOBAL clause can be specified for a data-name or condition-name in the 
  4916.    LINKAGE section, with level number 01. When GLOBAL is specified in a LINKAGE 
  4917.    section data item, a contained source program can refer directly to the item 
  4918.    by the name of the data item. 
  4919.  
  4920.    ---End of IBM Extension--- 
  4921.  
  4922.  Note:   A maximum of 16 711 568 bytes is permitted for group items (including 
  4923.  tables). 
  4924.  
  4925.  Related Information: 
  4926.  
  4927.   ADDRESS OF Statement 
  4928.   ADDRESS OF Special Register 
  4929.  
  4930.  
  4931. ΓòÉΓòÉΓòÉ 9.4. ADDRESS OF ΓòÉΓòÉΓòÉ
  4932.  
  4933. -----IBM Extension----- 
  4934.  
  4935. ADDRESS OF refers to the calculated address of a data item. The data item can 
  4936. be reference modified or subscripted. You may take the ADDRESS OF any Data 
  4937. Division item except for level number 66 or 88. Such an address can be 
  4938. referenced, but not changed. 
  4939.  
  4940. The ADDRESS OF an item is implicitly defined as USAGE IS POINTER. 
  4941.  
  4942. ---End of IBM Extension--- 
  4943.  
  4944.  
  4945. ΓòÉΓòÉΓòÉ 9.5. ADDRESS OF Special Register ΓòÉΓòÉΓòÉ
  4946.  
  4947. -----IBM Extension----- 
  4948.  
  4949. The ADDRESS OF special register is the starting address of the data structure 
  4950. from which all calculated addresses are determined. 
  4951.  
  4952. It exists for each record (level number 01 or 77) in the Linkage Section, 
  4953. except for those records that redefine each other. In such cases, the special 
  4954. register is similarly redefined. 
  4955.  
  4956. This special register is implicitly defined as USAGE IS POINTER, and you can 
  4957. change it. 
  4958.  
  4959. If you reference modify the ADDRESS OF identifier, it is no longer the starting 
  4960. address of a data structure. It is a calculated address. 
  4961.  
  4962. ---End of IBM Extension--- 
  4963.  
  4964.  
  4965. ΓòÉΓòÉΓòÉ 9.6. Data Types ΓòÉΓòÉΓòÉ
  4966.  
  4967. Two types of data can be processed: file data and program data. 
  4968.  
  4969. File Data 
  4970.  
  4971. A file is a collection of data records existing on some input-output device. 
  4972. (See File Section.) A file can be considered to be a group of physical records; 
  4973. it can also be considered to be a group of logical records. 
  4974.  
  4975. A physical record is a unit of data that is treated as an entity when moved 
  4976. into or out of storage. The size of a physical record is determined by the 
  4977. particular input-output device on which it is stored. The size does not 
  4978. necessarily have a direct relationship to the size or content of the logical 
  4979. information contained in the file. 
  4980.  
  4981. A logical record is a unit of data whose subdivisions have a logical 
  4982. relationship. A logical record may itself be a physical record (that is, be 
  4983. contained completely within one physical unit of data); several logical records 
  4984. may be contained within one physical record, or one logical record may extend 
  4985. across several physical records. 
  4986.  
  4987. File description entries specify the physical aspects of the data (such as the 
  4988. size relationship between physical and logical records, the size and name(s) of 
  4989. the logical record(s).) 
  4990.  
  4991. Record description entries describe the logical records in the file, including 
  4992. the category and format of data within each field of the logical record, 
  4993. different values the data might be assigned. 
  4994.  
  4995. After the relationship between physical and logical records has been 
  4996. established, only logical records are made available to you. For this reason, a 
  4997. reference in this manual to "records" means logical records, unless the term 
  4998. "physical records" is used. 
  4999.  
  5000. Program Data 
  5001.  
  5002. Program data is created by the program itself, instead of being read from a 
  5003. file. 
  5004.  
  5005. The concept of logical records applies to program data as well as to file data. 
  5006. Program data can thus be grouped into logical records, and be defined by a 
  5007. series of record description entries. Items that need not be so grouped can be 
  5008. defined in independent data item description entries. 
  5009.  
  5010.  
  5011. ΓòÉΓòÉΓòÉ 9.7. Data Relationships ΓòÉΓòÉΓòÉ
  5012.  
  5013. The relationships among all data to be used in a program are defined in the 
  5014. Data Division, through a system of level indicators and level-numbers. 
  5015.  
  5016. A level indicator, with its descriptive entry, identifies each file in a 
  5017. program. Level indicators represent the highest level of any data hierarchy 
  5018. with which they are associated; FD is the file description level indicator and 
  5019. SD is the sort-merge file description level indicator. 
  5020.  
  5021. A level-number, with its descriptive entry, indicates the properties of 
  5022. specific data. Level-numbers can be used to describe a data hierarchy; they can 
  5023. indicate that this data has a special purpose, and while they can be associated 
  5024. with (and subordinate to) level indicators, they can also be used independently 
  5025. to describe internal data or data common to two or more programs. 
  5026.  
  5027. Related Information: 
  5028.  
  5029.   Levels of Data 
  5030.   Classes and Categories of Data 
  5031.   Signed Data. 
  5032.  
  5033.  
  5034. ΓòÉΓòÉΓòÉ 9.7.1. Levels of Data ΓòÉΓòÉΓòÉ
  5035.  
  5036. After a record has been defined, it can be subdivided to provide more detailed 
  5037. data references. 
  5038.  
  5039. For example, in a customer file for a department store, one complete record 
  5040. could contain all data pertaining to one customer. Subdivisions within that 
  5041. record could be:  customer name, customer address, account number, department 
  5042. number of sale, unit amount of sale, dollar amount of sale, previous balance, 
  5043. plus other pertinent information. 
  5044.  
  5045. The basic subdivisions of a record (that is, those fields not further 
  5046. subdivided) are called elementary items. Thus, a record can be made up of a 
  5047. series of elementary items, or it may itself be an elementary item. 
  5048.  
  5049. It may be necessary to refer to a set of elementary items; thus, elementary 
  5050. items can be combined into group items. Groups themselves can be combined into 
  5051. a more inclusive group that contains one or more subgroups. Thus, within one 
  5052. hierarchy of data items, an elementary item can belong to more than one group 
  5053. item. 
  5054.  
  5055. A system of level-numbers specifies the organization of elementary and group 
  5056. items into records. Special level-numbers are also used; they identify data 
  5057. items used for special purposes. 
  5058.  
  5059. Related Information: 
  5060.  
  5061.   Levels of Data in a Record Description Entry 
  5062.   Special Level Numbers 
  5063.   Indentation. 
  5064.  
  5065.  
  5066. ΓòÉΓòÉΓòÉ 9.7.1.1. Levels of Data in a Record Description Entry ΓòÉΓòÉΓòÉ
  5067.  
  5068. Each group and elementary item in a record requires a separate entry, and each 
  5069. must be assigned a level-number. 
  5070.  
  5071. A level-number is a 1- or 2-digit integer between 01 and 49, or one of three 
  5072. special level-numbers: 66, 77, or 88. The following level-numbers are used to 
  5073. structure records: 
  5074.  
  5075.  01 
  5076.            This level-number specifies the record itself, and is the most 
  5077.            inclusive level-number possible. A level-01 entry may be either a 
  5078.            group item or an elementary item. It must begin in Area A. 
  5079.  
  5080.  02-49 
  5081.            These level-numbers specify group and elementary items within a 
  5082.            record. They may begin in Area A or Area B. Less inclusive data 
  5083.            items are assigned higher (not necessarily consecutive) 
  5084.            level-numbers in this series. 
  5085.  
  5086.  A group item includes all group and elementary items following it, until a 
  5087.  level-number less than or equal to the level-number of this group is 
  5088.  encountered. 
  5089.  
  5090.  All elementary or group items immediately subordinate to one group item must 
  5091.  be assigned identical level-numbers higher than the level-number of this group 
  5092.  item. 
  5093.  
  5094.  Related Information: 
  5095.  
  5096.   Coding Example 
  5097.   Conceptual Example. 
  5098.  
  5099.  
  5100. ΓòÉΓòÉΓòÉ 9.7.1.2. Coding Example ΓòÉΓòÉΓòÉ
  5101.  
  5102. -----IBM Extension----- 
  5103.  
  5104. The ILE COBOL/400 compiler accepts nonstandard level-numbers that are not 
  5105. identical to others at the same level. For example, the following two data 
  5106. description entries are equivalent: 
  5107.  
  5108. 01   EMPLOYEE-RECORD.
  5109.      05  EMPLOYEE-NAME.
  5110.          10  FIRST     PICTURE  X(10).
  5111.          10  LAST      PICTURE  X(10).
  5112.      05  EMPLOYEE-ADDRESS.
  5113.          10  STREET    PICTURE  X(10).
  5114.          10  CITY      PICTURE  X(10).
  5115. 01   EMPLOYEE-RECORD.
  5116.      05  EMPLOYEE-NAME.
  5117.          10  FIRST     PICTURE  X(10).
  5118.          10  LAST      PICTURE  X(10).
  5119.      04  EMPLOYEE-ADDRESS.
  5120.          08  STREET    PICTURE  X(10).
  5121.          08  CITY      PICTURE  X(10).
  5122.  
  5123. Because 04 is less than 05, it is not subordinate to EMPLOYEE-NAME, yet because 
  5124. it is greater than 01 it is subordinate to EMPLOYEE-RECORD. If 07 was used in 
  5125. place of 04, EMPLOYEE-ADDRESS would be subordinate to EMPLOYEE-NAME (which in 
  5126. this example would be undesirable). 
  5127.  
  5128. IBM does not recommend such coding practices, and this extension is provided 
  5129. only for compatibility. 
  5130.  
  5131. ---End of IBM Extension--- 
  5132.  
  5133.  
  5134. ΓòÉΓòÉΓòÉ 9.7.1.3. Conceptual Example ΓòÉΓòÉΓòÉ
  5135.  
  5136. Note that all groups immediately subordinate to the level-01 entry have the 
  5137. same level-number. Note also that elementary items from different subgroups do 
  5138. not necessarily have the same level numbers, and that elementary items can be 
  5139. specified at any level within the hierarchy. 
  5140.  
  5141. Levels in a Record Description 
  5142.  
  5143. The COBOL record-description entry
  5144. written as follows:                   is subdivided as indicated below:
  5145.  
  5146.  
  5147. 01  RECORDΓöÇENTRY.                 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5148.                                          Γöé
  5149.  05  GROUPΓöÇ1.                ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé
  5150.                                        Γöé   Γöé
  5151.    10  SUBGROUPΓöÇ1.           ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÉ   Γöé   Γöé
  5152.                                     Γöé   Γöé   Γöé
  5153.     15  ELEMΓöÇ1 PIC...  .                       Γöé   Γöé   Γöé
  5154.     15  ELEMΓöÇ2 PIC...  .                          Γöé   Γöé
  5155.                                        Γöé   Γöé
  5156.    10  SUBGROUPΓöÇ2.           ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÉ   Γöé   Γöé
  5157.                                     Γöé   Γöé   Γöé
  5158.     15  ELEMΓöÇ3 PIC...  .                       Γöé   Γöé   Γöé
  5159.     15  ELEMΓöÇ4 PIC...  .                             Γöé
  5160.                                          Γöé
  5161.  05  GROUPΓöÇ2.                ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÉ   Γöé
  5162.                                        Γöé   Γöé
  5163.     15  SUBGROUPΓöÇ3.        ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇThis entry includesΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé   Γöé
  5164.                                     Γöé   Γöé   Γöé
  5165.      25 ELEMΓöÇ5 PIC...  .                       Γöé   Γöé   Γöé
  5166.      25 ELEMΓöÇ6 PIC...  .                          Γöé   Γöé
  5167.                                        Γöé   Γöé
  5168.     15  SUBGROUPΓöÇ4 PIC...  .        This entry includes itself.     Γöé
  5169.                                          Γöé
  5170.  05  ELEMΓöÇ7 PIC...  .              This entry includes itself.    
  5171.  
  5172.  
  5173. The storage arrangement of the record-description entry is illustrated below: 
  5174.  
  5175. ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇRECORDΓöÇENTRYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  5176. Γöé                   Γöé                Γöé       Γöé
  5177. ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇGROUPΓöÇ1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇGROUPΓöÇ2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé       Γöé
  5178. Γöé                   Γöé                Γöé       Γöé
  5179. ΓöéΓöÇΓöÇΓöÇSUBGROUPΓöÇ1ΓöÇΓöÇΓöéΓöÇΓöÇΓöÇSUBGROUPΓöÇ2ΓöÇΓöÇΓöÇΓöéΓöÇΓöÇΓöÇΓöÇΓöÇSUBGROUPΓöÇ3ΓöÇΓöé       Γöé       Γöé
  5180.  
  5181. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5182. ΓöéELEMΓöÇ1 Γöé  ELEMΓöÇ2 Γöé  ELEMΓöÇ3 Γöé ELEMΓöÇ4 Γöé  ELEMΓöÇ5 Γöé ELEMΓöÇ6 Γöé SUBGROUPΓöÇ4 Γöé  ELEMΓöÇ7  Γöé
  5183. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5184.  
  5185.  
  5186. ΓòÉΓòÉΓòÉ 9.7.1.4. Special Level-Numbers ΓòÉΓòÉΓòÉ
  5187.  
  5188. Special level-numbers identify items that do not structure a record. The 
  5189. special level-numbers are: 
  5190.  
  5191.  66 
  5192.            Identifies items that must contain only a RENAMES clause; such items 
  5193.            regroup previously defined data items. (For details, see RENAMES 
  5194.            Clause.) 
  5195.  
  5196.  77 
  5197.            Identifies data item description entries - independent 
  5198.            Working-Storage or Linkage Section items that are not subdivisions 
  5199.            of other items, and are not subdivided themselves. Level-77 items 
  5200.            must begin in Area A. 
  5201.  
  5202.  88 
  5203.            Identifies any condition-name entry that is associated with a 
  5204.            particular value of a conditional variable. The condition-name entry 
  5205.            must contain only a VALUE clause. (For details, see VALUE OF 
  5206.            Clause.) 
  5207.  
  5208.  Note:   Level-77 and level-01 entries in the Working-Storage and Linkage 
  5209.  Sections that are referenced in the program must be given unique data-names, 
  5210.  because neither can be qualified. Subordinate data-names that are referenced 
  5211.  in the program must be either uniquely defined, or made unique through 
  5212.  qualification. Unreferenced data-names need not be uniquely defined. 
  5213.  
  5214.  
  5215. ΓòÉΓòÉΓòÉ 9.7.1.5. Indentation ΓòÉΓòÉΓòÉ
  5216.  
  5217. Successive data description entries may begin in the same column as preceding 
  5218. entries, or may be indented. Indentation is useful for documentation, but does 
  5219. not affect the action of the compiler. 
  5220.  
  5221.  
  5222. ΓòÉΓòÉΓòÉ 9.7.2. Classes and Categories of Data ΓòÉΓòÉΓòÉ
  5223.  
  5224. Most data used in a COBOL program can be divided into classes and categories, 
  5225. except pointers, procedure-pointers, and index data items. Every elementary 
  5226. item in a program belongs to one of the classes as well as one of the 
  5227. categories.  Every group item belongs to the alphanumeric class even if the 
  5228. subordinate elementary items belong to another class and category. Classes and 
  5229. Categories of Data shows the relationship of data classes and categories. 
  5230.  
  5231. The data category of an item is determined by its PICTURE character-string, 
  5232. BLANK WHEN ZERO, and USAGE attribute. For details, see Data Categories and 
  5233. PICTURE Rules. 
  5234.  
  5235. -----IBM Extension----- 
  5236.  
  5237. Boolean data is an IBM extension that provides a means of modifying and passing 
  5238. the values of the indicators associated with the display screen formats and 
  5239. externally described printer files. A Boolean value of 0 is the off status of 
  5240. the indicator, and a Boolean value of 1 is the on status of the indicator. 
  5241.  
  5242. A Boolean literal contains a single 0 or 1, is enclosed in quotation marks, and 
  5243. is immediately preceded by an identifying B.  A Boolean literal is defined as 
  5244. either B"0" or B"1". 
  5245.  
  5246. A Boolean character occupies one byte. 
  5247.  
  5248. When the figurative constant ZERO is associated with a Boolean data item or a 
  5249. Boolean literal, it represents the Boolean literal B"0". 
  5250.  
  5251. The reserved word ALL is valid with a Boolean literal. 
  5252.  
  5253. ---End of IBM Extension--- 
  5254.  
  5255. Related Information: 
  5256.  
  5257.   Alignment Rules 
  5258.   Standard Data Format 
  5259.   Character-String and Item Size. 
  5260.  
  5261.  
  5262. ΓòÉΓòÉΓòÉ 9.7.2.1. Classes and Categories of Data ΓòÉΓòÉΓòÉ
  5263.  
  5264. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5265. Γöé      Classes and Categories of Data                    Γöé
  5266. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5267. Γöé LEVEL OF ITEM   Γöé CLASS            Γöé CATEGORY          Γöé
  5268. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5269. Γöé Elementary     Γöé Alphabetic          Γöé Alphabetic         Γöé
  5270. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5271. Γöé          Γöé Numeric           Γöé Numeric           Γöé
  5272. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5273. Γöé          Γöé Alphanumeric         Γöé Numeric Edited       Γöé
  5274. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5275. Γöé          Γöé               Γöé Alphanumeric Edited     Γöé
  5276. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5277. Γöé          Γöé               Γöé Alphanumeric        Γöé
  5278. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5279. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5280. Γöé          Γöé               Γöé ΓöÇΓöÇΓöÇΓöÇΓöÇIBM EXTENSIONΓöÇΓöÇΓöÇΓöÇΓöÇ   Γöé
  5281. Γöé          Γöé               Γöé Boolean           Γöé
  5282. Γöé          Γöé               Γöé ΓöÇΓöÇΓöÇEND OF IBM EXTENSIONΓöÇΓöÇΓöÇ Γöé
  5283. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5284. Γöé Group       Γöé Alphanumeric         Γöé Alphabetic         Γöé
  5285. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5286. Γöé          Γöé               Γöé Numeric           Γöé
  5287. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5288. Γöé          Γöé               Γöé Numeric Edited       Γöé
  5289. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5290. Γöé          Γöé               Γöé Alphanumeric Edited     Γöé
  5291. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5292. Γöé          Γöé               Γöé Alphanumeric        Γöé
  5293. Γöé          Γöé               Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  5294. Γöé          Γöé               Γöé ΓöÇΓöÇΓöÇΓöÇΓöÇIBM EXTENSIONΓöÇΓöÇΓöÇΓöÇΓöÇ   Γöé
  5295. Γöé          Γöé               Γöé Boolean           Γöé
  5296. Γöé          Γöé               Γöé ΓöÇΓöÇΓöÇEND OF IBM EXTENSIONΓöÇΓöÇΓöÇ Γöé
  5297. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5298.  
  5299.  
  5300. ΓòÉΓòÉΓòÉ 9.7.3. Alignment Rules ΓòÉΓòÉΓòÉ
  5301.  
  5302. The standard alignment rules for positioning data in an elementary item depend 
  5303. on the category of a receiving item (that is, an item into which the data is 
  5304. moved; see Elementary Moves). 
  5305.  
  5306. Numeric: 
  5307.  
  5308.   1. The data is aligned on the assumed decimal point and if necessary, 
  5309.      truncated or padded with zeros. (An assumed decimal point - PICTURE 
  5310.      character P or V - is one that has logical meaning but that does not exist 
  5311.      as an actual character in the data.) 
  5312.  
  5313.   2. If an assumed decimal point is not explicitly specified, the receiving 
  5314.      item is treated as though an assumed decimal point is specified 
  5315.      immediately to the right of the field. The data is then treated according 
  5316.      to the preceding rule. 
  5317.  
  5318.  Numeric-edited: 
  5319.  
  5320.  The data is aligned on the decimal point, and (if necessary) truncated or 
  5321.  padded with zeros at either end, except when editing causes replacement of 
  5322.  leading zeros. 
  5323.  
  5324.  Alphanumeric, Alphanumeric-edited, Alphabetic: 
  5325.  
  5326.   1. The data is aligned at the leftmost character position, and (if necessary) 
  5327.      truncated or padded with spaces at the right. 
  5328.  
  5329.   2. If the JUSTIFIED clause is specified for this receiving item, the above 
  5330.      rule is modified, as described in JUSTIFIED Clause. 
  5331.  
  5332.  
  5333. ΓòÉΓòÉΓòÉ 9.7.4. Standard Data Format ΓòÉΓòÉΓòÉ
  5334.  
  5335. For the ILE COBOL/400 language, the default data format is the EBCDIC character 
  5336. set. 
  5337.  
  5338.  
  5339. ΓòÉΓòÉΓòÉ 9.7.5. Character-String and Item Size ΓòÉΓòÉΓòÉ
  5340.  
  5341. In your program, the size of an elementary item is determined through the 
  5342. number of character positions specified in its PICTURE character-string. In 
  5343. storage, however, the size is determined by the actual number of bytes the item 
  5344. occupies, as determined by the combination of its PICTURE character-string and 
  5345. its USAGE clause. 
  5346.  
  5347. Normally, when an arithmetic item is moved from a longer field into a shorter 
  5348. one, the compiler truncates the data to the number of characters represented in 
  5349. the shorter item's PICTURE character-string. 
  5350.  
  5351. For example, if a sending field with PICTURE S99999, and containing the value 
  5352. +12345, is moved to a BINARY receiving field with PICTURE S99, the data is 
  5353. truncated to +45. For additional information see USAGE Clause. 
  5354.  
  5355.  
  5356. ΓòÉΓòÉΓòÉ 9.7.6. Signed Data ΓòÉΓòÉΓòÉ
  5357.  
  5358. There are two categories of algebraic signs used in COBOL: operational signs 
  5359. and editing signs. 
  5360.  
  5361. Operational signs (+, -) are associated with signed numeric items, and indicate 
  5362. their algebraic properties. The internal representation of an algebraic sign 
  5363. depends on the item's USAGE clause, and, optionally, upon its SIGN clause. Zero 
  5364. is considered a unique value, regardless of the operational sign. An unsigned 
  5365. field is always assumed to be either positive or zero. 
  5366.  
  5367. Editing signs are associated with numeric edited items; editing signs are 
  5368. PICTURE symbols (+, -, CR, DB) that identify the sign of the item in edited 
  5369. output. 
  5370.  
  5371.  
  5372. ΓòÉΓòÉΓòÉ 10. Data Division-File and Sort Description Entries ΓòÉΓòÉΓòÉ
  5373.  
  5374. In a COBOL program, the File Description (FD) Entry (or Sort Description (SD) 
  5375. Entry for sort/merge files) represents the highest level of organization in the 
  5376. File Section. 
  5377.  
  5378. The File Description (FD) Entry (or Sort Description (SD) Entry) has six 
  5379. formats: 
  5380.  
  5381.   Format 1 - Sequential File 
  5382.   Format 2 - Diskette File 
  5383.   Format 3 - Tapefile 
  5384.   Format 4 - Printer File 
  5385.   Format 5 - Sort or Merge Files 
  5386.    -----IBM Extension----- 
  5387.   Format 6 - Transaction File 
  5388.    ---End of IBM Extension--- 
  5389.  
  5390.  
  5391. ΓòÉΓòÉΓòÉ 10.1. File Description Entry - Format 1 - Sequential File ΓòÉΓòÉΓòÉ
  5392.  
  5393. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 1A - FORMATFILE, DATABASE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5394. Γöé                                        Γöé
  5395. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5396. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5397. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5398. Γöé                                        Γöé
  5399. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5400. Γöé   ΓööΓöÇBLOCKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5401. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger1ΓöÇΓöÇTOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ     Γöé
  5402. Γöé                            ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5403. Γöé                                        Γöé
  5404. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5405. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇinteger3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5406. Γöé        ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ     Γöé
  5407. Γöé                                        Γöé
  5408. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5409. Γöé   Γöé    (1)                   Γöé              Γöé
  5410. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5411. Γöé         Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  5412. Γöé         ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5413. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5414. Γöé                                        Γöé
  5415. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5416. Γöé   Γöé       (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé       Γöé
  5417. Γöé   Γöé                              Γöé Γöé       Γöé
  5418. Γöé   ΓööΓöÇVALUEΓöÇΓöÇOFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  5419. Γöé                    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ         Γöé
  5420. Γöé                                        Γöé
  5421. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><         Γöé
  5422. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5423. Γöé   Γöé                        Γöé Γöé             Γöé
  5424. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5425. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5426. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5427. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5428. Γöé                                        Γöé
  5429. Γöé NOTE:                                     Γöé
  5430. Γöé (1)  Syntax checked only                           Γöé
  5431. Γöé                                        Γöé
  5432. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5433.  
  5434. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 1B - DISK ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5435. Γöé                                        Γöé
  5436. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5437. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5438. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5439. Γöé                                        Γöé
  5440. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5441. Γöé   ΓööΓöÇBLOCKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5442. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger1ΓöÇΓöÇTOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ     Γöé
  5443. Γöé                            ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5444. Γöé                                        Γöé
  5445. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5446. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5447. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ       ΓööΓöÇCHARACTERSΓöÇΓöÿ        Γöé     Γöé
  5448. Γöé        Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ     Γöé
  5449. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ              ΓööΓöÇCHARACTERSΓöÇΓöÿ Γöé     Γöé
  5450. Γöé        ΓööΓöÇΓöñ varying Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5451. Γöé               ΓööΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÿ        Γöé
  5452. Γöé                      ΓööΓöÇONΓöÇΓöÿ                Γöé
  5453. Γöé                                        Γöé
  5454. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5455. Γöé   Γöé    (1)                   Γöé              Γöé
  5456. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5457. Γöé         Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  5458. Γöé         ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5459. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5460. Γöé                                        Γöé
  5461. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5462. Γöé   Γöé       (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé       Γöé
  5463. Γöé   Γöé                              Γöé Γöé       Γöé
  5464. Γöé   ΓööΓöÇVALUEΓöÇΓöÇOFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  5465. Γöé                    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ         Γöé
  5466. Γöé                                        Γöé
  5467. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><         Γöé
  5468. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5469. Γöé   Γöé                        Γöé Γöé             Γöé
  5470. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5471. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5472. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5473. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5474. Γöé                                        Γöé
  5475. Γöé VARYING:                                   Γöé
  5476. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5477. Γöé   ΓööΓöÇISΓöÇΓöÿ      ΓööΓöÇINΓöÇΓöÿ  ΓööΓöÇSIZEΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-4ΓöÇΓöÿ         Γöé
  5478. Γöé                     ΓööΓöÇFROMΓöÇΓöÿ               Γöé
  5479. Γöé                                        Γöé
  5480. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  5481. Γöé   ΓööΓöÇTOΓöÇΓöÇinteger-5ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ                     Γöé
  5482. Γöé                                        Γöé
  5483. Γöé NOTE:                                     Γöé
  5484. Γöé (1)  Syntax checked only                           Γöé
  5485. Γöé                                        Γöé
  5486. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5487.  
  5488.  
  5489. ΓòÉΓòÉΓòÉ 10.2. File Description Entry - Format 2 - Diskette File ΓòÉΓòÉΓòÉ
  5490.  
  5491. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 2 - DISKETTE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5492. Γöé                                        Γöé
  5493. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5494. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5495. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5496. Γöé                                        Γöé
  5497. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ> Γöé
  5498. Γöé   Γöé    (1)                              Γöé   Γöé
  5499. Γöé   ΓööΓöÇBLOCKΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ   Γöé
  5500. Γöé         ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger1ΓöÇΓöÇTOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ    Γöé
  5501. Γöé                              ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé
  5502. Γöé                                        Γöé
  5503. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5504. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇinteger3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5505. Γöé        ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ     Γöé
  5506. Γöé                                        Γöé
  5507. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5508. Γöé   Γöé    (1)                   Γöé              Γöé
  5509. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5510. Γöé         Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  5511. Γöé         ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5512. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5513. Γöé                                        Γöé
  5514. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5515. Γöé   Γöé       (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé       Γöé
  5516. Γöé   Γöé                              Γöé Γöé       Γöé
  5517. Γöé   ΓööΓöÇVALUEΓöÇΓöÇOFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  5518. Γöé                    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ         Γöé
  5519. Γöé                                        Γöé
  5520. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5521. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5522. Γöé   Γöé                        Γöé Γöé             Γöé
  5523. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5524. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5525. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5526. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5527. Γöé                                        Γöé
  5528. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                Γöé
  5529. Γöé   ΓööΓöÇCODE-SETΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-name-1ΓöÇΓöÿ                   Γöé
  5530. Γöé         ΓööΓöÇISΓöÇΓöÿ                             Γöé
  5531. Γöé                                        Γöé
  5532. Γöé NOTE:                                     Γöé
  5533. Γöé (1)  Syntax checked only                           Γöé
  5534. Γöé                                        Γöé
  5535. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5536.  
  5537.  
  5538. ΓòÉΓòÉΓòÉ 10.3. File Description Entry - Format 3 - Tapefile ΓòÉΓòÉΓòÉ
  5539.  
  5540. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 3 - TAPEFILE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5541. Γöé                                        Γöé
  5542. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5543. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5544. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5545. Γöé                                        Γöé
  5546. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5547. Γöé   ΓööΓöÇBLOCKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5548. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger1ΓöÇΓöÇTOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ     Γöé
  5549. Γöé                            ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5550. Γöé                                        Γöé
  5551. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5552. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5553. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ       ΓööΓöÇCHARACTERSΓöÇΓöÿ        Γöé     Γöé
  5554. Γöé        Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ     Γöé
  5555. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ              ΓööΓöÇCHARACTERSΓöÇΓöÿ Γöé     Γöé
  5556. Γöé        ΓööΓöÇΓöñ varying Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5557. Γöé               ΓööΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÿ        Γöé
  5558. Γöé                      ΓööΓöÇONΓöÇΓöÿ                Γöé
  5559. Γöé                                        Γöé
  5560. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5561. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ               Γöé
  5562. Γöé       Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ                Γöé
  5563. Γöé       ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                       Γöé
  5564. Γöé             ΓööΓöÇAREΓöÇΓöÿ                        Γöé
  5565. Γöé                                        Γöé
  5566. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5567. Γöé   Γöé       (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé       Γöé
  5568. Γöé   Γöé                              Γöé Γöé       Γöé
  5569. Γöé   ΓööΓöÇVALUEΓöÇΓöÇOFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  5570. Γöé                    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ         Γöé
  5571. Γöé                                        Γöé
  5572. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5573. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5574. Γöé   Γöé                        Γöé Γöé             Γöé
  5575. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5576. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5577. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5578. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5579. Γöé                                        Γöé
  5580. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                Γöé
  5581. Γöé   ΓööΓöÇCODE-SETΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-name-1ΓöÇΓöÿ                   Γöé
  5582. Γöé         ΓööΓöÇISΓöÇΓöÿ                             Γöé
  5583. Γöé                                        Γöé
  5584. Γöé VARYING:                                   Γöé
  5585. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5586. Γöé   ΓööΓöÇISΓöÇΓöÿ      ΓööΓöÇINΓöÇΓöÿ  ΓööΓöÇSIZEΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-4ΓöÇΓöÿ         Γöé
  5587. Γöé                     ΓööΓöÇFROMΓöÇΓöÿ               Γöé
  5588. Γöé                                        Γöé
  5589. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  5590. Γöé   ΓööΓöÇTOΓöÇΓöÇinteger-5ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ                     Γöé
  5591. Γöé                                        Γöé
  5592. Γöé NOTE:                                     Γöé
  5593. Γöé (1)  Syntax checked only                           Γöé
  5594. Γöé                                        Γöé
  5595. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5596.  
  5597.  
  5598. ΓòÉΓòÉΓòÉ 10.4. File Description Entry - Format 4 - Printer File ΓòÉΓòÉΓòÉ
  5599.  
  5600. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 4 - PRINTER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5601. Γöé                                        Γöé
  5602. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5603. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5604. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5605. Γöé                                        Γöé
  5606. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5607. Γöé   ΓööΓöÇBLOCKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5608. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger1ΓöÇΓöÇTOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ     Γöé
  5609. Γöé                            ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5610. Γöé                                        Γöé
  5611. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5612. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇinteger3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5613. Γöé        ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ     Γöé
  5614. Γöé                                        Γöé
  5615. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5616. Γöé   Γöé    (1)                   Γöé              Γöé
  5617. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5618. Γöé         Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  5619. Γöé         ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5620. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5621. Γöé                                        Γöé
  5622. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5623. Γöé   Γöé       (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé       Γöé
  5624. Γöé   Γöé                              Γöé Γöé       Γöé
  5625. Γöé   ΓööΓöÇVALUEΓöÇΓöÇOFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  5626. Γöé                    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ         Γöé
  5627. Γöé                                        Γöé
  5628. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5629. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5630. Γöé   Γöé                        Γöé Γöé             Γöé
  5631. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5632. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5633. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5634. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5635. Γöé                                        Γöé
  5636. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><    Γöé
  5637. Γöé   ΓööΓöÇΓöñ linage clause Γö£ΓöÇΓöÿ  ΓööΓöÇCODE-SETΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-name-1ΓöÇΓöÿ        Γöé
  5638. Γöé                    ΓööΓöÇISΓöÇΓöÿ                 Γöé
  5639. Γöé                                        Γöé
  5640. Γöé LINAGE CLAUSE:                                Γöé
  5641. Γöé Γö£ΓöÇΓöÇLINAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-3ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5642. Γöé       ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇinteger-8ΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇLINESΓöÇΓöÿ                 Γöé
  5643. Γöé                                        Γöé
  5644. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5645. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇFOOTINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-4ΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5646. Γöé    ΓööΓöÇWITHΓöÇΓöÿ      ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇinteger-9ΓöÇΓöÇΓöÇΓöÿ               Γöé
  5647. Γöé                                        Γöé
  5648. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5649. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTOPΓöÇΓöÇΓöÇΓö¼ΓöÇdata-name-5ΓöÇΓö¼ΓöÇΓöÿ               Γöé
  5650. Γöé    ΓööΓöÇLINESΓöÇΓöÿ  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ     ΓööΓöÇinteger-10ΓöÇΓöÇΓöÿ                Γöé
  5651. Γöé                                        Γöé
  5652. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ            Γöé
  5653. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇBOTTOMΓöÇΓöÇΓö¼ΓöÇdata-name-6ΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5654. Γöé    ΓööΓöÇLINESΓöÇΓöÿ  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ      ΓööΓöÇinteger-11ΓöÇΓöÇΓöÿ               Γöé
  5655. Γöé                                        Γöé
  5656. Γöé NOTE:                                     Γöé
  5657. Γöé (1)  Syntax checked only                           Γöé
  5658. Γöé                                        Γöé
  5659. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5660.  
  5661.  
  5662. ΓòÉΓòÉΓòÉ 10.5. Sort Description Entry - Format 5 - Sort or Merge Files ΓòÉΓòÉΓòÉ
  5663.  
  5664. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 5 - SORT/MERGE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5665. Γöé                                        Γöé
  5666. Γöé >>ΓöÇΓöÇSDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5667. Γöé                                        Γöé
  5668. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5669. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5670. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ       ΓööΓöÇCHARACTERSΓöÇΓöÿ        Γöé     Γöé
  5671. Γöé        Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ     Γöé
  5672. Γöé        Γöé ΓööΓöÇCONTAINSΓöÇΓöÿ              ΓööΓöÇCHARACTERSΓöÇΓöÿ Γöé     Γöé
  5673. Γöé        ΓööΓöÇΓöñ varying Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  5674. Γöé               ΓööΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÿ        Γöé
  5675. Γöé                      ΓööΓöÇONΓöÇΓöÿ                Γöé
  5676. Γöé                                        Γöé
  5677. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><         Γöé
  5678. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5679. Γöé   Γöé                        Γöé Γöé             Γöé
  5680. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5681. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5682. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5683. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5684. Γöé                                        Γöé
  5685. Γöé VARYING:                                   Γöé
  5686. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5687. Γöé   ΓööΓöÇISΓöÇΓöÿ      ΓööΓöÇINΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇSIZEΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-4ΓöÇΓöÿ        Γöé
  5688. Γöé                      ΓööΓöÇFROMΓöÇΓöÿ              Γöé
  5689. Γöé                                        Γöé
  5690. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  5691. Γöé   ΓööΓöÇTOΓöÇΓöÇinteger-5ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ                     Γöé
  5692. Γöé                                        Γöé
  5693. Γöé NOTE:                                     Γöé
  5694. Γöé (1)  Syntax checked only                           Γöé
  5695. Γöé                                        Γöé
  5696. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5697.  
  5698.  
  5699. ΓòÉΓòÉΓòÉ 10.6. File Description Entry - Format 6 - Transaction Files ΓòÉΓòÉΓòÉ
  5700.  
  5701. -----IBM Extension----- 
  5702.  
  5703. ΓöîΓöÇΓöÇΓöÇ FILE DESCRIPTION ENTRY - FORMAT 6 - TRANSACTION ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5704. Γöé                                        Γöé
  5705. Γöé >>ΓöÇΓöÇFDΓöÇΓöÇΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5706. Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ         Γöé
  5707. Γöé             ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ              Γöé
  5708. Γöé                                        Γöé
  5709. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  5710. Γöé   ΓööΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇinteger3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ    Γöé
  5711. Γöé        ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger6ΓöÇΓöÇTOΓöÇΓöÇinteger7ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ     Γöé
  5712. Γöé                                        Γöé
  5713. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5714. Γöé   Γöé    (1)                   Γöé              Γöé
  5715. Γöé   ΓööΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÿ              Γöé
  5716. Γöé         Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  5717. Γöé         ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5718. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5719. Γöé                                        Γöé
  5720. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><         Γöé
  5721. Γöé   Γöé    (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé             Γöé
  5722. Γöé   Γöé                        Γöé Γöé             Γöé
  5723. Γöé   ΓööΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ             Γöé
  5724. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                      Γöé
  5725. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  5726. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  5727. Γöé                                        Γöé
  5728. Γöé NOTE:                                     Γöé
  5729. Γöé (1)  Syntax checked only                           Γöé
  5730. Γöé                                        Γöé
  5731. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5732.  
  5733. ---End of IBM Extension--- 
  5734.  
  5735.  
  5736. ΓòÉΓòÉΓòÉ 10.7. File Section ΓòÉΓòÉΓòÉ
  5737.  
  5738. The File Section must contain a level indicator for each input and output file. 
  5739.  
  5740.   For all files except sort/merge, the File Section must contain an FD entry. 
  5741.    The last clause of an FD entry must be immediately followed by a separator 
  5742.    period. 
  5743.  
  5744.   For each sort or merge file, the File Section must contain an SD entry. The 
  5745.    last clause of an SD entry must be immediately followed by a separator 
  5746.    period. 
  5747.  
  5748.  
  5749. ΓòÉΓòÉΓòÉ 10.7.1. file-name ΓòÉΓòÉΓòÉ
  5750.  
  5751. Must follow the level indicator (FD or SD), and must be the same as that 
  5752. specified in the associated SELECT clause. The file-name must adhere to the 
  5753. rules of formation for a user-defined word: at least one character must be 
  5754. alphabetic. The file-name must be unique within this program. 
  5755.  
  5756. One or more record description entries must follow the file-name. When more 
  5757. than one record description entry is specified, each entry implies a 
  5758. redefinition of the same storage area. 
  5759.  
  5760. The clauses that follow file-name are optional; they may appear in any order. 
  5761.  
  5762.  
  5763. ΓòÉΓòÉΓòÉ 10.8. EXTERNAL Clause ΓòÉΓòÉΓòÉ
  5764.  
  5765. The EXTERNAL clause specifies that a file connector is external. 
  5766.  
  5767. ΓöîΓöÇΓöÇΓöÇ EXTERNAL CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5768. Γöé                                        Γöé
  5769. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÇ><                           Γöé
  5770. Γöé   ΓööΓöÇISΓöÇΓöÿ                                  Γöé
  5771. Γöé                                        Γöé
  5772. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5773. In a run unit, there is only one representation of an external file; an 
  5774. external file can be referenced by any program in the run unit that describes 
  5775. the file. 
  5776.  
  5777. In the File Section, the EXTERNAL clause can be specified only in file 
  5778. description entries. The records appearing in the file description entry need 
  5779. not have the same name in corresponding external file description entries. In 
  5780. addition, the number of such records need not be the same in corresponding file 
  5781. description entries. However, the maximum record length for corresponding 
  5782. external file description entries must be the same. 
  5783.  
  5784. For EXTERNAL files, the value of all BLOCK CONTAINS clauses of corresponding 
  5785. EXTERNAL files must match within the run unit. This conformance is in terms of 
  5786. character positions only - not upon whether the value was specified as 
  5787. CHARACTERS or as RECORDS. 
  5788.  
  5789. All file description entries in the run unit that are associated with an 
  5790. external file connector must have: 
  5791.  
  5792.   A LINAGE clause, if any file description entry has a LINAGE clause. 
  5793.  
  5794.   The same corresponding values for integer-8, integer-9, integer-10, and 
  5795.    integer-11, if specified. 
  5796.  
  5797.   The same corresponding external data items referenced by data-name-3, 
  5798.    data-name-4, data-name-5, and data-name-6. 
  5799.  
  5800.  Use of the EXTERNAL clause does not imply that the associated file-name is a 
  5801.  global name. 
  5802.  
  5803.  
  5804. ΓòÉΓòÉΓòÉ 10.8.1. Considerations for External Files ΓòÉΓòÉΓòÉ
  5805.  
  5806. In general, all definitions of an external file should be identical. If there 
  5807. is a mismatch, the program will fail at start up when the definitions are 
  5808. compared. The following attributes of external files are compared: 
  5809.  
  5810.   If any of the definitions corresponding to the file are externally described 
  5811.    (for example, by using Format 2 of the COPY statement), all other 
  5812.    definitions must also be externally described. The level check information 
  5813.    associated with all definitions must match. 
  5814.  
  5815.   The name specified on the ASSIGN TO clause must be the same for all 
  5816.    definitions. This includes the device type. 
  5817.  
  5818.   The ORGANIZATION and ACCESS modes must be the same for all definitions of 
  5819.    the file. 
  5820.  
  5821.   The OPTIONAL phrase, if specified, must be specified for all definitions of 
  5822.    the file. 
  5823.  
  5824.   The external data item specified for the RELATIVE KEY phrase must be in the 
  5825.    same physical location and occupy the same number of bytes for all 
  5826.    definitions of the file. 
  5827.  
  5828.   The location of the record key within the associated record must be the same 
  5829.    for all definitions of the file. 
  5830.  
  5831.   The blocking information associated with the file must be the same for all 
  5832.    file definitions. This includes whether blocking is to be performed and the 
  5833.    size of the block. 
  5834.  
  5835.   The values for the maximum or minimum number of characters on the RECORD 
  5836.    clause must be the same for all definitions of the file. 
  5837.  
  5838.   The character set specified on the CODE-SET clause must be the same for all 
  5839.    definitions of the file. 
  5840.  
  5841.   The value specified for the DUPLICATES phrase must be the same for all 
  5842.    definitions of the file. 
  5843.  
  5844.   All of the values specified for the LINAGE clause must be the same for each 
  5845.    definition of the file. 
  5846.  
  5847.   The specification of the attribute for the ASSIGN clause (separate 
  5848.    indicators) must be the same for all definitions of the file. 
  5849.  
  5850.   The specification for the COMMITMENT CONTROL clause must be the same for all 
  5851.    definitions of the file. 
  5852.  
  5853.   The specification for the *DUPKEYCHK or the *INZDLT compile-time option must 
  5854.    be the same for all modules containing definitions of the file. 
  5855.  
  5856.  
  5857. ΓòÉΓòÉΓòÉ 10.9. GLOBAL Clause ΓòÉΓòÉΓòÉ
  5858.  
  5859. The GLOBAL clause specifies that the file connector named by a file-name is a 
  5860. global name. 
  5861.  
  5862. ΓöîΓöÇΓöÇΓöÇ GLOBAL CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5863. Γöé                                        Γöé
  5864. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÇ><                            Γöé
  5865. Γöé   ΓööΓöÇISΓöÇΓöÿ                                  Γöé
  5866. Γöé                                        Γöé
  5867. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5868. A global file-name is available to the program that declares it and to every 
  5869. program that is contained directly or indirectly in that program. 
  5870.  
  5871. A file-name is global if the GLOBAL clause is specified in the file description 
  5872. entry for that file-name.  A record-name is global if the GLOBAL clause is 
  5873. specified in the record description entry by which the record-name is declared 
  5874. or, in the case of record description entries in the File Section, if the 
  5875. GLOBAL clause is specified in the file description entry for the file-name 
  5876. associated with the record description entry. 
  5877.  
  5878.  
  5879. ΓòÉΓòÉΓòÉ 10.10. BLOCK CONTAINS Clause ΓòÉΓòÉΓòÉ
  5880.  
  5881. The BLOCK CONTAINS clause specifies the size of the physical records. 
  5882.  
  5883. ΓöîΓöÇΓöÇΓöÇ BLOCK CONTAINS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5884. Γöé                                        Γöé
  5885. Γöé >>ΓöÇΓöÇBLOCKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  5886. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ  ΓööΓöÇinteger-1ΓöÇΓöÇ TOΓöÇΓöÿ       Γö£ΓöÇCHARACTERSΓöÇΓöñ    Γöé
  5887. Γöé                             ΓööΓöÇRECORDSΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé
  5888. Γöé                                        Γöé
  5889. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5890.  
  5891. This clause can be omitted when each physical record contains only one complete 
  5892. logical record. 
  5893.  
  5894. This clause is syntax checked for FORMATFILE and printer files. To activate 
  5895. this clause for other types of files, use OPTION parameter value *BLK, or 
  5896. PROCESS option BLK. 
  5897.  
  5898.  
  5899. ΓòÉΓòÉΓòÉ 10.10.1. CHARACTERS ΓòÉΓòÉΓòÉ
  5900.  
  5901. Specifies the number of character positions required to store the physical 
  5902. record, no matter what USAGE the characters have within the data record. 
  5903.  
  5904. If only integer-2 is specified, it specifies the exact character size of the 
  5905. physical record. When integer-1 and integer-2 are both specified, they 
  5906. represent, respectively, the minimum and maximum character sizes of the 
  5907. physical record. 
  5908.  
  5909. Integer-1 and integer-2 must include any control bytes and padding contained in 
  5910. the physical record. (Logical records do not include padding.) 
  5911.  
  5912. For non-tape files, only integer-2 controls the blocking factor. If integer-2 
  5913. is zero, the system default blocking factor applies. 
  5914.  
  5915. The CHARACTERS phrase is the default. CHARACTERS must be specified when the 
  5916. physical record contains padding. 
  5917.  
  5918. In general, the length of a variable length record on a RELEASE, REWRITE, or 
  5919. WRITE statement is determined by data-name-1, if specified. If data-name-1 is 
  5920. not specified and the record description does not contain a table, the length 
  5921. is the number of characters in the record description. If data-name-1 is not 
  5922. specified and the record contains a table, the length is the sum of the fixed 
  5923. part of the record and the current length of the table. 
  5924.  
  5925. When variable length records are used for disk files, the BLOCK CONTAINS clause 
  5926. specifies the size of the block. The size of the actual record is contained in 
  5927. data-name-1 after a READ operation. To WRITE a variable length record, 
  5928. data-name-1 must be set to the length of the record. 
  5929.  
  5930. For tape files, each variable record contains a four-byte header and each block 
  5931. contains a four-byte header when the data is transferred to tape. However, 
  5932. these four-byte headers are provided by the system and are of no concern to the 
  5933. COBOL user except that the maximum size of a variable record is restricted to 
  5934. 32 764. 
  5935.  
  5936. When variable records are used for tape files, the BLOCK CONTAINS clause 
  5937. specifies the maximum physical record length, while the logical record length 
  5938. for each record is inferred by the compiler from the record name used in a 
  5939. WRITE statement. If an explicit length is required after a READ statement, the 
  5940. user can obtain it through the I-O-FEEDBACK mnemonic-name. 
  5941.  
  5942.  
  5943. ΓòÉΓòÉΓòÉ 10.10.2. RECORDS ΓòÉΓòÉΓòÉ
  5944.  
  5945. Specifies the number of logical records contained in each physical record. 
  5946.  
  5947. Maximum record size is 32 767; maximum block size is 32 767. These maximums 
  5948. include any control bytes required for variable blocked records; thus, the 
  5949. maximum size data record for a variable-blocked record is 32 759. 
  5950.  
  5951.  
  5952. ΓòÉΓòÉΓòÉ 10.11. RECORD Clause ΓòÉΓòÉΓòÉ
  5953.  
  5954. The RECORD clause specifies the number of character positions for fixed-length 
  5955. or variable-length records. 
  5956.  
  5957. The RECORD clause has three formats: 
  5958.  
  5959.   Format 1 - for fixed-length records 
  5960.   Format 2 - for variable-length records 
  5961.   Format 3 - for fixed-length records or variable-length records 
  5962.  
  5963.  Related Information: 
  5964.  
  5965.   General considerations for all three formats. 
  5966.  
  5967.  
  5968. ΓòÉΓòÉΓòÉ 10.11.1. RECORD clause - Format 1 ΓòÉΓòÉΓòÉ
  5969.  
  5970. Format 1 specifies the number of character positions for fixed length records. 
  5971.  
  5972. ΓöîΓöÇΓöÇΓöÇ RECORD CLAUSE - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5973. Γöé                                        Γöé
  5974. Γöé >>ΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  5975. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ       ΓööΓöÇCHARACTERSΓöÇΓöÿ              Γöé
  5976. Γöé                                        Γöé
  5977. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  5978.  
  5979. When the maximum record length determined from the record description entries 
  5980. does not match the length specified in the RECORD clause, the maximum will be 
  5981. used. 
  5982.  
  5983.  
  5984. ΓòÉΓòÉΓòÉ 10.11.2. RECORD clause - Format 2 ΓòÉΓòÉΓòÉ
  5985.  
  5986. Format 2 is the recommended format when dealing with variable records. 
  5987.  
  5988. ΓöîΓöÇΓöÇΓöÇ RECORD CLAUSE - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  5989. Γöé                                        Γöé
  5990. Γöé >>ΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5991. Γöé       ΓööΓöÇISΓöÇΓöÿ      ΓööΓöÇINΓöÇΓöÿ  ΓööΓöÇSIZEΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-4ΓöÇΓöÿ    Γöé
  5992. Γöé                          ΓööΓöÇFROMΓöÇΓöÿ           Γöé
  5993. Γöé                                        Γöé
  5994. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  5995. Γöé   ΓööΓöÇTOΓöÇΓöÇinteger-5ΓöÇΓöÿ  ΓööΓöÇCHARACTERSΓöÇΓöÿ                     Γöé
  5996. Γöé                                        Γöé
  5997. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                   Γöé
  5998. Γöé   ΓööΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-1ΓöÇΓöÿ                     Γöé
  5999. Γöé         ΓööΓöÇONΓöÇΓöÿ                            Γöé
  6000. Γöé                                        Γöé
  6001. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6002.  
  6003. The number of character positions associated with a record description is 
  6004. determined by the sum of the number of character positions in all elementary 
  6005. data items (excluding redefinitions and renamings), plus any implicit FILLER 
  6006. due to synchronization. 
  6007.  
  6008. If a table is specified, the minimum and maximum number of table elements 
  6009. described in the record are used in the summation above, to determine the 
  6010. minimum and maximum number of character positions associated with the record 
  6011. description. 
  6012.  
  6013. If the number of character positions in the logical record to be written is 
  6014. less than integer-4 or greater than integer-5, the output statement is 
  6015. unsuccessful and, except during execution of a RELEASE statement, the 
  6016. associated I-O status key is set to a value indicating the cause of the 
  6017. condition. 
  6018.  
  6019. During the execution of a RELEASE, REWRITE, or WRITE statement, the number of 
  6020. character positions in the record is determined by the following conditions: 
  6021.  
  6022.   If data-name-1 is specified, by the content of the data item referenced by 
  6023.    data-name-1. 
  6024.  
  6025.   If data-name-1 is not specified and the record does not contain a variable 
  6026.    occurrence data item, by the number of character positions in the record. 
  6027.  
  6028.   If data-name-1 is not specified and the record contains a variable 
  6029.    occurrence data item, by the sum of the fixed portion and that portion of 
  6030.    the table described by the number of occurrences at the time of execution of 
  6031.    the output statement. 
  6032.  
  6033.  During the execution of a READ ... INTO or RETURN ... INTO statement, the 
  6034.  number of character positions in the current record that participate as the 
  6035.  sending data items in the implicit MOVE statement is determined by the 
  6036.  following conditions: 
  6037.  
  6038.   If data-name-1 is specified, by the content of the data item referenced by 
  6039.    data-name-1. 
  6040.  
  6041.   If data-name-1 is not specified, by the value that would have been moved 
  6042.    into the data item referenced by data-name-1 had data-name-1 been specified. 
  6043.  
  6044.  
  6045. ΓòÉΓòÉΓòÉ 10.11.3. RECORD clause - Format 3 ΓòÉΓòÉΓòÉ
  6046.  
  6047. Format 3 specifies the number of character positions for either fixed or 
  6048. variable length records. (The latter is only applicable to tape files.) 
  6049.  
  6050. ΓöîΓöÇΓöÇΓöÇ RECORD CLAUSE - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6051. Γöé                                        Γöé
  6052. Γöé >>ΓöÇΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-6ΓöÇΓöÇTO ΓöÇΓöÇinteger-7ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><    Γöé
  6053. Γöé       ΓööΓöÇCONTAINSΓöÇΓöÿ               ΓööΓöÇCHARACTERSΓöÇΓöÿ      Γöé
  6054. Γöé                                        Γöé
  6055. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6056.  
  6057. For Tape Files 
  6058.  
  6059. In this case, the records are variable, and the following descriptions apply. 
  6060.  
  6061. For All Other Files 
  6062.  
  6063. If Format 3 is used for non-tape files, the records are treated as fixed length 
  6064. records the size of the largest data record. The logical records are truncated 
  6065. or padded to the length of the record as defined in the CRTxxxF CL command. 
  6066. User length in the following table is defined as the largest record associated 
  6067. with the given file, as specified by its record description. 
  6068.  
  6069. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6070. Γöé        Γöé USER LENGTH LESS Γöé USER LENGTH           Γöé
  6071. Γöé INPUT/OUTPUT Γöé THAN FILE RECORD Γöé GREATER THAN          Γöé
  6072. Γöé TYPE     Γöé LENGTH      Γöé FILE RECORD LENGTH       Γöé
  6073. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6074. Γöé Input     Γöé Truncation    Γöé Pad with blanks.        Γöé
  6075. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6076. Γöé Output    Γöé Pad with blanks  Γöé Truncation if old file (non-  Γöé
  6077. Γöé        Γöé          Γöé empty); for new (empty files)  Γöé
  6078. Γöé        Γöé          Γöé the larger record length is   Γöé
  6079. Γöé        Γöé          Γöé used.              Γöé
  6080. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6081.  
  6082. Note:   The maximum record length for a file is 32 767. 
  6083.  
  6084.  
  6085. ΓòÉΓòÉΓòÉ 10.11.4. General Considerations for all Formats ΓòÉΓòÉΓòÉ
  6086.  
  6087. When the RECORD clause is used, the record size must be specified as the number 
  6088. of character positions needed to store the record internally. That is, it must 
  6089. specify the number of bytes occupied internally by the characters of the 
  6090. record, not the number of characters used to represent the data item within the 
  6091. record. The size of a record is determined according to the rules for obtaining 
  6092. the size of a group item. 
  6093.  
  6094. When the RECORD clause is omitted, the compiler determines the record lengths 
  6095. from the record descriptions. When one of the entries within a record 
  6096. description contains an OCCURS DEPENDING ON clause, the compiler uses the 
  6097. maximum value of the variable-length item to calculate the number of character 
  6098. positions needed to store the record internally. 
  6099.  
  6100. If the associated file connector is an external file connector, all file 
  6101. description entries in the run unit that are associated with that file 
  6102. connector must specify the same maximum number of character positions. 
  6103.  
  6104.  
  6105. ΓòÉΓòÉΓòÉ 10.12. LABEL RECORDS Clause ΓòÉΓòÉΓòÉ
  6106.  
  6107. The LABEL RECORDS clause indicates the presence or absence of labels. 
  6108. FD -Format 3 (TAPEFILE) is the only format in which this clause is not syntax 
  6109. checked.  For all other FD formats, this clause is syntax checked only, then 
  6110. treated as documentation. 
  6111.  
  6112. ΓöîΓöÇΓöÇΓöÇ LABEL RECORDS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6113. Γöé                                        Γöé
  6114. Γöé      (1)                                 Γöé
  6115. Γöé >>ΓöÇΓöÇLABELΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇSTANDARDΓöÇΓö¼ΓöÇΓöÇ><             Γöé
  6116. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé  ΓööΓöÇOMITTEDΓöÇΓöÇΓöÿ               Γöé
  6117. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                      Γöé
  6118. Γöé              ΓööΓöÇAREΓöÇΓöÿ                       Γöé
  6119. Γöé                                        Γöé
  6120. Γöé NOTE:                                     Γöé
  6121. Γöé (1)  Syntax checked only                           Γöé
  6122. Γöé                                        Γöé
  6123. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6124.  
  6125. If it is not specified for a file, label records for that file must conform to 
  6126. the system label specifications. 
  6127.  
  6128.  
  6129. ΓòÉΓòÉΓòÉ 10.13. VALUE OF Clause ΓòÉΓòÉΓòÉ
  6130.  
  6131. The VALUE OF clause describes an item in the label records associated with this 
  6132. file. The clause is syntax checked, then treated as documentation. 
  6133.  
  6134. ΓöîΓöÇΓöÇΓöÇ VALUE OF CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6135. Γöé                                        Γöé
  6136. Γöé        (1) ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ          Γöé
  6137. Γöé                               Γöé          Γöé
  6138. Γöé >>ΓöÇΓöÇVALUE OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇsystem-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><        Γöé
  6139. Γöé                  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÿ           Γöé
  6140. Γöé                                        Γöé
  6141. Γöé NOTE:                                     Γöé
  6142. Γöé (1)  Syntax checked only                           Γöé
  6143. Γöé                                        Γöé
  6144. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6145.  
  6146.  
  6147. ΓòÉΓòÉΓòÉ 10.14. DATA RECORDS Clause ΓòÉΓòÉΓòÉ
  6148.  
  6149. The DATA RECORDS clause is syntax checked and it serves only as documentation 
  6150. for the names of data records associated with this file. 
  6151.  
  6152. ΓöîΓöÇΓöÇΓöÇ DATA RECORDS CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6153. Γöé                                        Γöé
  6154. Γöé      (1)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ              Γöé
  6155. Γöé                          Γöé              Γöé
  6156. Γöé >>ΓöÇΓöÇDATAΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇRECORDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÇ><            Γöé
  6157. Γöé        Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                       Γöé
  6158. Γöé        ΓööΓöÇRECORDSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                       Γöé
  6159. Γöé             ΓööΓöÇAREΓöÇΓöÿ                        Γöé
  6160. Γöé                                        Γöé
  6161. Γöé NOTE:                                     Γöé
  6162. Γöé (1)  Syntax checked only                           Γöé
  6163. Γöé                                        Γöé
  6164. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6165.  
  6166. The specification of more than one data-name indicates that this file contains 
  6167. more than one type of data record. Two or more record descriptions for this 
  6168. file occupy the same storage area. These records need not have the same 
  6169. description or length. The order in which the data-names are listed is not 
  6170. significant. 
  6171.  
  6172.  
  6173. ΓòÉΓòÉΓòÉ 10.15. LINAGE Clause ΓòÉΓòÉΓòÉ
  6174.  
  6175. The LINAGE clause specifies the depth of a logical page in terms of number of 
  6176. lines. Optionally, it also specifies the line number at which the footing area 
  6177. begins, as well as the top and bottom margins of the logical page. (The logical 
  6178. page and the physical page don't necessarily have to be of the same size.) 
  6179.  
  6180. The LINAGE clause can be specified only for files assigned to the device 
  6181. PRINTER.  See ASSIGN Clause. 
  6182.  
  6183. AS/400 printer files offer a number of powerful features through DDS that can 
  6184. be used to advantage. Such files are declared in COBOL/400 programs as 
  6185. FORMATFILE. For more information on printer files, see the DDS Reference. 
  6186.  
  6187. ΓöîΓöÇΓöÇΓöÇ LINAGE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6188. Γöé                                        Γöé
  6189. Γöé >>ΓöÇΓöÇLINAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-3ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6190. Γöé       ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇinteger-8ΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇLINESΓöÇΓöÿ                Γöé
  6191. Γöé                                        Γöé
  6192. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6193. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇFOOTINGΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇdata-name-4ΓöÇΓö¼ΓöÇΓöÇΓöÿ              Γöé
  6194. Γöé    ΓööΓöÇWITHΓöÇΓöÿ     ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇinteger-9ΓöÇΓöÇΓöÇΓöÿ               Γöé
  6195. Γöé                                        Γöé
  6196. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6197. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTOPΓöÇΓöÇΓöÇΓö¼ΓöÇdata-name-5ΓöÇΓö¼ΓöÇΓöÿ               Γöé
  6198. Γöé    ΓööΓöÇLINESΓöÇΓöÿ  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ     ΓööΓöÇinteger-10ΓöÇΓöÇΓöÿ                Γöé
  6199. Γöé                                        Γöé
  6200. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  6201. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇBOTTOMΓöÇΓöÇΓö¼ΓöÇdata-name-6ΓöÇΓö¼ΓöÇΓöÿ              Γöé
  6202. Γöé    ΓööΓöÇLINESΓöÇΓöÿ  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ      ΓööΓöÇinteger-11ΓöÇΓöÇΓöÿ               Γöé
  6203. Γöé                                        Γöé
  6204. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6205.  
  6206. The LINAGE clause does not affect the number of lines in the selected device 
  6207. file; it only affects the logical page mechanism within the COBOL program. 
  6208.  
  6209. At execution time, the printer file being used determines the physical page 
  6210. size.  This information is used to issue appropriate space and eject commands 
  6211. to produce the logical page as defined in the LINAGE clause.  Thus, the logical 
  6212. page can contain multiple physical pages, or one physical page can contain 
  6213. multiple logical pages. 
  6214.  
  6215. All integers must be unsigned. All data-names must be described as unsigned 
  6216. integer data items. 
  6217.  
  6218. Related Information: 
  6219.  
  6220.   Illustration of LINAGE clause phrases 
  6221.   LINAGE-COUNTER Special Register 
  6222.  
  6223.  
  6224. ΓòÉΓòÉΓòÉ 10.15.1. Illustration of LINAGE clause phrases ΓòÉΓòÉΓòÉ
  6225.  
  6226. LINAGE Clause Phrases 
  6227.  
  6228. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6229. Γöé)                                  Γöé
  6230. Γöé) LINES AT TOP integerΓöÇ10 (top margin)           Γöé    Γöé
  6231. Γöé)                              Γöé    Γöé
  6232. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6233. Γöé                              Γöé    Γöé
  6234. Γöé                       Γöé       Γöé    Γöé
  6235. Γöé                       Γöé      logical   Γöé
  6236. Γöé                     page body   page depth  Γöé
  6237. Γöé                       Γöé       Γöé    Γöé
  6238. Γöé                       Γöé       Γöé    Γöé
  6239. Γöé                       Γöé       Γöé    Γöé
  6240. Γöé  WITH FOOTING integerΓöÇ9 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6241. Γöé                        Γöé       Γöé    Γöé
  6242. Γöé              footing area    Γöé       Γöé    Γöé
  6243. Γöé                               Γöé    Γöé
  6244. Γöé  LINAGE integerΓöÇ8 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  6245. Γöé)                              Γöé    Γöé
  6246. Γöé)  LINES AT BOTTOM integerΓöÇ11 (bottomΓöémargin)        Γöé    Γöé
  6247. Γöé)                                  Γöé
  6248. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6249.  
  6250. The logical page size specified in the LINAGE clause is the sum of all values 
  6251. specified in each phrase except the FOOTING phrase. If the LINES AT TOP and/or 
  6252. the LINES AT BOTTOM phrase is omitted, the assumed value for top and bottom 
  6253. margins is zero. Each logical page immediately follows the preceding logical 
  6254. page, with no additional spacing provided. 
  6255.  
  6256. If the FOOTING phrase is specified and the value of data-name-4 or integer-9 is 
  6257. equal to the LINAGE value of data-name-3 or integer-8, one line (the last line 
  6258. of the logical page) is available for footing information. 
  6259.  
  6260. If the FOOTING phrase is omitted, its assumed value is equal to that of the 
  6261. page body (integer-8 or data-name-3). 
  6262.  
  6263. At the time an OPEN OUTPUT statement is executed, the values of integer-8, 
  6264. integer-9, integer-10, and integer-11, if specified, are used to determine the 
  6265. page body, first footing line, top margin, and bottom margin of the logical 
  6266. page for this file. See LINAGE Clause Phrases. These values are then used for 
  6267. all logical pages printed for this file during a given execution of the 
  6268. program. 
  6269.  
  6270. At the time an OPEN statement with the OUTPUT phrase is executed for the file, 
  6271. data-name-3, data-name-4, data-name-5, and data-name-6 determine the page body, 
  6272. first footing line, top margin, and bottom margin for the first logical page 
  6273. only. 
  6274.  
  6275. At the time a WRITE statement with the ADVANCING PAGE phrase is executed or a 
  6276. page overflow condition occurs, the values of data-name-3, data-name-4, 
  6277. data-name-5, and data-name-6, if specified, are used to determine the page 
  6278. body, first footing line, top margin, and bottom margin for the next logical 
  6279. page. 
  6280.  
  6281.  
  6282. ΓòÉΓòÉΓòÉ 10.15.2. LINAGE-COUNTER Special Register ΓòÉΓòÉΓòÉ
  6283.  
  6284. A separate LINAGE-COUNTER special register is generated for each FD entry 
  6285. containing a LINAGE clause (when more than one is generated, you must qualify 
  6286. each LINAGE-COUNTER with its related file-name). 
  6287.  
  6288. The implicit description of LINAGE-COUNTER is one of the following: 
  6289.  
  6290.   If the LINAGE clause specifies data-name-3, LINAGE-COUNTER has the same 
  6291.    PICTURE and USAGE as data-name-3. 
  6292.  
  6293.   If the LINAGE clause specifies integer-8, LINAGE-COUNTER is a binary item 
  6294.    large enough to hold the binary representation of integer-8. 
  6295.  
  6296.  The value in LINAGE-COUNTER at any given time is the line number at which the 
  6297.  device is positioned within the current page. LINAGE-COUNTER may be referred 
  6298.  to in Procedure Division statements; it cannot be modified by them. 
  6299.  
  6300.  LINAGE-COUNTER is initialized to 1 when an OPEN statement for this file is 
  6301.  executed. 
  6302.  
  6303.  LINAGE-COUNTER is automatically modified by any WRITE statement for this file. 
  6304.  (See WRITE Statement.) 
  6305.  
  6306.  If the file description for a sequential file contains the LINAGE clause and 
  6307.  the EXTERNAL clause, the LINAGE-COUNTER data item is an external data item. 
  6308.  Similarly, if it contains the LINAGE and GLOBAL clauses, the LINAGE-COUNTER 
  6309.  data item is a global data item. 
  6310.  
  6311.  
  6312. ΓòÉΓòÉΓòÉ 10.16. CODE-SET Clause ΓòÉΓòÉΓòÉ
  6313.  
  6314. The CODE-SET clause specifies the character code used to represent data on 
  6315. DISKETTE and TAPEFILE. 
  6316.  
  6317. ΓöîΓöÇΓöÇΓöÇ CODE-SET CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6318. Γöé                                        Γöé
  6319. Γöé >>ΓöÇΓöÇCODE-SETΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-name-1ΓöÇΓöÇ><                   Γöé
  6320. Γöé        ΓööΓöÇISΓöÇΓöÿ                             Γöé
  6321. Γöé                                        Γöé
  6322. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6323.  
  6324. When the CODE-SET clause is specified, an alphabet-name identifies the 
  6325. character code convention used to represent data on the input-output device. 
  6326.  
  6327. The CODE-SET clause also specifies the algorithm for converting the character 
  6328. codes on the input-output medium from/to the internal EBCDIC character set. 
  6329.  
  6330. Alphabet-name-1 must be defined in the SPECIAL-NAMES paragraph as STANDARD-1 
  6331. (for ASCII-encoded files), STANDARD-2 (for ISO 7-bit encoded files), NATIVE 
  6332. (for EBCDIC-encoded files), or EBCDIC (for EBCDIC-encoded files). When NATIVE 
  6333. is specified, the CODE-SET clause is syntax checked, but it has no effect on 
  6334. the execution of the program. 
  6335.  
  6336. When the CODE-SET clause is specified for a file, all data in this file must 
  6337. have USAGE DISPLAY, and, if signed numeric data is present, it must be 
  6338. described with the SIGN IS SEPARATE clause. 
  6339.  
  6340. When the CODE-SET clause is omitted, the EBCDIC character set is assumed. 
  6341.  
  6342. Note:   The AS/400 system only supports ASCII and ISO for tape and diskette 
  6343.         files. Therefore, if the CODE-SET clause specifies a character code set 
  6344.         of STANDARD-1 (ASCII), or STANDARD-2 (ISO) for a file that is not a 
  6345.         tape or diskette file, a warning message is issued and the EBCDIC 
  6346.         character set will be used. 
  6347.  
  6348.  -----IBM Extension----- 
  6349.  
  6350.  If the CODE-SET clause is omitted, the CODE parameter of the Create Diskette 
  6351.  File (CRTDKTF) or the Create Tape File (CRTTAPF) CL command is used. 
  6352.  
  6353.  The CODE-SET clause can be changed at execution time by specifying the CODE 
  6354.  parameter on the Override with Diskette File (OVRDKTF) or the Override with 
  6355.  Tape File (OVRTAPF) CL command. 
  6356.  
  6357.  ---End of IBM Extension--- 
  6358.  
  6359.  
  6360. ΓòÉΓòÉΓòÉ 11. Data Division-Data Description Entry ΓòÉΓòÉΓòÉ
  6361.  
  6362. A data description entry specifies the characteristics of a data item. Data 
  6363. items have attributes, which may be either implicit (default values), or 
  6364. explicit. 
  6365.  
  6366. This section describes the coding of data description entries and record 
  6367. description entries (which are sets of data description entries). The single 
  6368. term data description entry is used in this section to refer to data and record 
  6369. description entries. 
  6370.  
  6371. Data description entries that define independent data items do not make up a 
  6372. record. These are known as data item description entries. 
  6373.  
  6374. The data description entry has four general formats. 
  6375.  
  6376.   Format 1 is used for data description entries in all Data Division sections. 
  6377.   Format 2 regroups previously defined items. 
  6378.   Format 3 describes condition names. 
  6379.    -----IBM Extension----- 
  6380.   Format 4 describes boolean data items. 
  6381.    ---End of IBM Extension--- 
  6382.  
  6383.  
  6384. ΓòÉΓòÉΓòÉ 11.1. Format 1 ΓòÉΓòÉΓòÉ
  6385.  
  6386. Format 1 is used for data description entries in all Data Division sections. 
  6387. Level-number in this format can be any number from 01-49, as well as 77. 
  6388.  
  6389. ΓöîΓöÇΓöÇΓöÇ DATA DESCRIPTION ENTRY - GENERAL FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6390. Γöé                                        Γöé
  6391. Γöé >>ΓöÇΓöÇlevel-numberΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6392. Γöé          Γö£ΓöÇdata-name-1ΓöÇΓöñ                       Γöé
  6393. Γöé          ΓööΓöÇFILLERΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  6394. Γöé                                        Γöé
  6395. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6396. Γöé   Γö£ΓöÇREDEFINESΓöÇΓöÇdata-name-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ       Γöé
  6397. Γöé   Γöé    (1)               Γöé   ΓööΓöÇISΓöÇΓöÿ             Γöé
  6398. Γöé   ΓööΓöÇLIKEΓöÇΓöÇΓöÇΓöÇΓöÇdata-name-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  6399. Γöé               ΓööΓöÇ(integer)ΓöÇΓöÿ                   Γöé
  6400. Γöé                                        Γöé
  6401. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6402. Γöé   ΓööΓöÇBLANKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇZEROΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ               Γöé
  6403. Γöé       ΓööΓöÇWHENΓöÇΓöÿ       ΓööΓöÇISΓöÇΓöÿ                    Γöé
  6404. Γöé                                        Γöé
  6405. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6406. Γöé   ΓööΓöÇΓö¼ΓöÇJUSTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  Γö£ΓöÇΓöñ OCCURS clause - Format 1 Γö£ΓöÇΓöñ     Γöé
  6407. Γöé    ΓööΓöÇJUSTIFIEDΓöÇΓöÿ  Γöé    (2)Γöé   ΓööΓöÇΓöñ OCCURS clause - Format 2 Γö£ΓöÇΓöÿ     Γöé
  6408. Γöé           ΓööΓöÇRIGHTΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  6409. Γöé                                        Γöé
  6410. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6411. Γöé   ΓööΓöÇΓö¼ΓöÇPICTUREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇcharacter-stringΓöÇΓöÿ                 Γöé
  6412. Γöé    ΓööΓöÇPICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                           Γöé
  6413. Γöé                                        Γöé
  6414. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6415. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇLEADINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ      Γöé
  6416. Γöé    ΓööΓöÇSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇTRAILINGΓöÇΓöÿ  ΓööΓöÇSEPARATEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ       Γöé
  6417. Γöé        ΓööΓöÇISΓöÇΓöÿ                ΓööΓöÇCHARACTERΓöÇΓöÿ        Γöé
  6418. Γöé                                        Γöé
  6419. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6420. Γöé   ΓööΓöÇVALUEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteralΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇSYNCHRONIZEDΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ       Γöé
  6421. Γöé       ΓööΓöÇISΓöÇΓöÿ        ΓööΓöÇSYNCΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé    (2) Γöé        Γöé
  6422. Γöé                           Γö£ΓöÇLEFTΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  6423. Γöé                           Γöé    (2)Γöé        Γöé
  6424. Γöé                           ΓööΓöÇRIGHTΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  6425. Γöé                                        Γöé
  6426. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  6427. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇBINARYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  6428. Γöé    ΓööΓöÇUSAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  Γö£ΓöÇCOMPUTATIONALΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6429. Γöé        ΓööΓöÇISΓöÇΓöÿ   Γö£ΓöÇCOMPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6430. Γöé             Γöé         (1)  Γöé               Γöé
  6431. Γöé             Γö£ΓöÇCOMPUTATIONAL-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6432. Γöé             Γöé     (1)      Γöé               Γöé
  6433. Γöé             Γö£ΓöÇCOMP-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6434. Γöé             Γöé         (1)  Γöé               Γöé
  6435. Γöé             Γö£ΓöÇCOMPUTATIONAL-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6436. Γöé             Γöé     (1)      Γöé               Γöé
  6437. Γöé             Γö£ΓöÇCOMP-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6438. Γöé             Γö£ΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6439. Γöé             Γö£ΓöÇINDEXΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6440. Γöé             Γö£ΓöÇPACKED-DECIMALΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6441. Γöé             Γöé     (1)      Γöé               Γöé
  6442. Γöé             Γö£ΓöÇPOINTERΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  6443. Γöé             Γöé          (1)Γöé               Γöé
  6444. Γöé             ΓööΓöÇPROCEDURE-POINTERΓöÇΓöÇΓöÇΓöÇΓöÿ               Γöé
  6445. Γöé                                        Γöé
  6446. Γöé OCCURS CLAUSE - FORMAT 1:                           Γöé
  6447. Γöé Γö£ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ key-indexed-by phrase Γö£ΓöÇΓöÇΓöñ         Γöé
  6448. Γöé            ΓööΓöÇTIMESΓöÇΓöÿ                        Γöé
  6449. Γöé                                        Γöé
  6450. Γöé OCCURS CLAUSE - FORMAT 2:                           Γöé
  6451. Γöé Γö£ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-1ΓöÇΓöÇTOΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6452. Γöé                    ΓööΓöÇTIMESΓöÇΓöÿ       ΓööΓöÇONΓöÇΓöÿ       Γöé
  6453. Γöé                                        Γöé
  6454. Γöé >ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓöñ key-indexed-by phrase Γö£ΓöÇΓöÇΓöñ                 Γöé
  6455. Γöé                                        Γöé
  6456. Γöé KEY-INDEXED-BY PHRASE:                            Γöé
  6457. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ        Γöé
  6458. Γöé                                 Γöé        Γöé
  6459. Γöé Γö£ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6460. Γöé    Γöé       (3)            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé         Γöé
  6461. Γöé    Γöé                           Γöé Γöé         Γöé
  6462. Γöé    ΓööΓöÇΓö¼ΓöÇASCENDINGΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ         Γöé
  6463. Γöé     Γöé       (3)Γöé  ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                  Γöé
  6464. Γöé     ΓööΓöÇDESCENDINGΓöÇΓöÇΓöÇΓöÇΓöÿ                           Γöé
  6465. Γöé                                        Γöé
  6466. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                 Γöé
  6467. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  6468. Γöé   Γöé                   Γöé Γöé                  Γöé
  6469. Γöé   ΓööΓöÇINDEXEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇindex-name-1ΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  6470. Γöé        ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ                            Γöé
  6471. Γöé                                        Γöé
  6472. Γöé NOTES:                                    Γöé
  6473. Γöé (1)  IBM Extension                              Γöé
  6474. Γöé                                        Γöé
  6475. Γöé (2)  Syntax-checked only                           Γöé
  6476. Γöé                                        Γöé
  6477. Γöé (3)  Cannot be used with Boolean data                     Γöé
  6478. Γöé                                        Γöé
  6479. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6480.  
  6481. The clauses may be written in any order with two exceptions: 
  6482.  
  6483.   If data-name or FILLER is specified, it must immediately follow the 
  6484.    level-number. 
  6485.  
  6486.   When specified, the REDEFINES clause must be the first entry following 
  6487.    data-name-1 or FILLER. If data-name-1 or FILLER is not specified, the 
  6488.    REDEFINES clause must be the first entry following the level-number. The 
  6489.    data item being described is treated as though FILLER has been specified. 
  6490.  
  6491.  Not all clauses are compatible with each other. For details, see the 
  6492.  descriptions of the individual clauses. 
  6493.  
  6494.  Clauses must be separated by a space, a separator comma, or a separator 
  6495.  semicolon. 
  6496.  
  6497.  
  6498. ΓòÉΓòÉΓòÉ 11.2. Format 2 ΓòÉΓòÉΓòÉ
  6499.  
  6500. Format 2 regroups previously defined items. 
  6501.  
  6502. ΓöîΓöÇΓöÇΓöÇ DATA DESCRIPTION ENTRY - GENERAL FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6503. Γöé                                        Γöé
  6504. Γöé >>ΓöÇΓöÇ66ΓöÇΓöÇdata-name-1ΓöÇΓöÇRENAMESΓöÇΓöÇdata-name-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  6505. Γöé                       ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇdata-name-3ΓöÇΓöÿ    Γöé
  6506. Γöé                        ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  6507. Γöé                                        Γöé
  6508. Γöé >ΓöÇΓöÇ.ΓöÇΓöÇ><                                   Γöé
  6509. Γöé                                        Γöé
  6510. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6511.  
  6512. A level-66 entry cannot rename another level-66 entry, nor can it rename a 
  6513. level-01, level-77, or level-88 entry. 
  6514.  
  6515. All level-66 entries associated with one record must immediately follow the 
  6516. last data description entry in that record. 
  6517.  
  6518. Details are contained in RENAMES Clause. 
  6519.  
  6520.  
  6521. ΓòÉΓòÉΓòÉ 11.3. Format 3 ΓòÉΓòÉΓòÉ
  6522.  
  6523. Format 3 describes condition-names. 
  6524.  
  6525. ΓöîΓöÇΓöÇΓöÇ DATA DESCRIPTION ENTRY - GENERAL FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6526. Γöé                                        Γöé
  6527. Γöé >>ΓöÇΓöÇ88ΓöÇΓöÇcondition-nameΓöÇΓöÇΓö¼ΓöÇVALUEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6528. Γöé             Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                  Γöé
  6529. Γöé             ΓööΓöÇVALUESΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  6530. Γöé                  ΓööΓöÇAREΓöÇΓöÿ                   Γöé
  6531. Γöé                                        Γöé
  6532. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  6533. Γöé                       Γöé                 Γöé
  6534. Γöé >ΓöÇΓöÇΓöÇΓöÇliteral-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ.ΓöÇΓöÇ><              Γöé
  6535. Γöé         ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇliteral-2ΓöÇΓöÿ                  Γöé
  6536. Γöé          ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                         Γöé
  6537. Γöé                                        Γöé
  6538. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6539.  
  6540.  condition-name 
  6541.            A user-specified name that associates a value, a set of values, or a 
  6542.            range of values with a conditional variable. 
  6543.  
  6544.            A conditional variable is a data item that can assume one or more 
  6545.            values, that can, in turn, be associated with a condition-name. 
  6546.  
  6547.  Format 3 can be used to describe both elementary and group items. Further 
  6548.  information on condition-name entries can be found under VALUE OF Clause. 
  6549.  
  6550.  
  6551. ΓòÉΓòÉΓòÉ 11.4. Format 4 ΓòÉΓòÉΓòÉ
  6552.  
  6553. -----IBM Extension----- 
  6554.  
  6555. This format describes Boolean data. Boolean data items are items that are 
  6556. limited to a value of 1 or 0. 
  6557.  
  6558. Note:   When you use indicators in a COBOL program, you must describe them as 
  6559.         Boolean data items using the data description entry for Boolean data.
  6560.  
  6561.   ΓöîΓöÇΓöÇΓöÇ DATA DESCRIPTION ENTRY - FORMAT 4 - BOOLEAN DATA ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6562.   Γöé                                        Γöé
  6563.   Γöé >>ΓöÇΓöÇlevel-numberΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6564.   Γöé          Γö£ΓöÇdata-name-1ΓöÇΓöñ  Γö£ΓöÇREDEFINESΓöÇΓöÇdata-name-2ΓöÇΓöñ         Γöé
  6565.   Γöé          ΓööΓöÇFILLERΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇLIKEΓöÇΓöÇdata-name-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  6566.   Γöé                                        Γöé
  6567.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6568.   Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÿ                  Γöé
  6569.   Γöé    ΓööΓöÇISΓöÇΓöÿ         ΓööΓöÇISΓöÇΓöÿ                       Γöé
  6570.   Γöé                                        Γöé
  6571.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6572.   Γöé   Γöé        (1)       Γöé  Γö£ΓöÇΓöñ OCCURS clause - Format 1 Γö£ΓöÇΓöñ     Γöé
  6573.   Γöé   ΓööΓöÇΓö¼ΓöÇJUSTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇΓöñ OCCURS clause - Format 2 Γö£ΓöÇΓöÿ     Γöé
  6574.   Γöé    ΓööΓöÇJUSTIFIEDΓöÇΓöÿ    ΓööΓöÇRIGHTΓöÇΓöÿ                       Γöé
  6575.   Γöé                                        Γöé
  6576.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6577.   Γöé   ΓööΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇinteger-3ΓöÇΓöÿ  ΓööΓöÇΓö¼ΓöÇPICTUREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ1ΓöÇΓöÿ         Γöé
  6578.   Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ         ΓööΓöÇPICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ            Γöé
  6579.   Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  6580.   Γöé                                        Γöé
  6581.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6582.   Γöé   ΓööΓöÇVALUEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇboolean-literalΓöÇΓöÿ                     Γöé
  6583.   Γöé       ΓööΓöÇISΓöÇΓöÿ                              Γöé
  6584.   Γöé                                        Γöé
  6585.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6586.   Γöé   Γöé          (1)       Γöé  ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDISPLAYΓöÇΓöÿ    Γöé
  6587.   Γöé   ΓööΓöÇΓö¼ΓöÇSYNCHRONIZEDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ   ΓööΓöÇUSAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ          Γöé
  6588.   Γöé    ΓööΓöÇSYNCΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ    Γö£ΓöÇLEFTΓöÇΓöÇΓöñ        ΓööΓöÇISΓöÇΓöÿ           Γöé
  6589.   Γöé               ΓööΓöÇRIGHTΓöÇΓöÿ                     Γöé
  6590.   Γöé                                        Γöé
  6591.   Γöé >ΓöÇΓöÇ.ΓöÇΓöÇ><                                   Γöé
  6592.   Γöé                                        Γöé
  6593.   Γöé OCCURS CLAUSE - FORMAT 1:                           Γöé
  6594.   Γöé Γö£ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6595.   Γöé            ΓööΓöÇTIMESΓöÇΓöÿ                        Γöé
  6596.   Γöé                                        Γöé
  6597.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  6598.   Γöé                       Γöé                 Γöé
  6599.   Γöé >ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöñ                Γöé
  6600.   Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  6601.   Γöé   Γöé                   Γöé Γöé                  Γöé
  6602.   Γöé   ΓööΓöÇINDEXEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇindex-name-1ΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  6603.   Γöé         ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ                            Γöé
  6604.   Γöé                                        Γöé
  6605.   Γöé OCCURS CLAUSE - FORMAT 2:                           Γöé
  6606.   Γöé Γö£ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-1ΓöÇΓöÇTOΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6607.   Γöé                    ΓööΓöÇTIMESΓöÇΓöÿ                Γöé
  6608.   Γöé                                        Γöé
  6609.   Γöé >ΓöÇΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇdata-name-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  6610.   Γöé        ΓööΓöÇONΓöÇΓöÿ                             Γöé
  6611.   Γöé                                        Γöé
  6612.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  6613.   Γöé                       Γöé                 Γöé
  6614.   Γöé >ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöñ                Γöé
  6615.   Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  6616.   Γöé   Γöé                   Γöé Γöé                  Γöé
  6617.   Γöé   ΓööΓöÇINDEXEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇindex-name-1ΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  6618.   Γöé         ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ                            Γöé
  6619.   Γöé                                        Γöé
  6620.   Γöé NOTE:                                     Γöé
  6621.   Γöé (1)  Syntax checked only                           Γöé
  6622.   Γöé                                        Γöé
  6623.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6624.  
  6625.  ---End of IBM Extension--- 
  6626.  
  6627.  
  6628. ΓòÉΓòÉΓòÉ 11.5. LIKE Clause ΓòÉΓòÉΓòÉ
  6629.  
  6630. -----IBM Extension----- 
  6631.  
  6632. The length of the data item cannot be changed using this clause. 
  6633.  
  6634. ---End of IBM Extension--- 
  6635.  
  6636.  
  6637. ΓòÉΓòÉΓòÉ 11.6. OCCURS Clause ΓòÉΓòÉΓòÉ
  6638.  
  6639. -----IBM Extension----- 
  6640.  
  6641. When the OCCURS clause and the INDICATOR clause are both specified at an 
  6642. elementary level, a table of Boolean data items is defined with each element in 
  6643. the table corresponding to an external indicator.  The first element in the 
  6644. table corresponds to the indicator number specified in the INDICATOR clause; 
  6645. the second element corresponds to the indicator that sequentially follows the 
  6646. indicator specified by the INDICATOR clause. 
  6647.  
  6648. For example, if the following is coded: 
  6649.  
  6650.         07   SWITCHES  PIC 1
  6651.                        OCCURS 10 TIMES
  6652.                        INDICATOR 16.
  6653.  
  6654. then SWITCHES (1) corresponds to indicator 16, SWITCHES (2) corresponds to 
  6655. indicator 17,..., and SWITCHES (10) corresponds to indicator 25. 
  6656.  
  6657. ---End of IBM Extension--- 
  6658.  
  6659.  
  6660. ΓòÉΓòÉΓòÉ 11.7. INDICATOR Clause ΓòÉΓòÉΓòÉ
  6661.  
  6662. -----IBM Extension----- 
  6663.  
  6664. If indicator fields are in a separate indicator area, the INDICATOR clause 
  6665. associates an indicator defined in DDS with a Boolean data item.  If indicator 
  6666. fields are in the record area, the INDICATOR clause is syntax checked, but is 
  6667. treated as documentation. 
  6668.  
  6669. Integer-3 must be a value of 1 through 99. 
  6670.  
  6671. The INDICATOR clause must be specified at an elementary level only. 
  6672.  
  6673. ---End of IBM Extension--- 
  6674.  
  6675.  
  6676. ΓòÉΓòÉΓòÉ 11.8. VALUE Clause ΓòÉΓòÉΓòÉ
  6677.  
  6678. -----IBM Extension----- 
  6679.  
  6680. The VALUE clause specifies the initial content of a Boolean data item.  The 
  6681. allowable values for Boolean literals are B"0", B"1", and ZERO. 
  6682.  
  6683. ---End of IBM Extension--- 
  6684.  
  6685.  
  6686. ΓòÉΓòÉΓòÉ 11.9. level-number ΓòÉΓòÉΓòÉ
  6687.  
  6688. Level-numbers must be followed either by a separator period; or by a space 
  6689. followed by its associated data-name-1, FILLER, or appropriate data description 
  6690. clause. Level number 01 and 77 must begin in Area A. Level-number 77 must be 
  6691. followed by a space followed by its associated data-name-1. Level numbers 02 
  6692. through 49, 66, and 88 may begin in Area A or B. 
  6693.  
  6694. Single-digit level-numbers 1 through 9 may be substituted for level-numbers 01 
  6695. through 09. 
  6696.  
  6697. Successive data description entries may start in the same column as the first 
  6698. or they may be indented according to the level-number. Indentation does not 
  6699. affect the magnitude of a level-number. 
  6700.  
  6701. When level-numbers are indented, each new level-number may begin any number of 
  6702. spaces to the right of Area A. The extent of indentation to the right is 
  6703. limited only by the width of Area B. 
  6704.  
  6705. For more information, see Levels of Data and Standard Data Format. 
  6706.  
  6707. -----IBM Extension----- 
  6708.  
  6709. Elementary items or group items that are immediately subordinate to one group 
  6710. item can have unequal level-numbers. 
  6711.  
  6712. ---End of IBM Extension--- 
  6713.  
  6714.  
  6715. ΓòÉΓòÉΓòÉ 11.10. data-name ΓòÉΓòÉΓòÉ
  6716.  
  6717. Explicitly identifies the data being described. 
  6718.  
  6719. If specified, data-name-1 identifies a data item used in the program. The data 
  6720. item must be the first word following the level-number. 
  6721.  
  6722. The data item can be changed during program execution. 
  6723.  
  6724. Data-name-1 must be specified for 
  6725.  
  6726.   Level-66, level-77, and level-88 items 
  6727.  
  6728.   Entries containing a GLOBAL or EXTERNAL clause 
  6729.  
  6730.   Record description entries associated with file description entries having 
  6731.    GLOBAL or EXTERNAL clauses. 
  6732.  
  6733.  
  6734. ΓòÉΓòÉΓòÉ 11.11. FILLER ΓòÉΓòÉΓòÉ
  6735.  
  6736. Is a data item that is not explicitly referred to in a program. The keyword 
  6737. FILLER is optional. If specified, FILLER must be the first word following the 
  6738. level-number. 
  6739.  
  6740. The keyword FILLER may be used with a conditional variable, if explicit 
  6741. reference is never made to the conditional variable but only to values it may 
  6742. assume. FILLER may not be used with a condition-name. 
  6743.  
  6744. In a MOVE CORRESPONDING statement, or in an ADD CORRESPONDING or SUBTRACT 
  6745. CORRESPONDING statement, FILLER items are ignored. In an INITIALIZE statement, 
  6746. elementary FILLER items are ignored. 
  6747.  
  6748. If data-name-1 or FILLER clause is omitted, the data item being described is 
  6749. treated as though FILLER had been specified. 
  6750.  
  6751.  
  6752. ΓòÉΓòÉΓòÉ 11.12. BLANK WHEN ZERO Clause ΓòÉΓòÉΓòÉ
  6753.  
  6754. The BLANK WHEN ZERO clause specifies that an item contains nothing but spaces 
  6755. when its value is zero. 
  6756.  
  6757. ΓöîΓöÇΓöÇΓöÇ BLANK WHEN ZERO CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6758. Γöé                                        Γöé
  6759. Γöé >>ΓöÇΓöÇBLANKΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇZEROΓöÇΓöÇ><                         Γöé
  6760. Γöé       ΓööΓöÇWHENΓöÇΓöÿ                              Γöé
  6761. Γöé                                        Γöé
  6762. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6763.  
  6764. The BLANK WHEN ZERO clause may be specified only for elementary numeric or 
  6765. numeric-edited items. These items must be described, either implicitly or 
  6766. explicitly, as USAGE IS DISPLAY. When the BLANK WHEN ZERO clause is specified 
  6767. for a numeric item, the item is considered a numeric-edited item. 
  6768.  
  6769. The BLANK WHEN ZERO clause must not be specified for level-66 or level-88 
  6770. items. 
  6771.  
  6772. The BLANK WHEN ZERO clause must not be specified for the same entry as the 
  6773. PICTURE symbols S or *. 
  6774.  
  6775. The BLANK WHEN ZERO clause is not allowed for items described with the: 
  6776.  
  6777.   USAGE IS INDEX clause 
  6778.  
  6779.    -----IBM Extension----- 
  6780.   USAGE IS POINTER clause 
  6781.   USAGE IS PROCEDURE-POINTER clause 
  6782.  
  6783.    ---End of IBM Extension--- 
  6784.  
  6785.  
  6786. ΓòÉΓòÉΓòÉ 11.13. EXTERNAL Clause ΓòÉΓòÉΓòÉ
  6787.  
  6788. The EXTERNAL clause specifies that the storage associated with a data item is 
  6789. associated with the run unit rather than with any particular program within the 
  6790. run unit. 
  6791.  
  6792. ΓöîΓöÇΓöÇΓöÇ EXTERNAL CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6793. Γöé                                        Γöé
  6794. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXTERNALΓöÇΓöÇ><                           Γöé
  6795. Γöé   ΓööΓöÇISΓöÇΓöÿ                                  Γöé
  6796. Γöé                                        Γöé
  6797. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6798.  
  6799. An external data item can be referenced by any program in the run unit that 
  6800. describes the data item. References to an external data item from different 
  6801. programs using separate descriptions of the data item are always to the same 
  6802. data item. In a run unit, there is only one representation of an external data 
  6803. item. 
  6804.  
  6805. The EXTERNAL clause can be specified in either 01 level entries in the 
  6806. Working-Storage Section or in file description entries. If there are two data 
  6807. description entries with the same data name in the same Data Division, only one 
  6808. entry can contain the EXTERNAL clause. Index-names and condition-names in an 
  6809. external data record do not possess the EXTERNAL attribute. 
  6810.  
  6811. The data contained in the record named by the data-name clause is external and 
  6812. can be accessed and processed by any program in the run unit that describes 
  6813. and, optionally, redefines it. This data is subject to the following rules: 
  6814.  
  6815.   If two or more programs within a run unit describe the same external data 
  6816.    record, each record-name of the associated record description entries must 
  6817.    be the same and the records must define the same number of standard data 
  6818.    format characters. However, a program that describes an external record can 
  6819.    contain a data description entry including the REDEFINES clause that 
  6820.    redefines the complete external record, and this complete redefinition need 
  6821.    not occur identically in other programs in the run unit. 
  6822.  
  6823.   Use of the EXTERNAL clause does not imply that the associated data-name is a 
  6824.    global name. 
  6825.  
  6826.   The VALUE clause must not be used in any data description entry which 
  6827.    includes, or is subordinate to an entry which includes, the EXTERNAL clause. 
  6828.    The VALUE clause can be specified for condition-name entries associated with 
  6829.    such data description entries. 
  6830.  
  6831.  
  6832. ΓòÉΓòÉΓòÉ 11.14. GLOBAL Clause ΓòÉΓòÉΓòÉ
  6833.  
  6834. The GLOBAL clause specifies that a data-name is available to the program that 
  6835. declares it and to every program contained within the program that declares it, 
  6836. as long as the contained program does not itself have a declaration for that 
  6837. name. All data-names subordinate to, or condition-names or index-names 
  6838. associated with a global name, are global names. 
  6839.  
  6840. ΓöîΓöÇΓöÇΓöÇ GLOBAL CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6841. Γöé                                        Γöé
  6842. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇGLOBALΓöÇΓöÇ><                            Γöé
  6843. Γöé   ΓööΓöÇISΓöÇΓöÿ                                  Γöé
  6844. Γöé                                        Γöé
  6845. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6846.  
  6847. A data-name is global if the GLOBAL clause is specified either in the data 
  6848. description entry by which the data-name is declared or in another entry to 
  6849. which that data description entry is subordinate. 
  6850.  
  6851. -----IBM Extension----- 
  6852.  
  6853. The GLOBAL clause can be specified in the Linkage Section, but only in data 
  6854. description entries whose level-number is 01. 
  6855.  
  6856. ---End of IBM Extension--- 
  6857.  
  6858. In the same Data Division, the data description entries for any two data items 
  6859. for which the same data-name is specified must not include the GLOBAL clause. 
  6860.  
  6861. A statement in a program contained directly or indirectly within a program 
  6862. which describes a global name can reference that name without describing it 
  6863. again. 
  6864.  
  6865. Sharing Data 
  6866.  
  6867. Two programs in a run unit can reference common data in the following 
  6868. circumstances: 
  6869.  
  6870.   1. The data content of an external data record can be referenced from any 
  6871.      program provided that program has described that data record. 
  6872.  
  6873.   2. If a program is contained within another program, both programs can refer 
  6874.      to data possessing the global attribute either in the containing program 
  6875.      or in any program that directly or indirectly contains the containing 
  6876.      program. 
  6877.  
  6878.   3. A parameter passed by reference can be shared between the calling program 
  6879.      and the called program. 
  6880.  
  6881.  
  6882. ΓòÉΓòÉΓòÉ 11.15. JUSTIFIED Clause ΓòÉΓòÉΓòÉ
  6883.  
  6884. The JUSTIFIED clause overrides standard positioning rules for a receiving item 
  6885. of the alphabetic or alphanumeric categories. 
  6886.  
  6887. ΓöîΓöÇΓöÇΓöÇ JUSTIFIED CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6888. Γöé                                        Γöé
  6889. Γöé >>ΓöÇΓöÇΓö¼ΓöÇJUSTIFIEDΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                      Γöé
  6890. Γöé   ΓööΓöÇJUSTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé    (1)Γöé                        Γöé
  6891. Γöé           ΓööΓöÇRIGHTΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  6892. Γöé                                        Γöé
  6893. Γöé NOTE:                                     Γöé
  6894. Γöé (1)  Syntax checked only                           Γöé
  6895. Γöé                                        Γöé
  6896. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6897.  
  6898. The JUSTIFIED clause may be specified only at the elementary level. RIGHT is an 
  6899. optional word that is syntax checked only and has no effect on the execution of 
  6900. the program. 
  6901.  
  6902. The JUSTIFIED clause cannot be specified for numeric, numeric-edited, or 
  6903. alphanumeric-edited items. 
  6904.  
  6905. The JUSTIFIED clause is not allowed for items described with: 
  6906.  
  6907.   Level-66 (RENAMES) entries 
  6908.   Level-88 (condition-name) entries 
  6909.   The USAGE IS INDEX clause 
  6910.  
  6911.    -----IBM Extension----- 
  6912.   The USAGE IS POINTER clause 
  6913.   The USAGE IS PROCEDURE-POINTER clause 
  6914.  
  6915.  The JUSTIFIED clause can be specified for an alphanumeric edited item. 
  6916.  
  6917.  ---End of IBM Extension--- 
  6918.  
  6919.  When the JUSTIFIED clause is omitted, the rules for standard alignment are 
  6920.  followed (see Alignment Rules). 
  6921.  
  6922.  When the JUSTIFIED clause is specified for a receiving item, the data is 
  6923.  aligned at the rightmost character position in the receiving item. Also: 
  6924.  
  6925.   If the sending item is larger than the receiving item, the leftmost 
  6926.    characters are truncated. 
  6927.  
  6928.   If the sending item is smaller than the receiving item, the unused character 
  6929.    positions at the left are filled with spaces. 
  6930.  
  6931.  The JUSTIFIED clause does not affect initial values, as determined by the 
  6932.  VALUE clause. 
  6933.  
  6934.  
  6935. ΓòÉΓòÉΓòÉ 11.16. LIKE Clause ΓòÉΓòÉΓòÉ
  6936.  
  6937. -----IBM Extension----- 
  6938.  
  6939. The LIKE clause allows you to define the PICTURE, USAGE, and SIGN 
  6940. characteristics of a data item by copying them from a previously defined data 
  6941. item. It also allows you to make the length of the data item you define 
  6942. different from the length of the original item. 
  6943.  
  6944. ΓöîΓöÇΓöÇΓöÇ LIKE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6945. Γöé                                        Γöé
  6946. Γöé      (1)                                 Γöé
  6947. Γöé >>ΓöÇΓöÇLIKEΓöÇΓöÇΓöÇΓöÇΓöÇdata-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                   Γöé
  6948. Γöé             ΓööΓöÇ(integer)ΓöÇΓöÿ                     Γöé
  6949. Γöé                                        Γöé
  6950. Γöé NOTE:                                     Γöé
  6951. Γöé (1)  IBM Extension                              Γöé
  6952. Γöé                                        Γöé
  6953. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  6954.  
  6955. The LIKE clause causes the new data item to inherit specific characteristics 
  6956. from the existing data item. These characteristics are the PICTURE, USAGE, 
  6957. SIGN, and BLANK WHEN ZERO attributes of the existing item. 
  6958.  
  6959. The compiler generates comments to identify the characteristics of the new 
  6960. item. These comments appear after the statement containing the LIKE clause. 
  6961.  
  6962. Note that the default USAGE IS DISPLAY and SIGN IS TRAILING characteristics do 
  6963. not print as comments. 
  6964.  
  6965. Related Information: 
  6966.  
  6967.   Comments Generated Based on Inherited USAGE Characteristics 
  6968.   Rules and Restrictions for Like Clause 
  6969.   Coding Examples 
  6970.  
  6971.  ---End of IBM Extension--- 
  6972.  
  6973.  
  6974. ΓòÉΓòÉΓòÉ 11.16.1. Comments Generated Based on Inherited USAGE Characteristics ΓòÉΓòÉΓòÉ
  6975.  
  6976. -----IBM Extension----- 
  6977.  
  6978. The different USAGE clauses that you can specify for the original item result 
  6979. in a limited number of comments. Comments Generated based on Inherited USAGE 
  6980. Characteristics illustrates this. 
  6981.  
  6982. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  6983. Γöé      Comments Generated based on Inherited USAGE Characteristics     Γöé
  6984. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6985. Γöé INHERITED USAGE CLAUSE         Γöé GENERATED COMMENT           Γöé
  6986. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6987. Γöé PACKED-DECIMAL             Γöé * USAGE IS PACKED-DECIMAL       Γöé
  6988. Γöé COMPUTATIONAL             Γöé                    Γöé
  6989. Γöé COMPUTATIONAL-3            Γöé                    Γöé
  6990. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6991. Γöé BINARY                 Γöé * USAGE IS BINARY           Γöé
  6992. Γöé COMPUTATIONAL-4            Γöé                    Γöé
  6993. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6994. Γöé INDEX                 Γöé * USAGE IS INDEX           Γöé
  6995. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6996. Γöé DISPLAY                Γöé This is the default usage, so a    Γöé
  6997. Γöé                    Γöé comment is not generated.       Γöé
  6998. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  6999. Γöé POINTER                Γöé * USAGE IS POINTER          Γöé
  7000. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7001. Γöé PROCEDURE-POINTER           Γöé * USAGE IS PROCEDURE-POINTER     Γöé
  7002. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7003.  
  7004. The characteristics of the data item that you define using the LIKE clause are 
  7005. shown in the listing of your compiled program. 
  7006.  
  7007. ---End of IBM Extension--- 
  7008.  
  7009.  
  7010. ΓòÉΓòÉΓòÉ 11.16.2. Rules and Restrictions ΓòÉΓòÉΓòÉ
  7011.  
  7012. -----IBM Extension----- 
  7013.  
  7014. You can use the LIKE clause at level-numbers 01 through 49, and at level-number 
  7015. 77. 
  7016.  
  7017. If you specify data-name or FILLER entries, you can put the LIKE clause in any 
  7018. position after them. Otherwise, you can put it in any position after the 
  7019. level-number. 
  7020.  
  7021. You can specify one or more other clauses before or after the LIKE clause: 
  7022.  
  7023.  JUSTIFIED 
  7024.  SYNCHRONIZED 
  7025.  BLANK WHEN ZERO 
  7026.  VALUE 
  7027.  OCCURS. 
  7028.  Note that you can specify BLANK WHEN ZERO only if it has not previously been 
  7029.  inherited. 
  7030.  
  7031.  You cannot use the LIKE clause with the following clauses: 
  7032.  
  7033.  REDEFINES 
  7034.  SIGN 
  7035.  USAGE 
  7036.  PICTURE. 
  7037.  
  7038.  If you specify any inherited clauses in the LIKE clause, a duplication error 
  7039.  will result. 
  7040.  
  7041.  For numeric items, the total number of numeric characters in the new item 
  7042.  cannot be zero.  But if the item contains decimals, the number of characters 
  7043.  in the integer portion can be zero. 
  7044.  
  7045.  If a PICTURE clause specifies a mixture of alphabetic, numeric, or 
  7046.  alphanumeric characters, and the LIKE clause has length modification, the new 
  7047.  PICTURE clause specifies alphanumeric characters. 
  7048.  
  7049.  You cannot use the LIKE clause to define an item that is subordinate to the 
  7050.  item that you name in the clause. 
  7051.  
  7052.  ---End of IBM Extension--- 
  7053.  
  7054.  
  7055. ΓòÉΓòÉΓòÉ 11.16.3. Coding Examples ΓòÉΓòÉΓòÉ
  7056.  
  7057. -----IBM Extension----- 
  7058.  
  7059. To create data item DEPTH with the same attributes as data item HEIGHT, you 
  7060. simply write: 
  7061.  
  7062.    DEPTH LIKE HEIGHT
  7063.  
  7064. To create data item PROVINCE with the same attributes as data item STATE, 
  7065. except one byte longer, you write: 
  7066.  
  7067.    PROVINCE LIKE STATE (+1)
  7068.  
  7069. ---End of IBM Extension--- 
  7070.  
  7071.  
  7072. ΓòÉΓòÉΓòÉ 11.17. OCCURS Clause ΓòÉΓòÉΓòÉ
  7073.  
  7074. The Data Division clauses that are used for table handling are the OCCURS 
  7075. clause and USAGE IS INDEX clause (For the USAGE IS INDEX description, see USAGE 
  7076. Clause.) 
  7077.  
  7078. The OCCURS Clause has two formats: 
  7079.  
  7080.   Format 1 - Fixed Length Tables 
  7081.   Format 2 - Variable Length Tables 
  7082.  
  7083.  Related Information: 
  7084.  
  7085.   Table Handling Concepts 
  7086.   Table Limitations 
  7087.   Defining Tables 
  7088.   Referencing Table Elements 
  7089.   Subscripting 
  7090.  
  7091.  
  7092. ΓòÉΓòÉΓòÉ 11.17.1. Table Handling Concepts ΓòÉΓòÉΓòÉ
  7093.  
  7094. A table is a set of logically consecutive items, each of which has the same 
  7095. data description as the other items in the set. COBOL provides a method of data 
  7096. reference is used which makes it possible to refer to all or to part of one 
  7097. table as an entity. 
  7098.  
  7099. In COBOL, a table is defined with an OCCURS clause in its data description. 
  7100. The OCCURS clause specifies that the named item is to be repeated as many times 
  7101. as stated.  The item so named is considered a table element, and its name and 
  7102. description apply to each repetition (or occurrence) of the item.  Because the 
  7103. occurrences are not given unique data-names, reference to a particular 
  7104. occurrence can be made only by specifying the data-name of the table element, 
  7105. together with the occurrence number of the desired item within the element. 
  7106.  
  7107. The occurrence number is known as a subscript and the technique of supplying 
  7108. the occurrence number of individual table elements is called subscripting. 
  7109. Subscripting is described in a subsequent section. 
  7110.  
  7111. The data-name of the data item containing the OCCURS clause is known as the 
  7112. subject of the OCCURS clause. When the subject of an OCCURS clause (or any 
  7113. data-item subordinate to it) is referenced, it must be subscripted or indexed 
  7114. unless: 
  7115.  
  7116.   The subject of the OCCURS clause is used as the subject of the SEARCH 
  7117.    statement. 
  7118.  
  7119.   The subject (or subordinate data item) is the object of the 
  7120.    ASCENDING/DESCENDING KEY clause. 
  7121.  
  7122.   The subordinate data item is the object of the REDEFINES clause. 
  7123.  
  7124.  When the subject of an OCCURS clause is subscripted or indexed, it represents 
  7125.  one occurrence within the table. Otherwise, the subject represents the entire 
  7126.  table. 
  7127.  
  7128.  -----IBM Extension----- 
  7129.  
  7130.  An item whose usage is POINTER or PROCEDURE-POINTER can contain an OCCURS 
  7131.  clause, or be subordinate to an item declared with an OCCURS clause. 
  7132.  
  7133.  Tables containing pointer or procedure-pointer data items are subject to 
  7134.  pointer alignment as defined under Pointer Alignment. Where necessary, the 
  7135.  compiler adds FILLER items to align the pointers in the first element of the 
  7136.  table, plus a FILLER item at the end of the element to align the next pointer. 
  7137.  This continues until all pointers in the table have been aligned. 
  7138.  
  7139.  The OCCURS clause can be specified for a boolean item. 
  7140.  
  7141.  ---End of IBM Extension--- 
  7142.  
  7143.  
  7144. ΓòÉΓòÉΓòÉ 11.17.1.1. Limitations ΓòÉΓòÉΓòÉ
  7145.  
  7146. You should be aware of the following limitations when you work with tables: 
  7147.  
  7148.   The number of occurrences of an item in the OCCURS clause can be up to a 
  7149.    maximum of 16 711 568. 
  7150.  
  7151.   Table elements, including subordinate elements, have a size limit of 
  7152.    16 711568 bytes. 
  7153.  
  7154.   The OCCURS clause cannot appear in a data description entry that: 
  7155.  
  7156.     - Has a level-number of 01, 66, 77, or 88. 
  7157.     - Describes a redefined data item.  However, a redefined item can be 
  7158.       subordinate to an item containing an OCCURS clause. 
  7159.  
  7160.  
  7161. ΓòÉΓòÉΓòÉ 11.17.1.2. Defining Tables ΓòÉΓòÉΓòÉ
  7162.  
  7163. The ILE COBOL/400 compiler allows tables in one to seven dimensions. 
  7164.  
  7165. To define a one-dimensional table, set up a group item that includes one OCCURS 
  7166. clause. Remember that the OCCURS clause cannot appear in a data description 
  7167. entry whose level-number is 01, 66, 77, or 88. 
  7168.  
  7169. For example: 
  7170.  
  7171.    01 TABLE-ONE.
  7172.       05 ELEMENT-ONE OCCURS 3 TIMES.
  7173.          10 ELEMENT-A PIC X(4).
  7174.          10 ELEMENT-B PIC 9(4).
  7175.  
  7176. TABLE-ONE is the group item that contains the table. ELEMENT-ONE is an element 
  7177. of a one-dimensional table that occurs three times. ELEMENT-A and ELEMENT-B are 
  7178. elementary items subordinate to ELEMENT-ONE. 
  7179.  
  7180. To define a three-dimensional table, a one-dimensional table is defined within 
  7181. each occurrence of another one-dimensional table, which is itself contained 
  7182. within each occurrence of another one-dimensional table. For example: 
  7183.  
  7184.    01 TABLE-THREE.
  7185.       05 ELEMENT-ONE OCCURS 3 TIMES.
  7186.          10 ELEMENT-TWO OCCURS 3 TIMES.
  7187.             15 ELEMENT-THREE OCCURS 2 TIMES
  7188.                PICTURE X(8).
  7189.  
  7190. TABLE-THREE is the group item that contains the table. ELEMENT-ONE is an 
  7191. element of a one-dimensional table that occurs three times. ELEMENT-TWO is an 
  7192. element of a two-dimensional table that occurs three times within each 
  7193. occurrence of ELEMENT-ONE. ELEMENT-THREE is an element of a three-dimensional 
  7194. table that occurs two times within each occurrence of ELEMENT-TWO. Storage 
  7195. Layout for TABLE-THREE shows the storage layout for TABLE-THREE. 
  7196.  
  7197. ELEMENTΓöÇONE      ELEMENTΓöÇTWO        ELEMENTΓöÇTHREE         Byte DisΓöÇ
  7198. Occurs Three Times  Occurs Three Times    Occurs Two Times       placement
  7199. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ  0
  7200. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 1, 1) Γöé
  7201. Γöé          Γöé  ELEMENTΓöÇTWO (1, 1)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  8
  7202. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 1, 2) Γöé
  7203. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  16
  7204. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 2, 1) Γöé
  7205. Γöé ELEMENTΓöÇONE (1)  Γöé  ELEMENTΓöÇTWO (1, 2)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  24
  7206. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 2, 2) Γöé
  7207. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  32
  7208. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 3, 1) Γöé
  7209. Γöé          Γöé  ELEMENTΓöÇTWO (1, 3)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  40
  7210. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (1, 3, 2) Γöé
  7211. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  48
  7212. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 1, 1) Γöé
  7213. Γöé          Γöé  ELEMENTΓöÇTWO (2, 1)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  56
  7214. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 1, 2) Γöé
  7215. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  64
  7216. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 2, 1) Γöé
  7217. Γöé ELEMENTΓöÇONE (2)  Γöé  ELEMENTΓöÇTWO (2, 2)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  72
  7218. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 2, 2) Γöé
  7219. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  80
  7220. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 3, 1) Γöé
  7221. Γöé          Γöé  ELEMENTΓöÇTWO (2, 3)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  88
  7222. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (2, 3, 2) Γöé
  7223. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ  96
  7224. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 1, 1) Γöé
  7225. Γöé          Γöé  ELEMENTΓöÇTWO (3, 1)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ 104
  7226. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 1, 2) Γöé
  7227. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ 112
  7228. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 2, 1) Γöé
  7229. Γöé ELEMENTΓöÇONE (3)  Γöé  ELEMENTΓöÇTWO (3, 2)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ 120
  7230. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 2, 2) Γöé
  7231. Γöé          Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ 128
  7232. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 3, 1) Γöé
  7233. Γöé          Γöé  ELEMENTΓöÇTWO (3, 3)   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇ 136
  7234. Γöé          Γöé             Γöé  ELEMENTΓöÇTHREE (3, 3, 2) Γöé
  7235. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇ 144
  7236.  
  7237. Storage Layout for TABLE-THREE 
  7238.  
  7239.  
  7240. ΓòÉΓòÉΓòÉ 11.17.2. Referencing Table Elements ΓòÉΓòÉΓòÉ
  7241.  
  7242. Whenever the user refers to a table element, or to any item associated with a 
  7243. table element, the reference must indicate which occurrence is intended. 
  7244.  
  7245. For a one-dimensional table, the occurrence number of the desired element gives 
  7246. the complete information.  For tables of more than one dimension, an occurrence 
  7247. number for each dimension must be supplied.  In the three-dimensional table 
  7248. defined in the previous discussion, for example, a reference to ELEMENT-THREE 
  7249. must supply the occurrence number for ELEMENT-ONE, ELEMENT-TWO, and 
  7250. ELEMENT-THREE. 
  7251.  
  7252.  
  7253. ΓòÉΓòÉΓòÉ 11.17.3. Fixed-Length Tables ΓòÉΓòÉΓòÉ
  7254.  
  7255. Fixed-length tables are specified using the OCCURS clause. Because seven 
  7256. subscripts or indexes are allowed, six nested levels and one outermost level of 
  7257. the Format 1 OCCURS clause are allowed. The Format 1 OCCURS clause may be 
  7258. specified as subordinate to the OCCURS DEPENDING ON clause. In this way, a 
  7259. table of up to seven dimensions may be specified. 
  7260.  
  7261. ΓöîΓöÇΓöÇΓöÇ OCCURS CLAUSE - FORMAT 1 - FIXED-LENGTH TABLES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  7262. Γöé                                        Γöé
  7263. Γöé >>ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  7264. Γöé             ΓööΓöÇTIMESΓöÇΓöÿ                       Γöé
  7265. Γöé                                        Γöé
  7266. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  7267. Γöé                               Γöé         Γöé
  7268. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  7269. Γöé    Γöé                  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé          Γöé
  7270. Γöé    Γöé                         Γöé Γöé          Γöé
  7271. Γöé    ΓööΓöÇΓö¼ΓöÇASCENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ          Γöé
  7272. Γöé     ΓööΓöÇDESCENDINGΓöÇΓöÿ  ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                    Γöé
  7273. Γöé                                        Γöé
  7274. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                Γöé
  7275. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  7276. Γöé   Γöé                   Γöé Γöé                  Γöé
  7277. Γöé   ΓööΓöÇINDEXEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇindex-name-1ΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  7278. Γöé        ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ                            Γöé
  7279. Γöé                                        Γöé
  7280. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7281.  
  7282.  
  7283. ΓòÉΓòÉΓòÉ 11.17.3.1. ASCENDING/DESCENDING KEY Phrase ΓòÉΓòÉΓòÉ
  7284.  
  7285. Data is arranged in ascending or descending order (depending on the keyword 
  7286. specified) according to the values contained in data-name-2. The data-names are 
  7287. listed in their descending order of significance. 
  7288.  
  7289. The order is determined by the rules for comparison of operands (see Relation 
  7290. Condition). The ASCENDING and DESCENDING KEY data items are used in OCCURS 
  7291. clauses and the SEARCH ALL statement for a binary search of the table element. 
  7292.  
  7293. Related Information: 
  7294.  
  7295.   ASCENDING/DESCENDING KEY Phrase Rules 
  7296.   ASCENDING/DESCENDING KEY Coding Example 
  7297.  
  7298.  
  7299. ΓòÉΓòÉΓòÉ 11.17.3.2. ASCENDING/DESCENDING KEY Phrase Rules ΓòÉΓòÉΓòÉ
  7300.  
  7301. When the ASCENDING/DESCENDING KEY phrase is specified, the following rules 
  7302. apply: 
  7303.  
  7304.   Keys must be listed in decreasing order of significance. 
  7305.  
  7306.   You must arrange the data in the table in ASCENDING or DESCENDING sequence 
  7307.    according to the collating sequence in use. 
  7308.  
  7309.   A key may have DISPLAY, BINARY, PACKED-DECIMAL, or COMPUTATIONAL usage. 
  7310.  
  7311.    -----IBM Extension----- 
  7312.  
  7313.   A key can have COMPUTATIONAL-3 or COMPUTATIONAL-4 usage. 
  7314.  
  7315.  ---End of IBM Extension--- 
  7316.  
  7317.  
  7318. ΓòÉΓòÉΓòÉ 11.17.3.3. ASCENDING/DESCENDING KEY Phrase Coding Example ΓòÉΓòÉΓòÉ
  7319.  
  7320. The following example illustrates the specification of ASCENDING KEY data 
  7321. items: 
  7322.  
  7323. WORKING-STORAGE SECTION.
  7324. 01  TABLE-RECORD.
  7325.   05  EMPLOYEE-TABLE OCCURS 100 TIMES
  7326.       ASCENDING KEY IS WAGE-RATE EMPLOYEE-NO
  7327.       INDEXED BY A,  B.
  7328.     10  EMPLOYEE-NAME                         PIC X(20).
  7329.     10  EMPLOYEE-NO                           PIC 9(6).
  7330.     10  WAGE-RATE                             PIC 9999V99.
  7331.     10  WEEK-RECORD OCCURS 52 TIMES
  7332.         ASCENDING KEY IS WEEK-NO INDEXED BY C.
  7333.       15  WEEK-NO                             PIC 99.
  7334.       15  AUTHORIZED-ABSENCES                 PIC  9.
  7335.       15  UNAUTHORIZED-ABSENCES               PIC  9.
  7336.       15  LATE-ARRIVALS                       PIC  9.
  7337.  
  7338. The keys for EMPLOYEE-TABLE are subordinate to that entry, while the key for 
  7339. WEEK-RECORD is subordinate to that subordinate entry. 
  7340.  
  7341. In the preceding example, records in EMPLOYEE-TABLE must be arranged in 
  7342. ascending order of WAGE-RATE, and in ascending order of EMPLOYEE-NO within 
  7343. WAGE-RATE. Records in WEEK-RECORD must be arranged in ascending order of 
  7344. WEEK-NO. If they are not, results of any SEARCH ALL statement will be 
  7345. unpredictable. 
  7346.  
  7347.  
  7348. ΓòÉΓòÉΓòÉ 11.17.3.4. INDEXED BY Phrase ΓòÉΓòÉΓòÉ
  7349.  
  7350. The INDEXED BY phrase specifies the indexes that can be used with this table. 
  7351. The INDEXED BY phrase is required if indexing is used to refer to this table 
  7352. element. See Subscripting Using Index-Names (Indexing). 
  7353.  
  7354. The value of an index is made accessible to a program by storing the value in 
  7355. an index data-item. Index data-items are described in the program by a data 
  7356. description entry containing the USAGE IS INDEX clause. The index value is 
  7357. moved to the index data-item through the SET statement. 
  7358.  
  7359.  
  7360. ΓòÉΓòÉΓòÉ 11.17.4. Variable-Length Tables ΓòÉΓòÉΓòÉ
  7361.  
  7362. Variable-length tables are specified using Format 2 of the OCCURS clause. 
  7363.  
  7364. ΓöîΓöÇΓöÇΓöÇ OCCURS CLAUSE - FORMAT 2 - VARIABLE-LENGTH TABLES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  7365. Γöé                                        Γöé
  7366. Γöé >>ΓöÇΓöÇOCCURSΓöÇΓöÇinteger-1ΓöÇΓöÇTOΓöÇΓöÇinteger-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  7367. Γöé                    ΓööΓöÇTIMESΓöÇΓöÿ       ΓööΓöÇONΓöÇΓöÿ      Γöé
  7368. Γöé                                        Γöé
  7369. Γöé >ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  7370. Γöé                                        Γöé
  7371. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  7372. Γöé                               Γöé         Γöé
  7373. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  7374. Γöé    Γöé                  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé          Γöé
  7375. Γöé    Γöé                         Γöé Γöé          Γöé
  7376. Γöé    ΓööΓöÇΓö¼ΓöÇASCENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-2ΓöÇΓö┤ΓöÇΓöÿ          Γöé
  7377. Γöé     ΓööΓöÇDESCENDINGΓöÇΓöÿ  ΓööΓöÇKEYΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                    Γöé
  7378. Γöé                                        Γöé
  7379. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                Γöé
  7380. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                  Γöé
  7381. Γöé   Γöé                   Γöé Γöé                  Γöé
  7382. Γöé   ΓööΓöÇINDEXEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇindex-name-1ΓöÇΓö┤ΓöÇΓöÿ                  Γöé
  7383. Γöé        ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ                            Γöé
  7384. Γöé                                        Γöé
  7385. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7386.  
  7387. The length of the subject item is fixed; it is only the number of repetitions 
  7388. of the subject item that is variable. 
  7389.  
  7390. The object of the OCCURS DEPENDING ON clause must not occupy any storage 
  7391. position within the range of any table (that is, any storage position from the 
  7392. first character position in the table through the last character position in 
  7393. the table). 
  7394.  
  7395. At the time that the group item or any data item that contains a subordinate 
  7396. OCCURS DEPENDING ON item is referenced, the value of the object of the OCCURS 
  7397. DEPENDING ON clause must fall within the range integer-1 through integer-2. 
  7398. This rule does not apply to a receiving item that contains its own OCCURS 
  7399. DEPENDING ON object or when the group being referenced is used in a CALL BY 
  7400. REFERENCE statement. 
  7401.  
  7402. If the OCCURS clause is specified in a data description entry included in a 
  7403. record description entry containing the EXTERNAL clause, data-name-1 must 
  7404. reference a data item possessing the EXTERNAL attribute which is described in 
  7405. the same Data Division. 
  7406.  
  7407. If the data description entry is subordinate to one containing the GLOBAL 
  7408. clause, data-name-1 must be a global name and must reference a data item which 
  7409. is described in the same Data Division. 
  7410.  
  7411. When a group item containing a subordinate OCCURS DEPENDING ON item is referred 
  7412. to, the part of the table area used in the operation is determined as follows: 
  7413.  
  7414.   If the object is outside the group, only that part of the table area that is 
  7415.    specified by the object at the start of the operation will be used. 
  7416.  
  7417.   If the object is included in the same group and the group data item is 
  7418.    referenced as a sending item, only that part of the table area that is 
  7419.    specified by the value of the object at the start of the operation will be 
  7420.    used in the operation. 
  7421.  
  7422.   If the object is included in the same group and the group data item is 
  7423.    referenced as a receiving item, the maximum length of the group item will be 
  7424.    used in the operation. 
  7425.  
  7426.  When reference modification is applied to a group item containing a 
  7427.  variable-length table, reference modification creates a unique data item from 
  7428.  the referenced data item. The length of this referenced data item is 
  7429.  determined by first applying the previous rules. Subsequently, the rules for 
  7430.  reference modification are applied to determine the length of the unique data 
  7431.  item. 
  7432.  
  7433.  If a group item containing a variable-length table is used as an argument in 
  7434.  the CALL statement USING phrase, the size of the storage for that parameter 
  7435.  from the called program's point of view depends on how the argument is passed. 
  7436.  If it is passed BY REFERENCE, the maximum size is described by the data 
  7437.  description of the argument in the calling program. If it is passed BY 
  7438.  CONTENT, the group item is considered as a sending item. 
  7439.  
  7440.  The subject of an OCCURS clause is the data-name of the data item containing 
  7441.  the OCCURS clause. Except for the OCCURS clause itself, data description 
  7442.  clauses used with the subject apply to each occurrence of the item described. 
  7443.  
  7444.  Subscripting or indexing is required whenever the subject is used in a 
  7445.  statement other than SEARCH or USE FOR DEBUGGING, unless it is the object of a 
  7446.  REDEFINES clause. In this case, the subject refers to one occurrence within a 
  7447.  table element. 
  7448.  
  7449.  Subscripting and indexing are not allowed when the subject is used in a SEARCH 
  7450.  or USE FOR DEBUGGING statement, or when it is the object of a REDEFINES 
  7451.  clause. In this case, the subject represents an entire table element. 
  7452.  
  7453.  Note that the previous two restrictions do not apply to the LENGTH OF special 
  7454.  register. 
  7455.  
  7456.  In one record description entry, any entry that contains an OCCURS DEPENDING 
  7457.  ON clause may be followed only by items subordinate to it. 
  7458.  
  7459.  The OCCURS DEPENDING ON clause may not be specified as subordinate to another 
  7460.  OCCURS clause. 
  7461.  
  7462.  All data-names used in the OCCURS clause may be qualified; they may not be 
  7463.  subscripted or indexed. 
  7464.  
  7465.  The OCCURS or OCCURS DEPENDING ON clause cannot be specified in a data 
  7466.  description entry that: 
  7467.  
  7468.   Has a level number of 01, 66, 77, or 88. 
  7469.  
  7470.   Describes an item of variable size (an item is of variable size if any 
  7471.    subordinate entry contains an OCCURS DEPENDING ON clause). 
  7472.  
  7473.   Describes a redefined data item. (However, a redefined item can be 
  7474.    subordinate to an item containing an OCCURS clause.) See REDEFINES Clause. 
  7475.  
  7476.  The ASCENDING/DESCENDING KEY and INDEXED BY clauses are described under 
  7477.  Fixed-Length Tables. 
  7478.  
  7479.  Note:   If you use the OCCURS DEPENDING ON clause, the table must contain no 
  7480.          more than 16 711 568 occurrences, the length of a table element must 
  7481.          be no more than 16 711 568 bytes, and the length of the whole table 
  7482.          must be no more than 16 711 568 bytes. 
  7483.  
  7484.  
  7485. ΓòÉΓòÉΓòÉ 11.17.5. Subscripting ΓòÉΓòÉΓòÉ
  7486.  
  7487. Subscripting is a method of providing table references through the use of 
  7488. subscripts. A subscript is a positive integer whose value specifies the 
  7489. occurrence number of a table element. 
  7490.  
  7491. Subscripting is related to the OCCURS clause through the number of dimensions 
  7492. in a table.  For example, a 4-dimensional table will require four subscripts. 
  7493. You may think of subscripting as the COBOL way of identifying elements in a 
  7494. multidimensional array, which was defined through the OCCURS clause. 
  7495.  
  7496. If the RANGE option is specified or implied, the system ensures that the 
  7497. subscript value is valid. If the RANGE option is not active, it is your 
  7498. responsibility to ensure that the subscript value is valid. The RANGE option 
  7499. does not cause the system to verify that index entries are valid; it is your 
  7500. responsibility to ensure valid index values. 
  7501.  
  7502. Related Information: 
  7503.  
  7504.   More Detailed Information on Subscripting 
  7505.   Restrictions on Subscripting 
  7506.  
  7507.  
  7508. ΓòÉΓòÉΓòÉ 11.17.5.1. Restrictions on Subscripting ΓòÉΓòÉΓòÉ
  7509.  
  7510.   1. A data-name must not be subscripted or indexed when it is being used as a 
  7511.      subscript or qualifier. 
  7512.  
  7513.   2. An index may be modified only by a PERFORM, SEARCH, or SET statement. 
  7514.  
  7515.   3. When a literal is used in a subscript, it must be a positive or unsigned 
  7516.      integer. 
  7517.  
  7518.   4. When a literal is used in relative subscripting and indexing, it must be 
  7519.      an unsigned integer. 
  7520.  
  7521.  
  7522. ΓòÉΓòÉΓòÉ 11.18. PICTURE Clause ΓòÉΓòÉΓòÉ
  7523.  
  7524. The PICTURE clause specifies the general characteristics and editing 
  7525. requirements of an elementary item. 
  7526.  
  7527. ΓöîΓöÇΓöÇΓöÇ PICTURE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  7528. Γöé                                        Γöé
  7529. Γöé >>ΓöÇΓöÇΓö¼ΓöÇPICTUREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇcharacter-stringΓöÇΓöÇ><                 Γöé
  7530. Γöé   ΓööΓöÇPICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ                            Γöé
  7531. Γöé                                        Γöé
  7532. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7533.  
  7534. The PICTURE clause must be specified for every elementary item except an index 
  7535. data item or the subject of the RENAMES clause. 
  7536.  
  7537. The PICTURE clause is not allowed in descriptions of items described with USAGE 
  7538. IS INDEX, USAGE IS POINTER, or USAGE IS PROCEDURE-POINTER. 
  7539.  
  7540. The PICTURE character-string may contain a maximum of 30 characters. It 
  7541. consists of certain COBOL characters used as symbols. The allowable 
  7542. combinations determine the category of the elementary data item. 
  7543.  
  7544. DECIMAL-POINT IS COMMA, when specified in the SPECIAL-NAMES paragraph, 
  7545. exchanges the functions of the period and the comma in PICTURE character 
  7546. strings and in numeric literals. 
  7547.  
  7548. Related Information: 
  7549.  
  7550.   Symbols Used in the PICTURE Clause 
  7551.   Character String Representation 
  7552.   Data Categories and PICTURE Rules 
  7553.   PICTURE Clause Editing. 
  7554.  
  7555.  
  7556. ΓòÉΓòÉΓòÉ 11.18.1. Symbols Used in the PICTURE Clause ΓòÉΓòÉΓòÉ
  7557.  
  7558. Any punctuation character appearing within the PICTURE character-string is not 
  7559. considered a punctuation character, but rather a PICTURE character-string 
  7560. symbol. 
  7561.  
  7562. The lowercase letters corresponding to the uppercase letters representing the 
  7563. PICTURE symbols A, B, P, S, V, X, Z, CR, and DB are equivalent to their 
  7564. uppercase representations in a PICTURE character-string. 
  7565.  
  7566. The meaning of each PICTURE clause symbol is defined in the following list. 
  7567.  
  7568.  Symbol       Meaning 
  7569.  
  7570.  A            Alphabetic character or space 
  7571.  B            Space insertion character 
  7572.  P            Decimal scaling position (not counted in size of data item) 
  7573.  S            Operational sign (not counted in size of data item unless a SIGN 
  7574.               clause with optional SEPARATE CHARACTER phrase is specified) 
  7575.  V            Assumed decimal point (not counted in size of data item) 
  7576.  X            Alphanumeric character (any from the EBCDIC set) 
  7577.  Z            Zero suppression character 
  7578.  9            Numeric character 
  7579.               -----IBM Extension----- 
  7580.  1            Boolean character 
  7581.               ---End of IBM Extension--- 
  7582.  0            Zero insertion character 
  7583.  /            Slash insertion character 
  7584.  ,            Comma insertion character 
  7585.  .            Decimal point or period editing control character 
  7586.  +            Plus sign insertion editing control character 
  7587.  -            Minus sign editing control character 
  7588.  CR           Credit editing control character 
  7589.  DB           Debit editing control character 
  7590.  *            Check protect insertion character 
  7591.  $            Currency symbol insertion character ($ is default). 
  7592.  
  7593.  
  7594. ΓòÉΓòÉΓòÉ 11.18.2. Character-String Representation ΓòÉΓòÉΓòÉ
  7595.  
  7596. The following symbols may appear more than once in one PICTURE 
  7597. character-string: 
  7598.  
  7599. A  B  P  X  Z  9  0  /  ,  +  -  *  $
  7600.  
  7601. An integer enclosed in parentheses immediately following any of these symbols 
  7602. specifies the number of consecutive occurrences of that symbol. The number of 
  7603. consecutive occurrences cannot exceed 16 711 568. 
  7604.  
  7605. For example, the following two PICTURE clause specifications are equivalent: 
  7606.  
  7607. PICTURE IS $99999.99CR
  7608.  
  7609.  
  7610.  
  7611. PICTURE IS $9(5).9(2)CR
  7612.  
  7613. The following symbols may appear only once in one PICTURE character-string: 
  7614.  
  7615. S  V  .  CR  DB
  7616.  
  7617. or 
  7618.  
  7619. -----IBM Extension----- 
  7620.  
  7621.  1 (A character position that contains a Boolean value). 
  7622.  
  7623. ---End of IBM Extension--- 
  7624.  
  7625. Each time any of the above symbols appears in the character-string, it 
  7626. represents an occurrence of that character or set of allowable characters in 
  7627. the data item. 
  7628.  
  7629.  
  7630. ΓòÉΓòÉΓòÉ 11.18.3. Data Categories and PICTURE Rules ΓòÉΓòÉΓòÉ
  7631.  
  7632. The allowable combinations of PICTURE symbols determine the data category of 
  7633. the item. 
  7634.  
  7635.   Alphabetic items 
  7636.   Numeric Items 
  7637.   Numeric-edited items 
  7638.   Alphanumeric items 
  7639.   Alphanumeric-edited items 
  7640.    -----IBM Extension----- 
  7641.   Boolean items 
  7642.    ---End of IBM Extension--- 
  7643.  
  7644.  
  7645. ΓòÉΓòÉΓòÉ 11.18.3.1. Alphabetic Items: ΓòÉΓòÉΓòÉ
  7646.  
  7647.   The PICTURE character-string can contain only the symbol A. 
  7648.  
  7649.   The contents of the item in standard data format must consist of any of the 
  7650.    letters of the English alphabet and the space character. 
  7651.  
  7652.   USAGE DISPLAY must be specified or implied. 
  7653.  
  7654.   Any associated VALUE clause must specify a nonnumeric literal containing 
  7655.    only alphabetic characters or the figurative constant SPACE. 
  7656.  
  7657.  
  7658. ΓòÉΓòÉΓòÉ 11.18.3.2. Numeric Items: ΓòÉΓòÉΓòÉ
  7659.  
  7660.   Types of numeric items are: 
  7661.  
  7662.     - Binary 
  7663.     - Packed decimal (internal decimal) 
  7664.     - Zoned decimal (external decimal). 
  7665.  
  7666.   The PICTURE character-string can contain only the symbols 9, P, S, and V. 
  7667.  
  7668.   The number of digit positions must range from 1 through 18, inclusive. 
  7669.  
  7670.   If unsigned, the contents of the item in standard data format must contain a 
  7671.    combination of the Arabic numerals 0-9. If signed, it may also contain a +, 
  7672.    -, or other representation of the operational sign. 
  7673.  
  7674.   The USAGE of the item can be DISPLAY, BINARY, COMPUTATIONAL, or 
  7675.    PACKED-DECIMAL. 
  7676.  
  7677.    -----IBM Extension----- 
  7678.  
  7679.   The USAGE of the item can be COMPUTATIONAL-3 or COMPUTATIONAL-4. 
  7680.  
  7681.    ---End of IBM Extension--- 
  7682.  
  7683.   A VALUE clause associated with an elementary numeric item must specify a 
  7684.    numeric literal or the figurative constant ZERO. A VALUE clause associated 
  7685.    with a group item consisting of elementary numeric items must specify a 
  7686.    nonnumericliteral or a figurative constant, because the group is considered 
  7687.    alphanumeric. In both cases, the literal is treated exactly as specified; no 
  7688.    editing is performed. 
  7689.  
  7690.  Examples of numeric items: 
  7691.  
  7692.      PICTURE          Valid Range of Values
  7693.  
  7694.         9999               0 through 9999
  7695.          S99             -99 through +99
  7696.       S999V9          -999.9 through +999.9
  7697.       PPP999               0 through .000999
  7698.      S999PPP           -1000 through -999000 and
  7699.                        +1000 through +999000 or zero
  7700.  
  7701.  
  7702. ΓòÉΓòÉΓòÉ 11.18.3.3. Numeric-edited Items: ΓòÉΓòÉΓòÉ
  7703.  
  7704.   The PICTURE character-string can contain the following symbols: 
  7705.  
  7706.       B  P  V  Z  9  0  /  ,  .  +  -  CR  DB  *  $
  7707.  
  7708.    The combinations of symbols allowed are determined from the PICTURE clause 
  7709.    symbol order allowed and the editing rules (see PICTURE Clause Editing). The 
  7710.    following additional rules also apply: 
  7711.  
  7712.     - Either the BLANK WHEN ZERO clause must be specified for the item, or the 
  7713.       string must contain at least one of the following symbols: 
  7714.  
  7715.             B  /  Z  0  ,  .  *  +  -  CR  DB  $
  7716.  
  7717.     - The number of digit positions represented in the character-string must be 
  7718.       in the range 1 through 18, inclusive. 
  7719.  
  7720.     - The total length of the resultant character positions must be 127 or 
  7721.       less. 
  7722.  
  7723.   The contents of those character positions representing digits in standard 
  7724.    data format must be one of the 10 Arabic numerals. 
  7725.  
  7726.   USAGE DISPLAY must be specified or implied. 
  7727.  
  7728.   Any associated VALUE clause must specify a nonnumeric literal or a 
  7729.    figurative constant. The literal is treated exactly as specified; no editing 
  7730.    is done. 
  7731.  
  7732.  
  7733. ΓòÉΓòÉΓòÉ 11.18.3.4. Alphanumeric Items: ΓòÉΓòÉΓòÉ
  7734.  
  7735.   The PICTURE character-string must consist of either of the following: 
  7736.  
  7737.     - The symbol X 
  7738.  
  7739.     - Combinations of the symbols A, X, and 9. 
  7740.       (A character-string containing all As or all 9s does not define an 
  7741.       alphanumeric item.) 
  7742.  
  7743.   The item is treated as if the character-string contained only the symbol X. 
  7744.  
  7745.     - The contents of the item in standard data format may be any allowable 
  7746.       characters from the EBCDIC character set. 
  7747.  
  7748.     - USAGE DISPLAY must be specified or implied. 
  7749.  
  7750.     - Any associated VALUE clause must specify a nonnumeric literal or a 
  7751.       figurative constant. 
  7752.  
  7753.  
  7754. ΓòÉΓòÉΓòÉ 11.18.3.5. Alphanumeric-edited Items: ΓòÉΓòÉΓòÉ
  7755.  
  7756.   The PICTURE character-string can contain the following symbols: 
  7757.  
  7758.       A  X  9  B  0  /
  7759.  
  7760.   The string must contain at least one A or X, and at least one B or 0 (zero) 
  7761.    or /. 
  7762.  
  7763.   The contents of the item in standard data format may be any allowable 
  7764.    character from the EBCDIC character set. 
  7765.  
  7766.   The total length of the resultant character positions must be 127 or less. 
  7767.  
  7768.   USAGE DISPLAY must be specified or implied. 
  7769.  
  7770.   Any associated VALUE clause must specify a nonnumeric literal or a 
  7771.    figurative constant. The literal is treated exactly as specified; no editing 
  7772.    is done. 
  7773.  
  7774.  
  7775. ΓòÉΓòÉΓòÉ 11.18.3.6. Boolean items ΓòÉΓòÉΓòÉ
  7776.  
  7777. -----IBM Extension----- 
  7778.  
  7779. The following rules apply: 
  7780.  
  7781.   1. The PICTURE character-string can contain only the symbol 1. 
  7782.  
  7783.   2. Only one character 1 can be specified. 
  7784.  
  7785.   3. The USAGE of an item can only be DISPLAY. 
  7786.  
  7787.   4. An associated VALUE clause must specify a Boolean literal (B"1" or B"0") 
  7788.      or zero. 
  7789.  
  7790.   5. The following clauses cannot be specified for a Boolean item: 
  7791.  
  7792.      SIGN clause 
  7793.      BLANK WHEN ZERO clause 
  7794.      ASCENDING/DESCENDING KEY clause. 
  7795.  
  7796.   6. The INDICATOR clause can be specified. 
  7797.  
  7798.  ---End of IBM Extension--- 
  7799.  
  7800.  
  7801. ΓòÉΓòÉΓòÉ 11.18.4. PICTURE Clause Editing ΓòÉΓòÉΓòÉ
  7802.  
  7803. There are two general methods of editing in a PICTURE clause: 
  7804.  
  7805.   Insertion editing 
  7806.  
  7807.     - Simple insertion 
  7808.     - Special insertion 
  7809.     - Fixed insertion 
  7810.     - Floating insertion. 
  7811.  
  7812.   Suppression and replacement editing 
  7813.  
  7814.     - Zero suppression and replacement with asterisks 
  7815.     - Zero suppression and replacement with spaces. 
  7816.  
  7817.  The type of editing allowed for an item depends on its data category. The type 
  7818.  of editing that is valid for each category is shown below: 
  7819.  
  7820.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  7821.   Γöé      Valid Editing for Each Data Category        Γöé
  7822.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7823.   Γöé CATEGORY           Γöé TYPE OF EDITING       Γöé
  7824.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7825.   Γöé Alphabetic          Γöé None             Γöé
  7826.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7827.   Γöé ΓöÇΓöÇΓöÇΓöÇΓöÇIBM EXTENSIONΓöÇΓöÇΓöÇΓöÇΓöÇ    Γöé None             Γöé
  7828.   Γöé Boolean            Γöé               Γöé
  7829.   Γöé ΓöÇΓöÇΓöÇEND OF IBM EXTENSIONΓöÇΓöÇΓöÇ  Γöé               Γöé
  7830.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7831.   Γöé Numeric            Γöé None             Γöé
  7832.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7833.   Γöé Alphanumeric         Γöé None             Γöé
  7834.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7835.   Γöé Alphanumeric edited      Γöé Simple insertion       Γöé
  7836.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7837.   Γöé Numeric edited        Γöé All             Γöé
  7838.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7839.  
  7840.  
  7841. ΓòÉΓòÉΓòÉ 11.18.4.1. Simple Insertion Editing ΓòÉΓòÉΓòÉ
  7842.  
  7843. This type of editing is valid for numeric-edited and alphanumeric-edited items. 
  7844.  
  7845. Each insertion symbol is counted in the size of the item, and represents the 
  7846. position within the item where the equivalent characters will be inserted. 
  7847.  
  7848. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  7849. Γöé      Simple Insertion Editing - Valid Insertion     Γöé
  7850. Γöé      Symbols for Each Data Category           Γöé
  7851. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7852. Γöé CATEGORY           Γöé VALID INSERTION SYMBOLS   Γöé
  7853. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7854. Γöé Alphabetic          Γöé None             Γöé
  7855. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7856. Γöé ΓöÇΓöÇΓöÇΓöÇΓöÇIBM EXTENSIONΓöÇΓöÇΓöÇΓöÇΓöÇ    Γöé None             Γöé
  7857. Γöé Boolean            Γöé               Γöé
  7858. Γöé ΓöÇΓöÇΓöÇEND OF IBM EXTENSIONΓöÇΓöÇΓöÇ  Γöé               Γöé
  7859. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7860. Γöé Numeric            Γöé None             Γöé
  7861. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7862. Γöé Alphanumeric         Γöé None             Γöé
  7863. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7864. Γöé Alphanumeric edited      Γöé B 0 /            Γöé
  7865. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  7866. Γöé Numeric edited        Γöé B 0 / ,           Γöé
  7867. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  7868.  
  7869. Examples of simple insertion editing: 
  7870.  
  7871.    PICTURE          Value of Data      Edited Results
  7872.  
  7873.    X(10)/XX         ALPHANUMER01       ALPHANUMER/01
  7874.    X(5)BX(7)        ALPHANUMERIC       ALPHA NUMERIC
  7875.    99,B999,B000     1234               01, 234, 000
  7876.    99,999           12345              12,345
  7877.    GGBBGG           D1D2D3D4           D1D2    D3D4
  7878.  
  7879.  
  7880. ΓòÉΓòÉΓòÉ 11.18.4.2. Special Insertion Editing ΓòÉΓòÉΓòÉ
  7881.  
  7882. This type of editing is valid only for numeric-edited items. 
  7883.  
  7884. The period (.) is the special insertion symbol; it also represents the actual 
  7885. decimal point for alignment purposes. 
  7886.  
  7887. The period insertion symbol is counted in the size of the item, and represents 
  7888. the position within the item where the actual decimal point is inserted. 
  7889.  
  7890. Either the actual decimal point or the symbol V as the assumed decimal point, 
  7891. but not both, must be specified in one PICTURE character-string. 
  7892.  
  7893. Examples of special insertion editing: 
  7894.  
  7895.    PICTURE          Value of Data      Edited Results
  7896.  
  7897.    999.99              1.234           001.23
  7898.    999.99             12.34            012.34
  7899.    999.99            123.45            123.45
  7900.    999.99           1234.5             234.50
  7901.  
  7902.  
  7903. ΓòÉΓòÉΓòÉ 11.18.4.3. Fixed Insertion Editing ΓòÉΓòÉΓòÉ
  7904.  
  7905. This type of editing is valid only for numeric-edited items. The following 
  7906. insertion symbols are used: 
  7907.  
  7908.  $  (currency symbol) 
  7909.  
  7910.  +  -  CR  DB  (editing-sign control symbols) 
  7911.  
  7912.  In fixed insertion editing, only one currency symbol and one editing sign 
  7913.  control symbol can be specified in one PICTURE character-string. 
  7914.  
  7915.  Unless it is preceded by a + or - symbol, the currency symbol must be the 
  7916.  first character in the character-string. 
  7917.  
  7918.  When either + or - is used as a symbol, it must be the first or last character 
  7919.  in the character-string. 
  7920.  
  7921.  When CR or DB is used as a symbol, it must occupy the rightmost two character 
  7922.  positions in the character-string. If these two character positions contain 
  7923.  the symbols CR or DB, the uppercase letters are the insertion characters. 
  7924.  
  7925.  Editing sign control symbols produce results that depend on the value of the 
  7926.  data item, as shown below: 
  7927.  
  7928.      Editing Symbol       Result:              Result:
  7929.      in PICTURE           Data Item            Data Item
  7930.      Character-String     Positive or Zero     Negative
  7931.  
  7932.      +                    +                    -
  7933.      -                    space                -
  7934.      CR                   2 spaces             CR
  7935.      DB                   2 spaces             DB
  7936.  
  7937.  Examples of fixed insertion editing: 
  7938.  
  7939.       PICTURE         Value of Data    Edited Result
  7940.  
  7941.        999.99+         +6555.556         555.55+
  7942.      +9999.99          -6555.555       -6555.55
  7943.       9999.99          +1234.56         1234.56
  7944.       $999.99           -123.45         $123.45
  7945.      -$999.99           -123.456       -$123.45
  7946.      -$999.99           +123.456        $123.45
  7947.      $9999.99CR         +123.45        $0123.45
  7948.      $9999.99DB         -123.45        $0123.45DB
  7949.  
  7950.  Note:   Beware of situations where sign truncation would lead to negative 
  7951.          amounts being shown as credits. 
  7952.  
  7953.  
  7954. ΓòÉΓòÉΓòÉ 11.18.4.4. Floating Insertion Editing ΓòÉΓòÉΓòÉ
  7955.  
  7956. This type of editing is valid only for numeric-edited items. The following 
  7957. symbols are used: 
  7958.  
  7959.  $  +  - 
  7960.  
  7961.  Within one PICTURE character-string, these symbols are mutually exclusive as 
  7962.  floating insertion characters. 
  7963.  
  7964.  Floating insertion editing is specified by using a string of at least two of 
  7965.  the allowable floating insertion symbols to represent leftmost character 
  7966.  positions into which these actual characters can be inserted. 
  7967.  
  7968.  The leftmost floating insertion symbol in the character-string represents the 
  7969.  leftmost limit at which this actual character can appear in the data item. The 
  7970.  rightmost floating insertion symbol represents the rightmost limit at which 
  7971.  this actual character can appear. 
  7972.  
  7973.  The second leftmost floating insertion symbol in the character-string 
  7974.  represents the leftmost limit at which numeric data can appear within the data 
  7975.  item. Nonzero numeric data may replace all characters at or to the right of 
  7976.  this limit. 
  7977.  
  7978.  Any simple-insertion symbols (B 0 / ,) within or to the immediate right of the 
  7979.  string of floating insertion symbols are considered part of the floating 
  7980.  character-string. If the period (.) special-insertion symbol is included 
  7981.  within the floating string, it is considered to be part of the 
  7982.  character-string. 
  7983.  
  7984.  In a PICTURE character-string, there are two ways to represent floating 
  7985.  insertion editing and thus, two ways in which editing is performed: 
  7986.  
  7987.   1. Any or all leading numeric character positions to the left of the decimal 
  7988.      point are represented by the floating insertion symbol. When editing is 
  7989.      performed, a single floating insertion character is placed to the 
  7990.      immediate left of the first nonzero digit in the data, or of the decimal 
  7991.      point, whichever is farther to the left. The character positions to the 
  7992.      left of the inserted character are filled with spaces. 
  7993.  
  7994.   2. All the numeric character positions are represented by the floating 
  7995.      insertion symbol. When editing is performed, then: 
  7996.  
  7997.      If the value of the data is zero, the entire data item will contain 
  7998.       spaces. 
  7999.      If the value of the data is nonzero, the result is the same as in rule 1. 
  8000.  
  8001.  To avoid truncation, the minimum size of the PICTURE character-string must be: 
  8002.  
  8003.   The number of character positions in the sending item, plus 
  8004.   The number of nonfloating insertion symbols in the receiving item, plus 
  8005.   One character for the floating insertion symbol. 
  8006.  
  8007.  Examples of floating insertion editing: 
  8008.  
  8009.      PICTURE               Value of Data        Edited Result
  8010.  
  8011.            $$$$.99                 .123                  $.12
  8012.            $$$9.99                 .12                  $0.12
  8013.       $,$$$,999.99            -1234.56              $1,234.56
  8014.       +,+++,999.99          -123456.789           -123,456.78
  8015.      $$,$$$,$$$.99CR       -1234567             $1,234,567.00CR
  8016.      ++,+++,+++.+++            0000.00
  8017.  
  8018.  Note:   Beware of situations where sign truncation would lead to negative 
  8019.          amounts being shown as credits. 
  8020.  
  8021.  
  8022. ΓòÉΓòÉΓòÉ 11.18.4.5. Zero Suppression and Replacement Editing ΓòÉΓòÉΓòÉ
  8023.  
  8024. This type of editing is valid only for numeric-edited items. In zero 
  8025. suppression editing, the symbols Z and * are used. These symbols are mutually 
  8026. exclusive in one PICTURE character-string. 
  8027.  
  8028. The following symbols are mutually exclusive as floating replacement symbols in 
  8029. one PICTURE character-string: 
  8030.  
  8031.  Z  *  +  - $ 
  8032.  
  8033.  Specify zero suppression and replacement editing with a string of one or more 
  8034.  of the allowable symbols to represent leftmost character positions in which 
  8035.  zero suppression and replacement editing can be performed. 
  8036.  
  8037.  Any simple insertion symbols (B 0 / ,) within or to the immediate right of the 
  8038.  string of floating editing symbols are considered part of the string. If the 
  8039.  period (.) special insertion symbol is included within the floating editing 
  8040.  string, it is considered to be part of the character-string. 
  8041.  
  8042.  In a PICTURE character-string, there are two ways to represent zero 
  8043.  suppression, and two ways in which editing is performed: 
  8044.  
  8045.   Any or all of the leading numeric character positions to the left of the 
  8046.    decimal point are represented by suppression symbols. When editing is 
  8047.    performed, any leading zero in the data that appears in the same character 
  8048.    position as a suppression symbol is replaced by the replacement character. 
  8049.    Suppression stops at the leftmost character: 
  8050.  
  8051.     - That does not correspond to a suppression symbol 
  8052.     - That contains nonzero data 
  8053.     - That is the decimal point. 
  8054.  
  8055.   All the numeric character positions in the PICTURE character-string are 
  8056.    represented by the suppression symbols. When editing is performed, and the 
  8057.    value of the data is nonzero, the result is the same as in the preceding 
  8058.    rule. If the value of the data is zero, then: 
  8059.  
  8060.     - If Z has been specified, the entire data item will contain spaces. 
  8061.  
  8062.     - If * has been specified, the entire data item, except the actual decimal 
  8063.       point, will contain asterisks. 
  8064.  
  8065.  Note:   Do not specify both the asterisk (*) as a suppression symbol and the 
  8066.  BLANK WHEN ZERO clause for the same entry. 
  8067.  
  8068.  Examples of zero suppression and replacement editing: 
  8069.  
  8070.      PICTURE               Value of Data       Edited Result
  8071.  
  8072.             ****.**               0000.00               ****.**
  8073.             ZZZZ.ZZ               0000.00
  8074.             ZZZZ.99               0000.00                   .00
  8075.             ****.99               0000.00               ****.00
  8076.             ZZ99.99               0000.00                 00.00
  8077.            Z,ZZZ.ZZ+              +123.456               123.45+
  8078.            *,***.**+              -123.45              **123.45-
  8079.       **,***,***.**+         +12345678.9          12,345,678.90+
  8080.       $Z,ZZZ,ZZZ.ZZCR           +12345.67         $   12,345.67
  8081.      $B*,***,***.**BBDB         -12345.67        $ ***12,345.67  DB
  8082.  
  8083.  
  8084. ΓòÉΓòÉΓòÉ 11.19. REDEFINES Clause ΓòÉΓòÉΓòÉ
  8085.  
  8086. The REDEFINES clause allows you to use different data description entries to 
  8087. describe the same computer storage area. 
  8088.  
  8089. ΓöîΓöÇΓöÇΓöÇ REDEFINES CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8090. Γöé                                        Γöé
  8091. Γöé >>ΓöÇΓöÇlevel-numberΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇREDEFINESΓöÇΓöÇdata-name-2ΓöÇΓöÇ><         Γöé
  8092. Γöé          Γö£ΓöÇdata-name-1ΓöÇΓöñ                       Γöé
  8093. Γöé          ΓööΓöÇFILLERΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  8094. Γöé                                        Γöé
  8095. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8096.  
  8097. When specified, the REDEFINES clause must be the first entry following 
  8098. data-name-1 or FILLER. If data-name-1 or FILLER is not specified, the REDEFINES 
  8099. clause must be the first entry following the level-number. The data item being 
  8100. described is treated as though FILLER has been specified. 
  8101.  
  8102. The level-numbers of data-name-1 and data-name-2 must be identical, and must 
  8103. not be level 66 or level 88. 
  8104.  
  8105. The following rules apply when coding the REDEFINES clause. 
  8106.  
  8107. When more than one level-01 entry is written subordinate to an FD entry, a 
  8108. condition known as implicit redefinition occurs. That is, the second level-01 
  8109. entry implicitly redefines the storage allotted for the first entry. In such 
  8110. level-01 entries, the REDEFINES clause must not be specified. 
  8111.  
  8112. Related Information: 
  8113.  
  8114.   Redefinition Process 
  8115.   REDEFINE Clause Considerations 
  8116.   Coding Examples 
  8117.   Undefined Results. 
  8118.  
  8119.  
  8120. ΓòÉΓòÉΓòÉ 11.19.1. Redefinition Process ΓòÉΓòÉΓòÉ
  8121.  
  8122. Redefinition begins at data-name-1 and ends when a level-number less than or 
  8123. equal to that of data-name-1 is encountered. No entry having a level-number 
  8124. numerically lower than those of data-name-1 and data-name-2 may occur between 
  8125. these entries. For example: 
  8126.  
  8127. 05    A PICTURE X(6).
  8128. 05    B REDEFINES A.
  8129.   10 B-1                      PICTURE X(2).
  8130.   10 B-2                      PICTURE 9(4).
  8131. 05   C                        PICTURE 99V99.
  8132.  
  8133. In this example, A is the redefined item, and B is the redefining item. 
  8134. Redefinition begins with B and includes the two subordinate items B-1 and B-2. 
  8135. Redefinition ends when the level-05 item C is encountered. 
  8136.  
  8137. The data description entry for the redefined item cannot contain an OCCURS 
  8138. clause. However, the redefined item may be subordinate to an item whose data 
  8139. description entry contains an OCCURS clause. In this case, the reference to the 
  8140. redefined item in the REDEFINES clause may not be subscripted. Neither the 
  8141. original definition nor the redefinition can include a variable occurrence data 
  8142. item (in other words, they cannot contain an OCCURS DEPENDING ON clause). 
  8143.  
  8144. If the GLOBAL  clause is used in the data description entry which contains the 
  8145. REDEFINES clause, only the subject of the clause possesses the global 
  8146. attribute. The EXTERNAL clause must not be specified on the same data 
  8147. description entry as a REDEFINES clause. If the object is GLOBAL or EXTERNAL, 
  8148. the subject does not inherit the attribute. 
  8149.  
  8150. Data-name-1, the redefining item, may be smaller than data-name-2, the 
  8151. redefined item. However, if the redefined item is specified with a level-number 
  8152. other than 01, it is declared to be part of an external record, and the number 
  8153. of character positions it contains must be greater than or equal to the number 
  8154. of character positions in the redefining item. 
  8155.  
  8156. One or more redefinitions of the same storage area are permitted. The entries 
  8157. giving the new descriptions of the storage area must be in the same section, 
  8158. and must immediately follow the description of the redefined area without 
  8159. intervening entries that define new character positions. Multiple redefinitions 
  8160. must all use the data-name of the original entry that defined this storage 
  8161. area. For example: 
  8162.  
  8163. 05    A                       PICTURE 9999.
  8164. 05    B REDEFINES A           PICTURE 9V999.
  8165. 05    C REDEFINES A           PICTURE 99V99.
  8166.  
  8167. The redefining entry (identified by data-name-1), and any subordinate entries, 
  8168. must not contain any VALUE clauses. 
  8169.  
  8170.  
  8171. ΓòÉΓòÉΓòÉ 11.19.2. REDEFINES Clause Considerations ΓòÉΓòÉΓòÉ
  8172.  
  8173. Data items within an area can be redefined without changing their lengths. For 
  8174. example: 
  8175.  
  8176. 05  NAME-2.
  8177.   10  SALARY                  PICTURE XXX.
  8178.   10  SO-SEC-NO               PICTURE X(9).
  8179.   10  MONTH                   PICTURE XX.
  8180. 05  NAME-1 REDEFINES NAME-2.
  8181.   10  WAGE                    PICTURE XXX.
  8182.   10  EMP-NO                  PICTURE X(9).
  8183.   10  YEAR                    PICTURE XX.
  8184.  
  8185. Data item lengths and types can also be respecified within an area. For 
  8186. example: 
  8187.  
  8188. 05  NAME-2.
  8189.   10  SALARY                  PICTURE XXX.
  8190.   10  SO-SEC-NO               PICTURE X(9).
  8191.   10  MONTH                   PICTURE XX.
  8192. 05  NAME-1 REDEFINES NAME-2.
  8193.   10  WAGE                    PICTURE 999V999.
  8194.   10  EMP-NO                  PICTURE X(6).
  8195.   10  YEAR                    PICTURE XX.
  8196.  
  8197. When an area is redefined, all descriptions of the area are always in effect; 
  8198. that is, redefinition does not cause any data to be erased and never supersedes 
  8199. a previous description. Thus, if B REDEFINES C has been specified, either of 
  8200. the two procedural statements, MOVE X TO B and MOVE Y TO C, could be executed 
  8201. at any point in the program. 
  8202.  
  8203. In the first case, the area described as B would assume the value and format of 
  8204. X. In the second case, the same physical area (described now as C) would assume 
  8205. the value and format of Y. Note that, if the second statement is executed 
  8206. immediately after the first, the value of Y replaces the value of X in the one 
  8207. storage area. 
  8208.  
  8209. The usage of a redefining data item need not be the same as that of a redefined 
  8210. item. This does not, however, cause any change in existing data. For example: 
  8211.  
  8212. 05  B                      PICTURE  99 USAGE DISPLAY VALUE 8.
  8213. 05  C REDEFINES B          PICTURE S99 USAGE COMPUTATIONAL-4.
  8214. 05  A                      PICTURE S99 USAGE COMPUTATIONAL-4.
  8215.  
  8216. The bit configuration of the DISPLAY value 8 is 
  8217.  
  8218. 1111 0000 1111 1000.
  8219. Redefining B does not change the bit configuration of the data in the storage 
  8220. area. Therefore, the following two statements produce different results: 
  8221.  
  8222. ADD B TO A
  8223. ADD C TO A
  8224.  
  8225. In the first case, the value 8 is added to A (because B has USAGE DISPLAY). In 
  8226. the second statement, the value -48 is added to A (because C has USAGE 
  8227. COMPUTATIONAL-4) because the bit configuration (truncated to 2 decimal digits) 
  8228. in the storage area has the binary value -48. 
  8229.  
  8230. The above example demonstrates how the improper use of redefinition may give 
  8231. unexpected or incorrect results. 
  8232.  
  8233.  
  8234. ΓòÉΓòÉΓòÉ 11.19.3. Coding Examples ΓòÉΓòÉΓòÉ
  8235.  
  8236. The REDEFINES clause may be specified for an item within the scope of an area 
  8237. being redefined (that is, an item subordinate to a redefined item). For 
  8238. example: 
  8239.  
  8240. 05  REGULAR-EMPLOYEE.
  8241.   10  LOCATION                       PICTURE A(8).
  8242.   10  GRADE                          PICTURE X(4).
  8243.   10  SEMI-MONTHLY-PAY               PICTURE 9999V99.
  8244.   10  WEEKLY-PAY REDEFINES SEMI-MONTHLY-PAY
  8245.                                      PICTURE 999V999.
  8246.  
  8247. 05  TEMPORARY-EMPLOYEE REDEFINES REGULAR-EMPLOYEE.
  8248.   10  LOCATION                       PICTURE A(8).
  8249.   10  FILLER                         PICTURE X(6).
  8250.   10  HOURLY-PAY                     PICTURE 99V99.
  8251.  
  8252. The REDEFINES clause may also be specified for an item subordinate to a 
  8253. redefining item. For example: 
  8254.  
  8255. 05  REGULAR-EMPLOYEE.
  8256.   10  LOCATION                       PICTURE A(8).
  8257.   10  GRADE                          PICTURE X(4).
  8258.   10  SEMI-MONTHLY-PAY               PICTURE 999V999.
  8259.  
  8260. 05  TEMPORARY-EMPLOYEE REDEFINES REGULAR-EMPLOYEE.
  8261.   10  LOCATION                       PICTURE A(8).
  8262.   10  FILLER                         PICTURE X(6).
  8263.   10  HOURLY-PAY                     PICTURE 99V99.
  8264.   10  CODE-H REDEFINES HOURLY-PAY    PICTURE 9999.
  8265.  
  8266.  
  8267. ΓòÉΓòÉΓòÉ 11.19.4. Undefined Results ΓòÉΓòÉΓòÉ
  8268.  
  8269. Undefined results may occur when: 
  8270.  
  8271.   A redefining item is moved to a redefined item (that is, if B REDEFINES C 
  8272.    and the statement MOVE B TO C is executed). 
  8273.  
  8274.   A redefined item is moved to a redefining item (that is, if B REDEFINES C 
  8275.    and if the statement MOVE C TO B is executed). 
  8276.  
  8277.  
  8278. ΓòÉΓòÉΓòÉ 11.20. RENAMES Clause ΓòÉΓòÉΓòÉ
  8279.  
  8280. The RENAMES clause specifies alternative, possibly overlapping, groupings of 
  8281. elementary data items. 
  8282.  
  8283. ΓöîΓöÇΓöÇΓöÇ RENAMES CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8284. Γöé                                        Γöé
  8285. Γöé >>ΓöÇΓöÇ66ΓöÇΓöÇdata-name-1ΓöÇΓöÇRENAMESΓöÇΓöÇdata-name-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  8286. Γöé                                        Γöé
  8287. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                    Γöé
  8288. Γöé   ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇdata-name-3ΓöÇΓöÿ                        Γöé
  8289. Γöé    ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                               Γöé
  8290. Γöé                                        Γöé
  8291. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8292.  
  8293. One or more RENAMES entries can be written for a logical record. All RENAMES 
  8294. entries associated with one logical record must immediately follow that 
  8295. record's last data description entry. 
  8296.  
  8297.  
  8298. ΓòÉΓòÉΓòÉ 11.20.1. data-name-1 ΓòÉΓòÉΓòÉ
  8299.  
  8300. Identifies an alternative grouping of data items. 
  8301.  
  8302. A level-66 entry cannot rename a level-01, level-77, level-88, or another 
  8303. level-66 entry. 
  8304.  
  8305. Data-name-1 cannot be used as a qualifier; it can be qualified only by the 
  8306. names of level indicator entries or level-01 entries. 
  8307.  
  8308.  
  8309. ΓòÉΓòÉΓòÉ 11.20.2. data-name-2, data-name-3 ΓòÉΓòÉΓòÉ
  8310.  
  8311. Identify the original grouping of elementary data items; that is, they must be 
  8312. elementary or group items within the associated level-01 entry, and must not be 
  8313. the same data-name. Both data-names may be qualified. 
  8314.  
  8315. The OCCURS clause must not be specified in the data entries for data-name-2 and 
  8316. data-name-3, or for any group entry to which they are subordinate. In addition, 
  8317. the OCCURS DEPENDING ON clause must not be specified for any item defined 
  8318. between data-name-2 and data-name-3. 
  8319.  
  8320. When data-name-3 is specified, data-name-1 is treated as a group item that 
  8321. includes all elementary items: 
  8322.  
  8323.   Starting with data-name-2 (if it is an elementary item) or the first 
  8324.    elementary item within data-name-2 (if it is a group item) 
  8325.  
  8326.   Ending with data-name-3 (if it is an elementary item) or the last elementary 
  8327.    item within data-name-3 (if it is a group item) 
  8328.  
  8329.  The leftmost character in data-name-3 must not precede that in data-name-2; 
  8330.  the rightmost character in data-name-3 must follow that in data-name-2. This 
  8331.  means that data-name-3 cannot be subordinate to data-name-2. 
  8332.  
  8333.  When data-name-3 is not specified, all of the data attributes of data-name-2 
  8334.  become the data attributes for data-name-1. That is: 
  8335.  
  8336.   When data-name-2 is a group item, data-name-1 is treated as a group item. 
  8337.  
  8338.   When data-name-2 is an elementary item, data-name-1 is treated as an 
  8339.    elementary item. 
  8340.  
  8341.  Related Information: 
  8342.  
  8343.   Illustrations of Valid and Invalid RENAMES Clause Specifications 
  8344.  
  8345.  
  8346. ΓòÉΓòÉΓòÉ 11.20.3. Illustrations of Valid and Invalid RENAMES Clause Specifications ΓòÉΓòÉΓòÉ
  8347.  
  8348. RENAMES Clause-Valid and Invalid Specifications 
  8349.  
  8350.   COBOL Specifications               Storage Layouts
  8351.  
  8352. Example 1 (Valid)
  8353.  01  RECORDΓöÇI.
  8354.     05 DNΓöÇ1... .            ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇRECORDΓöÇIΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8355.     05 DNΓöÇ2... .            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8356.     05 DNΓöÇ3... .            Γöé DNΓöÇ1 Γöé  DNΓöÇ2  Γöé  DNΓöÇ3   Γöé  DNΓöÇ4  Γöé
  8357.     05 DNΓöÇ4... .            ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8358.  66  DNΓöÇ6 RENAMES DNΓöÇ1 THROUGH DNΓöÇ3.  ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ6ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8359.  
  8360. Example 2 (Valid)
  8361.  01  RECORDΓöÇII.             ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇRECORDΓöÇIIΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8362.     05 DNΓöÇ1.              ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé     Γöé
  8363.      10 DNΓöÇ2... .          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8364.      10 DNΓöÇ2A... .          Γöé  DNΓöÇ2  Γöé    DNΓöÇ2A    Γöé  DNΓöÇ5  Γöé
  8365.     05 DNΓöÇ1A REDEFINES DNΓöÇ1.      ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8366.      10 DNΓöÇ3A... .          ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ1AΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8367.      10 DNΓöÇ3... .          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8368.      10 DNΓöÇ3B... .          Γöé DNΓöÇ3A Γöé  DNΓöÇ3  Γöé  DNΓöÇ3B   Γöé
  8369.     05 DNΓöÇ5... .            ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8370.  66  DNΓöÇ6 RENAMES DNΓöÇ2 THROUGH DNΓöÇ3.  ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ6ΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8371.  
  8372. Example 3 (Invalid)
  8373.  01  RECORDΓöÇIII.            ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇRECORDΓöÇIIIΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8374.     05 DNΓöÇ2.              ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé         Γöé
  8375.      10 DNΓöÇ3... .          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8376.      10 DNΓöÇ4... .          Γöé  DNΓöÇ3  Γöé   DNΓöÇ4   Γöé   DNΓöÇ5    Γöé
  8377.     05 DNΓöÇ5... .            ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8378.  66  DNΓöÇ6 RENAMES DNΓöÇ2 THROUGH DNΓöÇ3.  DNΓöÇ6 is indeterminate
  8379.  
  8380. Example 4 (Invalid)
  8381.  01  RECORDΓöÇIV.             ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇRECORDΓöÇIVΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé
  8382.     05 DNΓöÇ1.              ΓöéΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇDNΓöÇ1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöé       Γöé
  8383.      10 DNΓöÇ2A... .          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8384.      10 DNΓöÇ2B... .          Γöé  DNΓöÇ2A  Γöé   DNΓöÇ2B   Γöé   DNΓöÇ3   Γöé
  8385.      10 DNΓöÇ2C REDEFINES DNΓöÇ2B.    ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8386.        15 DNΓöÇ2... .              ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8387.        15 DNΓöÇ2D... .              Γöé DNΓöÇ2  Γöé DNΓöÇ2D Γöé
  8388.     05 DNΓöÇ3... .                 ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8389.  66  DNΓöÇ4 RENAMES DNΓöÇ1 THROUGH DNΓöÇ2.  DNΓöÇ4 is indeterminate
  8390.  
  8391.  
  8392. ΓòÉΓòÉΓòÉ 11.21. SIGN Clause ΓòÉΓòÉΓòÉ
  8393.  
  8394. The SIGN clause specifies the position and mode of representation of the 
  8395. operational sign for a numeric entry. 
  8396.  
  8397. ΓöîΓöÇΓöÇΓöÇ SIGN CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8398. Γöé                                        Γöé
  8399. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇLEADINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><      Γöé
  8400. Γöé   ΓööΓöÇSIGNΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  ΓööΓöÇTRAILINGΓöÇΓöÿ  ΓööΓöÇSEPARATEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ        Γöé
  8401. Γöé       ΓööΓöÇISΓöÇΓöÿ                ΓööΓöÇCHARACTERΓöÇΓöÿ         Γöé
  8402. Γöé                                        Γöé
  8403. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8404.  
  8405. The SIGN clause may be specified only for a signed numeric data description 
  8406. entry (that is, one whose PICTURE character-string contains an S), or for a 
  8407. group item that contains at least one such elementary entry. USAGE IS DISPLAY 
  8408. must be specified, explicitly or implicitly. 
  8409.  
  8410. The SIGN clause is required only when an explicit description of the properties 
  8411. and/or position of the operational sign is necessary. 
  8412.  
  8413. When specified, the SIGN clause defines the position and mode of representation 
  8414. of the operational sign for the numeric data description entry to which it 
  8415. applies, or for each signed numeric data description entry subordinate to the 
  8416. group to which it applies. 
  8417.  
  8418. If a SIGN clause is specified in either an elementary or group entry 
  8419. subordinate to a group item for which a SIGN clause is specified, the SIGN 
  8420. clause for the subordinate entry takes precedence for the subordinate entry. 
  8421.  
  8422. If you specify the CODE-SET clause in an FD entry, any signed numeric data 
  8423. description entries associated with that file description entry must be 
  8424. described with the SIGN IS SEPARATE clause. 
  8425.  
  8426. Every numeric data description entry whose PICTURE contains the symbol S is a 
  8427. signed numeric data description entry. If the SIGN clause is also specified for 
  8428. such an entry, and conversion is necessary for computations or comparisons, the 
  8429. conversion takes place automatically. 
  8430.  
  8431.  
  8432. ΓòÉΓòÉΓòÉ 11.21.1. SEPARATE CHARACTER ΓòÉΓòÉΓòÉ
  8433.  
  8434. If the SEPARATE CHARACTER phrase is not specified, then: 
  8435.  
  8436.   The operational sign is presumed to be associated with the LEADING or 
  8437.    TRAILING digit position, whichever is specified, of the elementary numeric 
  8438.    data item. (In this instance, specification of SIGN IS TRAILING is the 
  8439.    equivalent of the standard action of the compiler.) 
  8440.  
  8441.   The character S in the PICTURE character string is not counted in 
  8442.    determining the size of the item (in terms of standard data format 
  8443.    characters). 
  8444.  
  8445.    If the SEPARATE CHARACTER phrase is specified, then: 
  8446.  
  8447.   The operational sign is presumed to be the LEADING or TRAILING character 
  8448.    position, whichever is specified, of the elementary numeric data item. This 
  8449.    character position is not a digit position. 
  8450.  
  8451.   The character S in the PICTURE character string is counted in determining 
  8452.    the size of the data item (in terms of standard data format characters). 
  8453.  
  8454.   + is the character used for the positive operational sign. 
  8455.  
  8456.   - is the character used for the negative operational sign. 
  8457.  
  8458.  
  8459. ΓòÉΓòÉΓòÉ 11.22. SYNCHRONIZED Clause ΓòÉΓòÉΓòÉ
  8460.  
  8461. The SYNCHRONIZED clause specifies the alignment of an elementary item in 
  8462. storage. To use the SYNCHRONIZED clause, specify the *SYNC compiler option on 
  8463. the CRTCBLMOD or CRTBNDCBL command. 
  8464.  
  8465. ΓöîΓöÇΓöÇΓöÇ SYNCHRONIZED CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8466. Γöé                                        Γöé
  8467. Γöé >>ΓöÇΓöÇΓö¼ΓöÇSYNCHRONIZEDΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                    Γöé
  8468. Γöé   ΓööΓöÇSYNCΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé    (1) Γöé                      Γöé
  8469. Γöé            Γö£ΓöÇLEFTΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                      Γöé
  8470. Γöé            Γöé    (1)Γöé                      Γöé
  8471. Γöé            ΓööΓöÇRIGHTΓöÇΓöÇΓöÇΓöÇΓöÿ                      Γöé
  8472. Γöé                                        Γöé
  8473. Γöé NOTE:                                     Γöé
  8474. Γöé (1)  Syntax checked only                           Γöé
  8475. Γöé                                        Γöé
  8476. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8477.  
  8478. When specified, the LEFT and the RIGHT phrases are syntax checked, but they 
  8479. have no effect on the execution of the program. 
  8480.  
  8481. If synchronization is not specified, data is placed contiguously without filler 
  8482. space. If synchronization is specified, data is aligned along addresses which 
  8483. may be wholly divisible by 1, 2, 4, 8, or 16 bytes (where allowed - see Data 
  8484. item USAGE and the SYNCHRONIZATION clause). This may require the (implicit) use 
  8485. of filler space, should the preceding data item not use all the bytes between 
  8486. boundaries. 
  8487.  
  8488. Related Information: 
  8489.  
  8490.   Benefits of Synchronized Data 
  8491.   Synchronization and Offsets 
  8492.   Specifying the SYNCHRONIZED Clause with the OCCURS Clause 
  8493.   Specifying the SYNCHRONIZED Clause with the REDEFINES Clause 
  8494.   FILLER Items 
  8495.   Example of Implicit FILLER. 
  8496.  
  8497.  
  8498. ΓòÉΓòÉΓòÉ 11.22.1. Benefits of Synchronized Data ΓòÉΓòÉΓòÉ
  8499.  
  8500. What is the benefit of synchronizing data?  Improved performance in terms of 
  8501. its accessibility. The penalty is some wasted storage, due to increased record 
  8502. size (filler spaces become part of the record). 
  8503.  
  8504. Level 01 items and pointers are aligned on 16-byte boundaries always, whether 
  8505. synchronization is specified or not.  You are allowed to specify 
  8506. synchronization only for elementary items.  It is not permitted for group 
  8507. items. 
  8508.  
  8509. Data storage representation without and with synchronization illustrates the 
  8510. concept: 
  8511.  
  8512. Data storage representation without and with synchronization 
  8513.  
  8514.     01    A
  8515.      05   A2 PIC X(3)
  8516.      05   A3 PIC 9(5) BINARY
  8517.     01    B
  8518.      05   B2 PIC X(16)
  8519.  
  8520.  
  8521. WITHOUT SYNCHRONIZATION
  8522.  
  8523.  
  8524.         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8525.         Γöé    item A    Γöé    Γöé      item B     Γöé
  8526. Data       Γöé          Γöé    Γöé             Γöé
  8527. Storage     Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8528. Representation  Γöé     Γöé     Γöé fil- Γöé     item B2     Γöé
  8529.         Γöé item A2 Γöéitem A3 Γöé ler  Γöé             Γöé
  8530.         Γöé     Γöé     Γöé    Γöé             Γöé
  8531.         ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8532. Bytes      0     3     7    16
  8533.  
  8534.  
  8535. WITH SYNCHRONIZATION
  8536.  
  8537.         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8538.         Γöé    item A     Γöé  Γöé      item B     Γöé
  8539. Data       Γöé           Γöé  Γöé             Γöé
  8540. Storage     Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8541. Representation  Γöé     ΓöéfiΓöé     ΓöéfilΓöé     item B2     Γöé
  8542.         Γöé item A2 ΓöéllΓöéitem A3 ΓöélerΓöé             Γöé
  8543.         Γöé     ΓöéerΓöé     Γöé  Γöé             Γöé
  8544.         ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8545. Bytes      0     3  4     8  16
  8546.  
  8547. Data storage representation without and with synchronization shows that A and B 
  8548. are always aligned on 16 byte boundaries.  Without synchronization, A2 and A3 
  8549. are stored contiguously regardless of size. With synchronization, a 4 byte 
  8550. boundary is chosen (due to A3's type), and A3 is aligned accordingly.  There is 
  8551. a one byte filler between A2 and A3.  However, A3 should be accessed faster. 
  8552.  
  8553.  
  8554. ΓòÉΓòÉΓòÉ 11.22.2. Synchronization and Offsets: ΓòÉΓòÉΓòÉ
  8555.  
  8556. In the preceding figure, note that A and B do not have to be following each 
  8557. other in actual storage.  In other words, you cannot know if B starts 16 bytes 
  8558. after A's start, or 48 bytes (16 x 3), or 16 x N bytes. You must not attempt to 
  8559. retrieve synchronized data by specifying offsets. 
  8560.  
  8561. -----IBM Extension----- 
  8562.  
  8563. The SYNCHRONIZED clause is implicit for pointer data and procedure-pointer data 
  8564. items. Pointer data and procedure-pointer data items declared in the Linkage 
  8565. Section are not synchronized. 
  8566.  
  8567. ---End of IBM Extension--- 
  8568.  
  8569. Depending on the USAGE that is specified for an item, the SYNCHRONIZED clause 
  8570. has a particular effect. Data item USAGE and the SYNCHRONIZATION clause shows 
  8571. how the USAGE of an item determines the effect of the SYNCHRONIZED clause upon 
  8572. it. 
  8573.  
  8574. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8575. Γöé      Data item USAGE and the SYNCHRONIZATION clause            Γöé
  8576. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8577. Γöé IF THE USAGE IS...       Γöé THE SYNCHRONIZED CLAUSE...          Γöé
  8578. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8579. Γöé DISPLAY            Γöé is syntax checked but does not affect exe-  Γöé
  8580. Γöé                Γöé cution                    Γöé
  8581. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8582. Γöé PACKED-DECIMAL         Γöé is syntax checked but does not affect exe-  Γöé
  8583. Γöé                Γöé cution                    Γöé
  8584. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8585. Γöé COMPUTATIONAL-3        Γöé is syntax checked but does not affect exe-  Γöé
  8586. Γöé                Γöé cution                    Γöé
  8587. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8588. Γöé BINARY:            Γöé aligns data item at a multiple of 2 relative Γöé
  8589. Γöé  PIC S9(1) through PIC S9(4) Γöé to the beginning of the record        Γöé
  8590. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8591. Γöé BINARY:            Γöé aligns data item at a multiple of 4 relative Γöé
  8592. Γöé  PIC S9(5) through PIC S9(9) Γöé to the beginning of the record        Γöé
  8593. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8594. Γöé BINARY:            Γöé aligns data item at a multiple of 8 relative Γöé
  8595. Γöé  PIC S9(10) through PIC    Γöé to the beginning of the record        Γöé
  8596. Γöé S9(18)             Γöé                        Γöé
  8597. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8598. Γöé COMPUTATIONAL-4        Γöé functions the same as for USAGE BINARY    Γöé
  8599. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8600. Γöé COMPUTATIONAL         Γöé is syntax checked but does not affect exe-  Γöé
  8601. Γöé                Γöé cution                    Γöé
  8602. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8603. Γöé INDEX             Γöé is not permitted               Γöé
  8604. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8605. Γöé POINTER            Γöé aligns data item at a multiple of 16 rela-  Γöé
  8606. Γöé                Γöé tive to the beginning of the record      Γöé
  8607. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8608. Γöé PROCEDURE-POINTER       Γöé functions the same as for USAGE POINTER    Γöé
  8609. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8610.  
  8611. The length of an elementary item is not affected by the SYNCHRONIZED clause. 
  8612.  
  8613.  
  8614. ΓòÉΓòÉΓòÉ 11.22.3. Specifying the SYNCHRONIZED Clause with the OCCURS Clause ΓòÉΓòÉΓòÉ
  8615.  
  8616. When the SYNCHRONIZED clause is specified for an item within the scope of the 
  8617. OCCURS clause, each occurrence of the item is synchronized. 
  8618.  
  8619.  
  8620. ΓòÉΓòÉΓòÉ 11.22.4. Specifying the SYNCHRONIZED Clause with the REDEFINES Clause ΓòÉΓòÉΓòÉ
  8621.  
  8622. When the SYNCHRONIZED clause is specified for an item that also contains a 
  8623. REDEFINES clause, the data item that is redefined must have the proper boundary 
  8624. alignment for the data item that redefines it. No padding characters are added 
  8625. for items containing the REDEFINES clause. For example, if you write the 
  8626. following, be sure that data item A begins at a multiple of 4 bytes relative to 
  8627. the beginning of the record: 
  8628.  
  8629. 02 A                     PICTURE X(4).
  8630. 02 B REDEFINES A         PICTURE S9(9) BINARY SYNC.
  8631.  
  8632. When the SYNCHRONIZED clause is specified for a binary item that is the first 
  8633. elementary item subordinate to an item that contains a REDEFINES clause, the 
  8634. item must not require the addition of unused character positions. 
  8635.  
  8636.  
  8637. ΓòÉΓòÉΓòÉ 11.22.5. FILLER Items ΓòÉΓòÉΓòÉ
  8638.  
  8639. The FILLER item is treated as if it were an item with a level number equal to 
  8640. that of the preceding item. The size of this implicit FILLER item is calculated 
  8641. as follows: 
  8642.  
  8643.   The total number of characters occupied by all elementary data items 
  8644.    preceding the aligned item are added together, including any implicit FILLER 
  8645.    items previously added. 
  8646.  
  8647.   This sum is divided by the factor m used as a multiplier in the above 
  8648.    calculation of alignment (2, 4, 8, or 16). 
  8649.  
  8650.   If the remainder r of this division is equal to zero, no implicit FILLER 
  8651.    item is required. If the remainder is not equal to zero, the size of the 
  8652.    implicit FILLER item is equal to m - r. 
  8653.  
  8654.  The size of the implicit FILLER item is not included in the size of any group 
  8655.  item that contains it. 
  8656.  
  8657.  Group items are naturally defined as alphanumeric. Any FILLER items are 
  8658.  initialized with spaces. Implicit FILLER items generated through the 
  8659.  SYNCHRONIZED clause, then, are also initialized with spaces under the 
  8660.  (default) *STDINZ compiler option. Under the *NOSTDINZ option, these implicit 
  8661.  FILLER items will contain hexadecimal zeroes. 
  8662.  
  8663.  An implicit FILLER item may also be added by the compiler when a group item is 
  8664.  defined with an OCCURS clause and contains data items that are subject to 
  8665.  alignment. To determine whether an implicit FILLER is to be added, the 
  8666.  following action is taken: 
  8667.  
  8668.   The compiler calculates the size of the group item, including all necessary 
  8669.    implicit FILLER items. 
  8670.  
  8671.   This sum is divided by the largest m required by any elementary item within 
  8672.    the group. 
  8673.  
  8674.   If r is equal to zero, no implicit FILLER item is required. If r is not 
  8675.    equal to zero, an implicit FILLER item of size m - r must be added. 
  8676.  
  8677.  An implicit FILLER item may be inserted at the end of each occurrence of the 
  8678.  group item containing the OCCURS clause. This is done to synchronize 
  8679.  subsequent occurrences. 
  8680.  
  8681.  Items at level 01 or 77 are aligned according to the following rules: 
  8682.  
  8683.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8684.   Γöé AREA       Γöé LEVEL   Γöé BOUNDARY ALIGNMENT               Γöé
  8685.   Γöé          Γöé NUMBER  Γöé                         Γöé
  8686.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8687.   Γöé Working-Storage  Γöé 01    Γöé 16 bytes                    Γöé
  8688.   Γöé Section      Γöé 77    Γöé 16 bytes                    Γöé
  8689.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8690.   Γöé File Section   Γöé 01    Γöé Compiler assumes a 16-byte boundary for syn-  Γöé
  8691.   Γöé          Γöé      Γöé chronizing items.                Γöé
  8692.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8693.   Γöé Linkage Section  Γöé 01    Γöé Compiler assumes a 16-byte boundary for syn-  Γöé
  8694.   Γöé          Γöé 77    Γöé chronizing items.  Pointer data and procedure- Γöé
  8695.   Γöé          Γöé      Γöé pointer data items are not synchronized.    Γöé
  8696.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8697.  
  8698.  
  8699. ΓòÉΓòÉΓòÉ 11.22.5.1. Example of Implicit FILLER ΓòÉΓòÉΓòÉ
  8700.  
  8701. The following COBOL data description will produce the computer storage 
  8702. allocation shown in Computer Storage Allocation. 
  8703.  
  8704.  
  8705. 01 UNSYNCHRONIZED-RECORD
  8706.      02 UNSYNCHRONIZED-DATA-1 PIC 9(3) DISPLAY.
  8707.      02 UNSYNCHRONIZED-DATA-2 PIC X(2).
  8708. 01 COMPOUND-REPEATED-RECORD.
  8709.      02 ELEMENTARY-ITEM-1 PIC X (2).
  8710.      02 GROUP-ITEM OCCURS 3 TIMES.
  8711.         03 ELEMENTARY-ITEM-2 PIC X.
  8712.         03 ELEMENTARY-ITEM-3 PIC S9(2) BINARY SYNC.
  8713.         03 ELEMENTARY-ITEM-4 PIC S9(4) V9(2) BINARY SYNC.
  8714.         03 ELEMENTARY-ITEM-5 PIC X (5).
  8715.  
  8716. Computer Storage Allocation 
  8717.  
  8718. Γöé        Γöé
  8719. ΓöéUnsynchronized-Γöé          Compound-Repeated-Record
  8720. Γöé   Record   Γöé                 Γöé
  8721. Γöé        Γöé  Γöé               Γöé Γöé
  8722. Γöé        Γöé  Γöé   Group-Item (1)      Γöé Γöé  Group-Item (2)   and so
  8723. Γöé        Γöé  Γöé               Γöé Γöé            forth
  8724. Γöé    U     Γöé  ΓöéEΓöé ΓöéE  Γöé  Γöé    Γöé     Γöé ΓöéEΓöé ΓöéE  Γöé  Γöé    Γöé
  8725. Γöé UD1 ΓöéD  Γöé   ΓöéEI1ΓöéIΓöé ΓöéI  Γöé  Γöé  EI4  Γöé  EI5   Γöé ΓöéIΓöé ΓöéI  Γöé  Γöé  EI4  Γöé  EI5
  8726. Γöé   Γöé2  Γöé   Γöé  Γöé2Γöé Γöé3  Γöé  Γöé    Γöé     Γöé Γöé2Γöé Γöé3  Γöé  Γöé    Γöé
  8727. Γöé   Γöé  Γöé   Γöé  Γöé Γöé Γöé  Γöé  Γöé    Γöé     Γöé Γöé Γöé Γöé  Γöé  Γöé    Γöé
  8728. Γöé9 9 9Γöéx xΓöé@ @ @Γöéx xΓöéxΓöé#Γöé* CΓöé# #Γöé* C C CΓöéx x x x xΓöé$ΓöéxΓöé#Γöé* CΓöé# #Γöé* C C CΓöéx x x x x
  8729. Γö£ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö╝ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö╝ΓöÇΓö╝ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö╝ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÉ
  8730. Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé
  8731. Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé  Γöé
  8732. Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé  2  Γöé
  8733. Γöé    Γöé    Γöé    Γöé    Γöé    Γöé    Γöé    Γöé    Γöé    Γöé    Γöé
  8734. Γöé    4    Γöé    4    Γöé    4    Γöé    4    Γöé    4    Γöé
  8735. Γöé        Γöé        Γöé        Γöé        Γöé        Γöé
  8736. 16        16        16        16        16        16
  8737.  
  8738.  @  Indicates implicit FILLER bytes allocated because of automatic 
  8739.     synchronization or a record (01-level) description 
  8740.  #  Indicates implicit FILLER bytes allocated when the following data item is 
  8741.     explicitly synchronized 
  8742.  *  The first byte of a BINARY item that has been synchronized 
  8743.  $  Indicates implicit FILLER bytes allocated when a non-elementary item is 
  8744.     subject to an OCCURS clause. 
  8745.  9  Indicates bytes allocated for a numeric DISPLAY character 
  8746.  X  Indicates bytes allocated for an alphanumeric DISPLAY character 
  8747.  C  Indicates bytes allocated for a BINARY data storage 
  8748.  
  8749.  
  8750. ΓòÉΓòÉΓòÉ 11.23. USAGE Clause ΓòÉΓòÉΓòÉ
  8751.  
  8752. The USAGE clause specifies the format in which data is represented in storage. 
  8753. The format may be restricted if certain Procedure Division statements are used. 
  8754.  
  8755. ΓöîΓöÇΓöÇΓöÇ USAGE CLAUSE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8756. Γöé                                        Γöé
  8757. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇBINARYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><              Γöé
  8758. Γöé   ΓööΓöÇUSAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ  Γö£ΓöÇCOMPUTATIONALΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8759. Γöé        ΓööΓöÇISΓöÇΓöÿ   Γö£ΓöÇCOMPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8760. Γöé             Γöé         (1)  Γöé                Γöé
  8761. Γöé             Γö£ΓöÇCOMPUTATIONAL-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8762. Γöé             Γöé     (1)      Γöé                Γöé
  8763. Γöé             Γö£ΓöÇCOMP-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8764. Γöé             Γöé         (1)  Γöé                Γöé
  8765. Γöé             Γö£ΓöÇCOMPUTATIONAL-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8766. Γöé             Γöé     (1)      Γöé                Γöé
  8767. Γöé             Γö£ΓöÇCOMP-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8768. Γöé             Γö£ΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8769. Γöé             Γö£ΓöÇINDEXΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8770. Γöé             Γö£ΓöÇPACKED-DECIMALΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8771. Γöé             Γöé     (1)      Γöé                Γöé
  8772. Γöé             Γö£ΓöÇPOINTERΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  8773. Γöé             Γöé          (1)Γöé                Γöé
  8774. Γöé             ΓööΓöÇPROCEDURE-POINTERΓöÇΓöÇΓöÇΓöÇΓöÿ                Γöé
  8775. Γöé                                        Γöé
  8776. Γöé NOTE:                                     Γöé
  8777. Γöé (1)  IBM Extension                              Γöé
  8778. Γöé                                        Γöé
  8779. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8780.  
  8781. The USAGE clause can be specified for an entry at any level (other than 66 or 
  8782. 88). However, if it is specified at the group level, it applies to each 
  8783. elementary item in the group rather than to the group itself. The usage of an 
  8784. elementary item must not contradict the usage specified on the owning group 
  8785. item. 
  8786.  
  8787. When the USAGE clause is not specified at either the group or elementary level, 
  8788. it is assumed that the usage is DISPLAY. 
  8789.  
  8790. Related Information: 
  8791.  
  8792.   Computational Items 
  8793.  
  8794.  
  8795. ΓòÉΓòÉΓòÉ 11.23.1. Computational Items ΓòÉΓòÉΓòÉ
  8796.  
  8797. A computational item is a value used in arithmetic operations. It must be 
  8798. numeric. If the USAGE of a group item is described with any of these items, the 
  8799. elementary items within the group have this usage. The group itself is 
  8800. considered nonnumeric and cannot be used in numeric operations, except for 
  8801. those using the CORRESPONDING phrase (see CORRESPONDING Phrase). 
  8802.  
  8803. The maximum length of a computational item is 18 decimal digits. 
  8804.  
  8805. The PICTURE of a computational item may contain only: 
  8806.  
  8807.  9    One or more numeric character positions 
  8808.  S    One operational sign 
  8809.  V    One implied decimal point 
  8810.  P    One or more decimal scaling positions. 
  8811.  
  8812.  
  8813. ΓòÉΓòÉΓòÉ 11.23.1.1. BINARY ΓòÉΓòÉΓòÉ
  8814.  
  8815. Specified for binary data items. Such items have a decimal equivalent 
  8816. consisting of the decimal digits 0 through 9, plus a sign. 
  8817.  
  8818. The amount of storage occupied by a binary item depends on the number of 
  8819. decimal digits defined in its PICTURE clause: 
  8820.  
  8821.  Digits in 
  8822.  PICTURE Clause      Storage Occupied 
  8823.  1 through 4         2 bytes 
  8824.  5 through 9         4 bytes 
  8825.  10 through 18       8 bytes 
  8826.  
  8827.  The leftmost bit of the storage area is the operational sign. 
  8828.  
  8829.  For better performance, avoid using 8-byte binary items. You can specify these 
  8830.  items for convenience, but the compiler must make conversions in order to use 
  8831.  them. 
  8832.  
  8833.  
  8834. ΓòÉΓòÉΓòÉ 11.23.1.2. PACKED-DECIMAL ΓòÉΓòÉΓòÉ
  8835.  
  8836. Specified for internal decimal items. Such an item appears in storage in packed 
  8837. decimal format. There are 2 digits for each character position, except for the 
  8838. trailing character position, which is occupied by the low-order digit and the 
  8839. sign. Such an item may contain any of the digits 0 through 9, plus a sign, 
  8840. representing a value not exceeding 18 decimal digits. 
  8841.  
  8842.  
  8843. ΓòÉΓòÉΓòÉ 11.23.1.3. COMPUTATIONAL or COMP ΓòÉΓòÉΓòÉ
  8844.  
  8845. Specified for internal decimal items.  Such an item appears in storage as 2 
  8846. digits per byte, with the sign contained in the 4 rightmost bits of the 
  8847. rightmost byte. An internal decimal item can contain any of the digits 0 
  8848. through 9 plus a sign. If the PICTURE of an internal decimal item does not 
  8849. contain an S, the sign position is occupied by a bit configuration that is 
  8850. interpreted as positive. Internal representation of USAGE COMP items is 
  8851. normally assigned to the most efficient of all the USAGEs. For the ILE 
  8852. COBOL/400 compiler, the COMPUTATIONAL phrase is synonymous with PACKED-DECIMAL. 
  8853.  
  8854.  
  8855. ΓòÉΓòÉΓòÉ 11.23.1.4. COMPUTATIONAL-3 or COMP-3 (internal decimal) ΓòÉΓòÉΓòÉ
  8856.  
  8857. -----IBM Extension----- 
  8858.  
  8859. This is the equivalent of PACKED-DECIMAL. 
  8860.  
  8861. ---End of IBM Extension--- 
  8862.  
  8863.  
  8864. ΓòÉΓòÉΓòÉ 11.23.1.5. COMPUTATIONAL-4 or COMP-4 (binary) ΓòÉΓòÉΓòÉ
  8865.  
  8866. -----IBM Extension----- 
  8867.  
  8868. This is the equivalent of BINARY. 
  8869.  
  8870. ---End of IBM Extension--- 
  8871.  
  8872.  
  8873. ΓòÉΓòÉΓòÉ 11.23.2. DISPLAY Phrase ΓòÉΓòÉΓòÉ
  8874.  
  8875. The data item is stored in character form, 1 character for each 8-bit byte. 
  8876. This corresponds to the format used for printed output. DISPLAY can be explicit 
  8877. or implicit. 
  8878.  
  8879. USAGE IS DISPLAY is valid for the following types of items: 
  8880.  
  8881.   Alphabetic 
  8882.   Alphanumeric 
  8883.   Alphanumeric-edited 
  8884.   Numeric-edited 
  8885.    -----IBM Extension----- 
  8886.   Boolean 
  8887.    ---End of IBM Extension--- 
  8888.   External decimal (numeric). 
  8889.  
  8890.  The PICTURE character-string of a zoned item can contain only 9s, the 
  8891.  operational sign symbol S, the assumed decimal point V, and one or more Ps. 
  8892.  
  8893.  
  8894. ΓòÉΓòÉΓòÉ 11.23.2.1. External decimal (numeric) ΓòÉΓòÉΓòÉ
  8895.  
  8896. External Decimal Items are sometimes referred to as zoned decimal items. Each 
  8897. digit of a number is represented by a single byte. The 4 high-order bits of 
  8898. each byte are zone bits; the 4 high-order bits of the low-order byte represent 
  8899. the sign of the item. If the number is positive, these four bits contain a 
  8900. hexadecimal F.  If the number is negative, these four bits contain a 
  8901. hexadecimal D. The 4 low-order bits of each byte contain the value of the 
  8902. digit. 
  8903.  
  8904. The maximum length of an external decimal item is 18 digits. 
  8905.  
  8906. The PICTURE character-string of an external decimal item may contain only 9s; 
  8907. the operational-sign, S; the assumed decimal point, V; and one or more Ps. 
  8908.  
  8909.  
  8910. ΓòÉΓòÉΓòÉ 11.23.3. INDEX Phrase ΓòÉΓòÉΓòÉ
  8911.  
  8912. A data item defined with the INDEX phrase is an index data item. 
  8913.  
  8914. An index data item is a 4-byte elementary item (not necessarily connected with 
  8915. any table) that can be used to save index-name values for future reference. 
  8916. Through a SET statement, an index data item can be assigned an index-name 
  8917. value. 
  8918.  
  8919. The index-name value is the displacement, which corresponds to an occurrence 
  8920. number in the table. The index-name value equals: 
  8921.  
  8922. (occurrence-number - 1) * entry length
  8923.  
  8924. Any attempt to set an index-name to a value greater than 999 999 999 will leave 
  8925. the index-name value undefined. 
  8926.  
  8927. Direct references to an index data item can be made only in a SEARCH statement, 
  8928. a SET statement, a relation condition, the USING phrase of the Procedure 
  8929. Division header, or the USING phrase of the CALL statement. 
  8930.  
  8931. An index data item can be part of a group item referred to in a MOVE statement 
  8932. or an input/output statement. 
  8933.  
  8934. An index data item saves values that represent table occurrences, yet is not 
  8935. necessarily defined as part of any table. Thus, when it is referred to directly 
  8936. in a SEARCH or SET statement, or indirectly in a MOVE or input/output 
  8937. statement, there is no conversion of values when the statement is executed. 
  8938.  
  8939. The USAGE IS INDEX clause may be written at any level. If a group item is 
  8940. described with the USAGE IS INDEX clause, the elementary items within the group 
  8941. are index data items; the group itself is not an index data item, and the group 
  8942. name may not be used in SEARCH and SET statements or in relation conditions. 
  8943. The USAGE clause of an elementary item cannot contradict the USAGE clause of a 
  8944. group to which the item belongs. 
  8945.  
  8946. An index data item cannot be a conditional variable. 
  8947.  
  8948. The JUSTIFIED, PICTURE, BLANK WHEN ZERO, SYNCHRONIZED, or VALUE clauses cannot 
  8949. be used to describe group or elementary items described with the USAGE IS INDEX 
  8950. clause. 
  8951.  
  8952. If a source program is to be portable to other systems, it must not depend on 
  8953. the content of the index data item when stored in external records (since the 
  8954. content is system specific). 
  8955.  
  8956.  
  8957. ΓòÉΓòÉΓòÉ 11.23.4. POINTER Phrase ΓòÉΓòÉΓòÉ
  8958.  
  8959. -----IBM Extension----- 
  8960.  
  8961. A data item defined with the USAGE IS POINTER clause is a pointer data item. 
  8962.  
  8963. A pointer data item is a 16-byte elementary item that can be used to accomplish 
  8964. base addressing. Pointer data items can be compared for equality, or moved to 
  8965. other pointer items. 
  8966.  
  8967. A pointer data item may only be used in: 
  8968.  
  8969.   A SET statement (Format 5 only) 
  8970.   A relation condition 
  8971.   The USING phrase of a CALL statement or Procedure Division header 
  8972.   Expressions involving ADDRESS OF or LENGTH OF. 
  8973.  
  8974.  The USAGE IS POINTER clause may be written at any level except 66 or 88. 
  8975.  
  8976.  If a group item is described with the USAGE IS POINTER clause, the elementary 
  8977.  items within the group are pointer data items. The group itself, however, is 
  8978.  not a pointer data item and cannot be used in the syntax where a pointer data 
  8979.  item is allowed. 
  8980.  
  8981.  Pointer data items can be part of a group that is referred to in a MOVE 
  8982.  statement or an I/O statement. If, however, a pointer data item is part of a 
  8983.  group, there is no conversion of pointer values to another internal 
  8984.  representation when the statement runs. 
  8985.  
  8986.  A pointer data item can be the subject or object of a REDEFINES clause. 
  8987.  
  8988.  A VALUE clause for a pointer data item can contain NULL or NULLS only. 
  8989.  
  8990.  A pointer data item does not belong to a class or category, and it cannot be 
  8991.  used as a conditional variable. 
  8992.  
  8993.  The JUSTIFIED, PICTURE, SIGN, and BLANK WHEN ZERO clauses cannot be used to 
  8994.  describe group or elementary items defined with the USAGE IS POINTER clause. 
  8995.  
  8996.  Pointer data items are ignored in CORRESPONDING operations. 
  8997.  
  8998.  A pointer data item can be written to a file, but if you later read the record 
  8999.  containing the pointer data item, the item will no longer represent a valid 
  9000.  address. 
  9001.  
  9002.  USAGE IS POINTER is implicitly specified for the ADDRESS OF special register. 
  9003.  
  9004.  You cannot treat ILE COBOL/400 pointer data items as ordinary numbers. 
  9005.  
  9006.  Related Information: 
  9007.  
  9008.   Pointer Alignment 
  9009.  
  9010.  ---End of IBM Extension--- 
  9011.  
  9012.  
  9013. ΓòÉΓòÉΓòÉ 11.23.4.1. Pointer Alignment ΓòÉΓòÉΓòÉ
  9014.  
  9015. -----IBM Extension----- 
  9016.  
  9017. For the purposes of this section on pointer alignment, the term pointer refers 
  9018. to both pointer data items and procedure-pointer data items. 
  9019.  
  9020. When a pointer is referenced, or is the subject of a REDEFINES clause, the 
  9021. object item must be in alignment. In other words, it must be located at an 
  9022. offset that is a multiple of 16 bytes from the beginning of the record. 
  9023.  
  9024. A data item described as a pointer in the Working-storage or File section is 
  9025. aligned. If the pointer is part of a structure that begins at level-number 01, 
  9026. the compiler aligns the beginning of the structure. After that, the compiler 
  9027. puts FILLER items in front of the pointer to make sure that it is also in 
  9028. alignment. The compiler issues a warning when it adds these FILLER items. 
  9029.  
  9030. In the Linkage section, the compiler does not add FILLER items to the 
  9031. structure, but it issues warnings regarding its assumption that you have 
  9032. aligned the 01-level items. 
  9033.  
  9034. If a pointer is the subject of a REDEFINES clause in the Linkage section, and 
  9035. the object of the clause is not a pointer, you will receive a warning that you 
  9036. need to maintain pointer alignment. For the same situation in the 
  9037. Working-storage or File section, an error will result if you do not align the 
  9038. object of the clause. 
  9039.  
  9040. You can specify the SYNCHRONIZED clause along with USAGE IS POINTER or USAGE IS 
  9041. PROCEDURE-POINTER clause, but this clause is already implicit for pointers. 
  9042.  
  9043. If the pointer is part of a table, the first item in the table is aligned, and 
  9044. to make sure that all occurrences of the pointer are also aligned, a filler 
  9045. item might be added to the end of the table. 
  9046.  
  9047. To avoid adding FILLER items to data structures, place pointers at the 
  9048. beginning of the structures. 
  9049.  
  9050. ---End of IBM Extension--- 
  9051.  
  9052.  
  9053. ΓòÉΓòÉΓòÉ 11.23.5. PROCEDURE-POINTER Phrase ΓòÉΓòÉΓòÉ
  9054.  
  9055. -----IBM Extension----- 
  9056.  
  9057. A data item defined with the PROCEDURE-POINTER phrase is a procedure-pointer 
  9058. data item. It is a 16-byte elementary item containing the address of an entry 
  9059. point to an ILE procedure or program object (*PGM), such as: 
  9060.  
  9061.   The entry point of the outermost ILE COBOL/400 program (an ILE procedure) in 
  9062.    the compilation unit defined by the PROGRAM-ID statement 
  9063.   An entry point of a non-COBOL program, such as an ILE C/400 function (an ILE 
  9064.    procedure) 
  9065.   An entry point of a program (*PGM). 
  9066.  
  9067.  A procedure-pointer data item may only be used in: 
  9068.  
  9069.   The SET statement 
  9070.   A relation condition 
  9071.   The USING phrase of a CALL statement, or the Procedure Division header 
  9072.   Expressions involving ADDRESS OF and LENGTH OF 
  9073.   The CALL statement as a target 
  9074.  
  9075.  Like pointer data items, procedure-pointer data items must be in alignment. 
  9076.  
  9077.  ---End of IBM Extension--- 
  9078.  
  9079.  Related Information: 
  9080.  
  9081.   PROCEDURE-POINTER Usage Rules 
  9082.  
  9083.  
  9084. ΓòÉΓòÉΓòÉ 11.23.5.1. Usage Rules ΓòÉΓòÉΓòÉ
  9085.  
  9086. -----IBM Extension----- 
  9087.  
  9088.   The USAGE IS PROCEDURE-POINTER clause cannot be written at level-88 
  9089.   In a group item described with the USAGE IS PROCEDURE-POINTER clause, the 
  9090.    elementary items within the group are procedure-pointer data items (the 
  9091.    group itself is not a procedure-pointer) 
  9092.   The USAGE clause of an elementary item cannot contradict the USAGE clause of 
  9093.    a group to which the item belongs 
  9094.   Procedure-pointer data items can be part of a group that is referred to in a 
  9095.    MOVE statement, or an input/output statement. However, there is no 
  9096.    conversion of values when the statement is executed 
  9097.   A procedure-pointer data item can be written to a file, but if you later 
  9098.    read the same record containing the procedure-pointer, the item will no 
  9099.    longer represent a valid address. 
  9100.   GLOBAL, EXTERNAL, OCCURS, SYNCHRONIZED, and LIKE clauses may be used with 
  9101.    USAGE IS PROCEDURE-POINTER 
  9102.   A procedure-pointer may be the subject or object of a REDEFINES clause 
  9103.   A VALUE clause for a procedure-pointer data item can contain only NULL or 
  9104.    NULLS 
  9105.   JUSTIFIED, PICTURE, and BLANK WHEN ZERO clauses cannot describe group or 
  9106.    elementary items defined with the USAGE IS PROCEDURE-POINTER clause 
  9107.   A procedure-pointer data item cannot be a conditional variable, does not 
  9108.    belong to any class or category, and is ignored in CORRESPONDING operations. 
  9109.  
  9110.  ---End of IBM Extension--- 
  9111.  
  9112.  
  9113. ΓòÉΓòÉΓòÉ 11.24. VALUE Clause ΓòÉΓòÉΓòÉ
  9114.  
  9115. The VALUE clause specifies the initial contents of a data item or the value(s) 
  9116. associated with a condition-name. 
  9117.  
  9118. The VALUE clause has three formats: 
  9119.  
  9120.   Format 1 - Literal Value 
  9121.   Format 2 - Condition-Name Value 
  9122.    -----IBM Extension----- 
  9123.   Format 3 - NULL Value 
  9124.    ---End of IBM Extension--- 
  9125.  
  9126.  The use of the VALUE clause differs depending on the Data Division section in 
  9127.  which it is specified. 
  9128.  
  9129.  -----IBM Extension----- 
  9130.  
  9131.  In the Linkage section, a VALUE clause used in entries other than 
  9132.  condition-names is treated as a comment. 
  9133.  
  9134.  ---End of IBM Extension--- 
  9135.  
  9136.  In the File and Linkage sections, the VALUE clause must be used only in 
  9137.  condition-name entries. In the Working-Storage Section, the VALUE clause may 
  9138.  be used in condition-name entries, or in specifying the initial value of any 
  9139.  data item. The data item assumes the specified value at the beginning of 
  9140.  program execution. If the initial value is not explicitly specified, it is 
  9141.  unpredictable. 
  9142.  
  9143.  
  9144. ΓòÉΓòÉΓòÉ 11.24.1. VALUE Clause - Format 1 - Literal Value ΓòÉΓòÉΓòÉ
  9145.  
  9146. ΓöîΓöÇΓöÇΓöÇ VALUE CLAUSE - FORMAT 1 - LITERAL VALUE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9147. Γöé                                        Γöé
  9148. Γöé >>ΓöÇΓöÇVALUEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteralΓöÇΓöÇ><                        Γöé
  9149. Γöé       ΓööΓöÇISΓöÇΓöÿ                               Γöé
  9150. Γöé                                        Γöé
  9151. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9152.  
  9153. Format 1 specifies the initial value of a data item. Initialization is 
  9154. independent of any BLANK WHEN ZERO or JUSTIFIED clause specified. 
  9155.  
  9156. A Format 1 VALUE clause specified in a data description entry that contains, or 
  9157. is subordinate to an OCCURS clause, causes every occurrence of the associated 
  9158. data item to be assigned the specified value. Each structure that contains the 
  9159. DEPENDING ON phrase of the OCCURS clause is assumed to contain the maximum 
  9160. number of occurrences for the purposes of VALUE initialization. 
  9161.  
  9162. The VALUE clause must not be specified for a data description entry that 
  9163. contains, or is subordinate to, an entry containing an EXTERNAL clause or a 
  9164. REDEFINES clause. This rule does not apply to condition-name entries. 
  9165.  
  9166. If the VALUE clause is specified at the group level, the literal must be a 
  9167. nonnumeric literal or a figurative constant other than NULL or NULLS. The group 
  9168. area is initialized without consideration for the subordinate entries within 
  9169. this group. In addition, the VALUE clause must not be specified for subordinate 
  9170. entries within this group. 
  9171.  
  9172. For group entries, the VALUE clause must not be specified if the entry also 
  9173. contains a USAGE (other than USAGE DISPLAY) clause. 
  9174.  
  9175. The VALUE clause must not conflict with other clauses in the data description 
  9176. entry, or in the data description of this entry's hierarchy. 
  9177.  
  9178. Related Information: 
  9179.  
  9180.   Rules for Literal Values 
  9181.  
  9182.  
  9183. ΓòÉΓòÉΓòÉ 11.24.2. Rules for Literal Values: ΓòÉΓòÉΓòÉ
  9184.  
  9185.   Wherever a literal is specified, a figurative constant may be substituted. 
  9186.  
  9187.   If the item is numeric, all VALUE clause literals must be numeric. If the 
  9188.    literal defines the value of a Working-Storage item, the literal is aligned 
  9189.    according to the rules for numeric moves, with one additional restriction: 
  9190.    The literal must not have a value that requires truncation of nonzero 
  9191.    digits. If the literal is signed, the associated PICTURE character-string 
  9192.    must contain a sign symbol (S). 
  9193.  
  9194.   All numeric literals in a VALUE clause of an item must have a value that is 
  9195.    within the range of values indicated by the PICTURE clause for that item. 
  9196.    For example, for a PICTURE of 99PPP, the literal must fall within the range 
  9197.    of 
  9198.    1 000 through 99 000, or it must be zero. For a PICTURE of PPP99, the 
  9199.    literal must fall within the range of 0.000 00 through 0.000 99. 
  9200.  
  9201.   If the item is a group item, or an elementary alphabetic, alphanumeric, 
  9202.    alphanumeric-edited, or numeric-edited item, all VALUE clause literals must 
  9203.    be nonnumeric literals. The literal is aligned according to the alignment 
  9204.    rules, with one additional restriction: the number of characters in the 
  9205.    literal must not exceed the size of the item. 
  9206.  
  9207.    -----IBM Extension----- 
  9208.  
  9209.    If the item is Boolean, the VALUE clause must be a Boolean literal. 
  9210.  
  9211.    ---End of IBM Extension--- 
  9212.  
  9213.   The functions of the editing characters in a PICTURE clause are ignored in 
  9214.    determining the initial appearance of the item described. However, editing 
  9215.    characters are included in determining the size of the item. Therefore, any 
  9216.    editing characters must be included in the literal. For example, if the item 
  9217.    is defined as PICTURE +999.99 and the value is to be +12.34, then the VALUE 
  9218.    clause should be specified as VALUE '+012.34'. 
  9219.  
  9220.   A maximum of 32 767 bytes can be initialized by means of a single VALUE 
  9221.    clause. A maximum of 65 472 bytes can be initialized by all of the VALUE 
  9222.    clauses contained within a single program. 
  9223.  
  9224.  
  9225. ΓòÉΓòÉΓòÉ 11.24.3. VALUE Clause - Format 2 - Condition-Name Value ΓòÉΓòÉΓòÉ
  9226.  
  9227. ΓöîΓöÇΓöÇΓöÇ VALUE CLAUSE - FORMAT 2 - CONDITION-NAME VALUE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9228. Γöé                                        Γöé
  9229. Γöé >>ΓöÇΓöÇ88ΓöÇΓöÇcondition-nameΓöÇΓöÇΓö¼ΓöÇVALUEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9230. Γöé             Γöé     ΓööΓöÇISΓöÇΓöÿ  Γöé                  Γöé
  9231. Γöé             ΓööΓöÇVALUESΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  9232. Γöé                  ΓööΓöÇAREΓöÇΓöÿ                   Γöé
  9233. Γöé                                        Γöé
  9234. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  9235. Γöé                       Γöé                 Γöé
  9236. Γöé >ΓöÇΓöÇΓöÇΓöÇliteral-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ.ΓöÇΓöÇ><              Γöé
  9237. Γöé         ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇliteral-2ΓöÇΓöÿ                  Γöé
  9238. Γöé          ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                         Γöé
  9239. Γöé                                        Γöé
  9240. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9241.  
  9242. This format associates a value, values, and/or range(s) of values with a 
  9243. condition-name. Each such condition-name requires a separate level-88 entry. 
  9244. Level-number 88 and condition-name are not part of the Format 2 VALUE clause 
  9245. itself. They are included in the format only for clarity. 
  9246.  
  9247. Related Information: 
  9248.  
  9249.   Rules for Condition-Name Values 
  9250.  
  9251.  
  9252. ΓòÉΓòÉΓòÉ 11.24.4. Rules for Condition-Name Values: ΓòÉΓòÉΓòÉ
  9253.  
  9254.   The VALUE clause is required in a condition-name entry, and must be the only 
  9255.    clause in the entry. Each condition-name entry is associated with a 
  9256.    preceding conditional variable. Thus, every level-88 entry must always be 
  9257.    preceded either by the entry for the conditional variable, or by another 
  9258.    level-88 entry when several condition-names apply to one conditional 
  9259.    variable. Each such level-88 entry implicitly has the PICTURE 
  9260.    characteristics of the conditional variable. 
  9261.  
  9262.   The condition-name entries associated with a particular conditional variable 
  9263.    must immediately follow the conditional variable entry. The conditional 
  9264.    variable can be any data description entry except: 
  9265.  
  9266.     - A level-66 item (RENAMES clause) 
  9267.     - A data item whose USAGE IS INDEX 
  9268.     - An item whose USAGE IS POINTER or PROCEDURE-POINTER. 
  9269.  
  9270.   A condition-name can be associated with a group item data description entry. 
  9271.    In this case: 
  9272.  
  9273.     - The condition-name value must be specified as a nonnumeric literal or 
  9274.       figurative constant. 
  9275.     - The size of the condition-name value must not exceed the sum of the sizes 
  9276.       of all the elementary items within the group. 
  9277.     - No element within the group may contain a JUSTIFIED or SYNCHRONIZED 
  9278.       clause. 
  9279.     - No USAGE other than DISPLAY may be specified within the group. 
  9280.  
  9281.   Condition-names can be specified both at the group level and at subordinate 
  9282.    levels within the group. 
  9283.  
  9284.   The relation test implied by the definition of a condition-name at the group 
  9285.    level is performed in accordance with the rules for comparison of nonnumeric 
  9286.    operands, regardless of the nature of elementary items within the group. 
  9287.  
  9288.   A space, a separator comma, or a separator semicolon, must separate 
  9289.    successive operands. 
  9290.  
  9291.   Each entry must end with a separator period. 
  9292.  
  9293.   The type of literal in a condition-name entry must be consistent with the 
  9294.    data type of its conditional variable. 
  9295.  
  9296.  
  9297. ΓòÉΓòÉΓòÉ 11.24.5. VALUE Clause - Format 3 - NULL Value ΓòÉΓòÉΓòÉ
  9298.  
  9299. -----IBM Extension----- 
  9300.  
  9301. ΓöîΓöÇΓöÇΓöÇ VALUE CLAUSE - FORMAT 3 - NULL VALUE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9302. Γöé                                        Γöé
  9303. Γöé      (1)                                 Γöé
  9304. Γöé >>ΓöÇΓöÇVALUEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇNULLΓöÇΓöÇΓö¼ΓöÇΓöÇ><                      Γöé
  9305. Γöé        ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇNULLSΓöÇΓöÿ                        Γöé
  9306. Γöé                                        Γöé
  9307. Γöé NOTE:                                     Γöé
  9308. Γöé (1)  IBM Extension                              Γöé
  9309. Γöé                                        Γöé
  9310. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9311.  
  9312. This format assigns an address that is not valid to a pointer data item or a 
  9313. procedure-pointer data item. A value of NULL is an undefined value. 
  9314.  
  9315. VALUE IS NULL can only be specified for elementary items described implicitly 
  9316. or explicitly as USAGE IS POINTER or USAGE IS PROCEDURE-POINTER. 
  9317.  
  9318. ---End of IBM Extension--- 
  9319.  
  9320.  
  9321. ΓòÉΓòÉΓòÉ 12. Procedure Division ΓòÉΓòÉΓòÉ
  9322.  
  9323. The Procedure Division is optional in a COBOL source program. The Procedure 
  9324. Division consists of optional declaratives, and procedures that contain 
  9325. sections and/or paragraphs, sentences, and statements. 
  9326.  
  9327. The Procedure Division has two formats: 
  9328.  
  9329.   Format 1 - with Sections and Paragraphs 
  9330.   Format 2 - with Paragraphs Only. 
  9331.  
  9332.  Execution begins with the first statement in the Procedure Division, excluding 
  9333.  declaratives. Statements are executed in the order in which they are presented 
  9334.  for compilation, unless the statement rules dictate some other order of 
  9335.  execution. 
  9336.  
  9337.  The Procedure Division ends at the physical end of the program; that is, the 
  9338.  physical position in a source program after which no further statements 
  9339.  appear. 
  9340.  
  9341.  Related Information: 
  9342.  
  9343.   Sample Procedure Division Statements 
  9344.   Arithmetic Expressions 
  9345.   Conditional Expressions 
  9346.   Statement Categories 
  9347.   Statement Operations 
  9348.  
  9349.  
  9350. ΓòÉΓòÉΓòÉ 12.1. Format 1 - with Sections and Paragraphs ΓòÉΓòÉΓòÉ
  9351.  
  9352. ΓöîΓöÇΓöÇΓöÇ PROCEDURE DIVISION - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9353. Γöé                                        Γöé
  9354. Γöé >>ΓöÇΓöÇPROCEDURE DIVISIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9355. Γöé             Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé              Γöé
  9356. Γöé             Γöé            Γöé Γöé              Γöé
  9357. Γöé             ΓööΓöÇUSINGΓöÇΓöÇΓöÇΓöÇdata-name-1ΓöÇΓö┤ΓöÇΓöÿ              Γöé
  9358. Γöé                                        Γöé
  9359. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9360. Γöé   Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ           Γöé         Γöé
  9361. Γöé   Γöé                  Γöé           Γöé         Γöé
  9362. Γöé   ΓööΓöÇDECLARATIVES.ΓöÇΓöÇΓöÇΓöÇΓöñ Sections-2 Γö£ΓöÇΓö┤ΓöÇΓöÇEND  DECLARATIVES.ΓöÇΓöÿ         Γöé
  9363. Γöé                                        Γöé
  9364. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                             Γöé
  9365. Γöé            Γöé                             Γöé
  9366. Γöé >ΓöÇΓöÇΓöÇΓöÇΓöñ Sections-1 Γö£ΓöÇΓö┤ΓöÇΓöÇ><                           Γöé
  9367. Γöé                                        Γöé
  9368. Γöé SECTIONS-1:                                  Γöé
  9369. Γöé Γö£ΓöÇΓöÇsection-nameΓöÇΓöÇSECTIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9370. Γöé              ΓööΓöÇsegment-numberΓöÇΓöÿ                 Γöé
  9371. Γöé                                        Γöé
  9372. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  9373. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                 Γöé
  9374. Γöé   Γöé                   Γöé Γöé                 Γöé
  9375. Γöé   ΓööΓöÇΓöÇΓöÇparagraph-name.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ                 Γöé
  9376. Γöé             Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                   Γöé
  9377. Γöé             Γöé       Γöé Γöé                   Γöé
  9378. Γöé             ΓööΓöÇΓöÇΓöÇsentenceΓöÇΓö┤ΓöÇΓöÿ                   Γöé
  9379. Γöé                                        Γöé
  9380. Γöé SECTIONS-2:                                  Γöé
  9381. Γöé Γö£ΓöÇΓöÇsection-nameΓöÇΓöÇSECTIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇUSE statement.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9382. Γöé              ΓööΓöÇsegment-numberΓöÇΓöÿ                 Γöé
  9383. Γöé                                        Γöé
  9384. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  9385. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                 Γöé
  9386. Γöé   Γöé                   Γöé Γöé                 Γöé
  9387. Γöé   ΓööΓöÇΓöÇΓöÇparagraph-name.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ                 Γöé
  9388. Γöé             Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                   Γöé
  9389. Γöé             Γöé       Γöé Γöé                   Γöé
  9390. Γöé             ΓööΓöÇΓöÇΓöÇsentenceΓöÇΓö┤ΓöÇΓöÿ                   Γöé
  9391. Γöé                                        Γöé
  9392. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9393.  
  9394.  
  9395. ΓòÉΓòÉΓòÉ 12.2. Format 2 - with Paragraphs Only ΓòÉΓòÉΓòÉ
  9396.  
  9397. ΓöîΓöÇΓöÇΓöÇ PROCEDURE DIVISION - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9398. Γöé                                        Γöé
  9399. Γöé >>ΓöÇΓöÇPROCEDURE DIVISIONΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9400. Γöé             Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé              Γöé
  9401. Γöé             Γöé            Γöé Γöé              Γöé
  9402. Γöé             ΓööΓöÇUSINGΓöÇΓöÇΓöÇΓöÇdata-name-1ΓöÇΓö┤ΓöÇΓöÿ              Γöé
  9403. Γöé                                        Γöé
  9404. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  9405. Γöé                     Γöé                   Γöé
  9406. Γöé >ΓöÇΓöÇΓöÇΓöÇparagraph-name.ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><                 Γöé
  9407. Γöé            Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                    Γöé
  9408. Γöé            Γöé       Γöé Γöé                    Γöé
  9409. Γöé            ΓööΓöÇΓöÇΓöÇsentenceΓöÇΓö┤ΓöÇΓöÿ                    Γöé
  9410. Γöé                                        Γöé
  9411. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9412.  
  9413.  
  9414. ΓòÉΓòÉΓòÉ 12.3. The USING Phrase ΓòÉΓòÉΓòÉ
  9415.  
  9416. The USING phrase makes data items defined in a calling program available to a 
  9417. called subprogram. 
  9418.  
  9419. The following rules for the USING phrase assume that the calling and called 
  9420. programs are written in COBOL. 
  9421.  
  9422.   The USING phrase is specified in the Procedure Division header if, and only 
  9423.    if, this program is a subprogram invoked by a CALL statement that itself 
  9424.    contains a USING phrase. For each CALL USING statement in a calling program, 
  9425.    there must be a corresponding USING phrase specified in a called subprogram 
  9426.  
  9427.   The USING phrase is valid in the Procedure Division header of a called 
  9428.    subprogram entered at the beginning of the nondeclaratives portion 
  9429.  
  9430.   Each USING identifier must be defined as a level-01 or level-77 item in the 
  9431.    Linkage Section of the called subprogram 
  9432.  
  9433.   A USING identifier must not contain a REDEFINES clause 
  9434.  
  9435.   A particular user-defined word may not appear more than once as data-name-1 
  9436.  
  9437.   In a calling program, the USING phrase is valid for the CALL statement; each 
  9438.    USING identifier must be defined as a level-01, level-77, or an elementary 
  9439.    item in the Data Division 
  9440.  
  9441.   The maximum number of data-names that can be specified is 255 when a program 
  9442.    is called with a LINKAGE TYPE of program. For programs called with LINKAGE 
  9443.    TYPE of procedure, the predefined maximum number of data-names is 400. 
  9444.  
  9445.   The order of appearance of USING identifiers in both calling and called 
  9446.    subprograms determines the correspondence of single sets of data available 
  9447.    to both programs. The correspondence is positional and not by name. 
  9448.    Corresponding identifiers must contain the same number of characters, 
  9449.    although their data descriptions need not be the same. For index-names, no 
  9450.    correspondence is established; index-names in calling and called programs 
  9451.    always refer to separate indexes. 
  9452.  
  9453.   The identifiers specified in a CALL USING statement name data items 
  9454.    available to the calling program that may be referred to in the called 
  9455.    program; a given identifier may appear more than once. These items are 
  9456.    defined in any Data Division section. 
  9457.  
  9458.    -----IBM Extension----- 
  9459.  
  9460.   An identifier may appear more than once in a Procedure Division USING 
  9461.    phrase. In that case, the last value assigned to the identifier by a CALL 
  9462.    USING statement is used. 
  9463.  
  9464.    ---End of IBM Extension--- 
  9465.  
  9466.   Data items defined in the Linkage Section of the called program may be 
  9467.    referenced within the Procedure Division of that program if, and only if, 
  9468.    they satisfy one of the following conditions: 
  9469.  
  9470.     - They are operands of the USING phrase of the Procedure Division header 
  9471.  
  9472.     - They are defined with a REDEFINES or RENAMES clause, the object of which 
  9473.       satisfies the above condition 
  9474.  
  9475.       -----IBM Extension----- 
  9476.  
  9477.     - They are used as arguments of the ADDRESS OF special register 
  9478.  
  9479.       ---End of IBM Extension--- 
  9480.  
  9481.     - They are items subordinate to any item which satisfies the condition in 
  9482.       the rules above 
  9483.  
  9484.     - They are condition-names or index-names associated with data items that 
  9485.       satisfy any of the above conditions. 
  9486.  
  9487.  
  9488. ΓòÉΓòÉΓòÉ 12.4. Declaratives ΓòÉΓòÉΓòÉ
  9489.  
  9490. Declaratives provide one or more special-purpose sections that are executed 
  9491. when an exception-condition occurs. 
  9492.  
  9493. When Declarative Sections are specified, they must be grouped at the beginning 
  9494. of the Procedure Division, and the entire Procedure Division must be divided 
  9495. into sections. 
  9496.  
  9497. Each Declarative Section starts with a USE sentence that identifies the 
  9498. section's function; the series of procedures that follow specify what actions 
  9499. are to be taken when the exception condition occurs. Each Declarative Section 
  9500. ends with another section-name followed by a USE sentence, or with the keywords 
  9501. END DECLARATIVES. See USE Statement for more information on the USE statement. 
  9502. See Precedence Rules for Nested Programs on using the GLOBAL phrase. 
  9503.  
  9504. The entire group of Declarative Sections is preceded by the key word 
  9505. DECLARATIVES, written on the line after the Procedure Division header; the 
  9506. group is followed by the keywords END DECLARATIVES. The keywords DECLARATIVES 
  9507. and END DECLARATIVES must each begin in Area A and be followed by a separator 
  9508. period. No other text may appear on the same line. 
  9509.  
  9510. In the declaratives part of the Procedure Division, each section header (with 
  9511. an optional segment number) must be followed by a separator period, a USE 
  9512. sentence, and a separator period. No other text may appear on the same line. 
  9513.  
  9514. The USE sentence itself is never executed; instead, the USE sentence defines 
  9515. the conditions that execute the succeeding procedural paragraphs, which specify 
  9516. the actions to be taken. After the procedure is executed, control is returned 
  9517. to the routine that caused the execution of it. 
  9518.  
  9519. Within a declarative procedure, there must be no reference to any 
  9520. nondeclarative procedure. 
  9521.  
  9522. A procedure-name associated with a USE statement can be referenced in a 
  9523. different declarative section or in a nondeclarative procedure only with a 
  9524. PERFORM statement. 
  9525.  
  9526. A declarative is run as a separate invocation from any other declaratives or 
  9527. from the nondeclarative part of the COBOL program. 
  9528.  
  9529. Within a declarative procedure, no statement should be included that would 
  9530. cause the execution of a USE procedure that had been previously invoked and had 
  9531. not yet returned control to the invoking routine. 
  9532.  
  9533. The declarative procedure is exited when the last statement in the procedure is 
  9534. executed. 
  9535.  
  9536.  
  9537. ΓòÉΓòÉΓòÉ 12.4.1. Section ΓòÉΓòÉΓòÉ
  9538.  
  9539. A section consists of a section header optionally followed by one or more 
  9540. paragraphs. A section-header is a section-name followed by: the keyword 
  9541. SECTION, an optional segment-number, and a separator period. The section-header 
  9542. must begin in Area A. 
  9543.  
  9544. A section-name is a user-defined word that identifies a section. If referenced, 
  9545. a section-name must be unique within the program in which it is defined, 
  9546. because it cannot be qualified. 
  9547.  
  9548. A section ends immediately before the next section header, or at the end of the 
  9549. Procedure Division, or, in the declaratives portion, at the keywords END 
  9550. DECLARATIVES. 
  9551.  
  9552.  
  9553. ΓòÉΓòÉΓòÉ 12.4.2. Paragraph ΓòÉΓòÉΓòÉ
  9554.  
  9555. A paragraph consists of a paragraph-name followed by a separator period, 
  9556. optionally followed by one or more sentences. 
  9557.  
  9558. A paragraph-name is a user-defined word that identifies a paragraph. A 
  9559. paragraph-name, because it can be qualified, need not be unique. The 
  9560. paragraph-name must begin in Area A. A paragraph ends immediately before the 
  9561. next paragraph-name or section header, or at the end of the Procedure Division. 
  9562. In the declaratives portion, a paragraph ends immediately before the next 
  9563. paragraph, the next USE statement, or at the keywords END DECLARATIVES. If one 
  9564. paragraph in a program is contained within a section, all paragraphs of the 
  9565. program must be contained in sections. 
  9566.  
  9567.  
  9568. ΓòÉΓòÉΓòÉ 12.4.3. Sentence ΓòÉΓòÉΓòÉ
  9569.  
  9570. A sentence consists of one or more statements terminated by a separator period. 
  9571.  
  9572. A statement is a syntactically valid combination of identifiers and symbols 
  9573. (literals, relational-operators, and so forth) beginning with a COBOL verb. 
  9574.  
  9575. An identifier is a syntactically correct combination of a data-name, with its 
  9576. qualifiers, subscripts, and reference modifiers as required for uniqueness of 
  9577. reference, that names a data item. In any Procedure Division reference (except 
  9578. the class test), the contents of an identifier must be compatible with the 
  9579. class specified through its PICTURE clause, or results are unpredictable. 
  9580.  
  9581.  
  9582. ΓòÉΓòÉΓòÉ 12.4.4. Sample Procedure Division Statements ΓòÉΓòÉΓòÉ
  9583.  
  9584. . 1 ... ... 2 ... ... 3 ... ... 4 ... ... 5 ... ... 6 ... ... 7
  9585.  
  9586. PROCEDURE DIVISION.
  9587. DECLARATIVES.
  9588. ERROR-IT SECTION.
  9589.     USE AFTER STANDARD ERROR PROCEDURE ON INPUT-DATA.
  9590. ERROR-ROUTINE.
  9591.     IF CHECK-IT = "30" ADD 1 TO DECLARATIVE-ERRORS.
  9592. END DECLARATIVES.
  9593. BEGIN-NON-DECLARATIVES SECTION.
  9594. 100-BEGIN-IT.
  9595.     OPEN INPUT INPUT-DATA OUTPUT REPORT-OUT.
  9596. 110-READ-IT.
  9597.     READ INPUT-DATA RECORD
  9598.        AT END MOVE "Y" TO EOF-SW.
  9599.     IF EOF-SW NOT = "Y" ADD 1 TO RECORDS-IN.
  9600. 200-MAIN-ROUTINE.
  9601.     PERFORM PROCESS-DATA UNTIL EOF-SW = "Y".
  9602.     PERFORM FINAL-REPORT THRU FINAL-REPORT-EXIT.
  9603.     DISPLAY "TOTAL RECORDS IN = " RECORDS-IN UPON WORK-STATION.
  9604.     DISPLAY "DECLARATIVE ERRORS = " DECLARATIVE-ERRORS
  9605.        UPON WORK-STATION.
  9606.     STOP RUN.
  9607. PROCESS-DATA.
  9608.     IF RECORD-ID = "G"
  9609.         PERFORM PROCESS-GEN-INFO
  9610.     ELSE
  9611.         IF RECORD-CODE = "C"
  9612.            PERFORM PROCESS-SALES-DATA
  9613.         ELSE
  9614.            PERFORM UNKNOWN-RECORD-TYPE.
  9615.  
  9616.  
  9617. ΓòÉΓòÉΓòÉ 12.5. Arithmetic Expressions ΓòÉΓòÉΓòÉ
  9618.  
  9619. Expressions calculate values which can then be used as operands in conditional 
  9620. and arithmetic statements. Arithmetic expressions are built up from operands 
  9621. and operators under a strict hierarchy and precedence. 
  9622.  
  9623. In general, any arithmetic expression can be: 
  9624.  
  9625.   1. An elementary numeric item such as: 
  9626.  
  9627.      A numeric literal (integer or decimal) 
  9628.      An identifier describing an elementary numeric item 
  9629.      The figurative constant ZERO (ZEROS, ZEROES) 
  9630.  
  9631.   2. An arithmetic expression surrounded by parentheses 
  9632.  
  9633.   3. An arithmetic expression preceded by a unary operator (+, -) 
  9634.  
  9635.   4. Two arithmetic expressions separated by a binary arithmetic operator 
  9636.      (+, -, *, /, **) 
  9637.  
  9638.  Identifiers and literals appearing in arithmetic expressions must represent 
  9639.  either numeric elementary items or numeric literals on which arithmetic may be 
  9640.  performed. 
  9641.  
  9642.  If an exponential expression is evaluated as both a positive and a negative 
  9643.  number, the result will always be the positive number. The square root of 4, 
  9644.  for example, always results in +2. 
  9645.  
  9646.  If the value of an expression to be raised to a power is zero, the exponent 
  9647.  must have a value greater than zero. Otherwise, the size error condition 
  9648.  exists. In any case where no real number exists as the result of the 
  9649.  evaluation, the size error condition exists. 
  9650.  
  9651.  Unless the exponent is a literal integer with a value of 2, the results of 
  9652.  exponentiation are truncated after the thirteenth fractional digit.  The 
  9653.  results of exponentiation when the exponent is noninteger are accurate to 
  9654.  seven digits. 
  9655.  
  9656.  
  9657. ΓòÉΓòÉΓòÉ 12.5.1. Arithmetic Operators ΓòÉΓòÉΓòÉ
  9658.  
  9659. Five binary and two unary arithmetic operators can be used in arithmetic 
  9660. expressions. They are represented by specific characters that must be preceded 
  9661. and followed by a space. 
  9662.  
  9663.  Binary Operator   Meaning 
  9664.  +                 Addition 
  9665.  -                 Subtraction 
  9666.  *                 Multiplication 
  9667.  /                 Division 
  9668.  **                Exponentiation 
  9669.  
  9670.  Unary Operator    Meaning 
  9671.  +                 Multiplication by +1 
  9672.  -                 Multiplication by -1 
  9673.  
  9674.  Parentheses are used to highlight or modify the order of evaluation of complex 
  9675.  expressions. This improves both readability and maintainability. 
  9676.  
  9677.  Left and right parentheses must be paired in an arithmetic expression with the 
  9678.  left parenthesis appearing before its corresponding right parenthesis. 
  9679.  
  9680.  Expressions within parentheses are evaluated first and parenthetical pairs can 
  9681.  be nested within other pairs. Evaluation proceeds from the least inclusive 
  9682.  pairing outward. 
  9683.  
  9684.  When the order of evaluation is not made explicit by parentheses, expressions 
  9685.  are evaluated left-to-right following the hierarchy listed below: 
  9686.  
  9687.   1. Unary operator 
  9688.   2. Exponentiation 
  9689.   3. Multiplication and division 
  9690.   4. Addition and subtraction. 
  9691.  
  9692.  An arithmetic expression may begin only with a left parenthesis, a unary 
  9693.  operator, or an operand (that is, an identifier or a literal). It may end only 
  9694.  with a right parenthesis or an operand. An arithmetic expression must contain 
  9695.  at least one reference to an identifier or a literal. 
  9696.  
  9697.  If the first operator in an arithmetic expression is a unary operator, it must 
  9698.  be immediately preceded by a left parenthesis if that arithmetic expression 
  9699.  immediately follows an identifier or another arithmetic expression. 
  9700.  
  9701.  Valid Arithmetic Symbol Pairs shows permissible arithmetic symbol pairs. An 
  9702.  arithmetic symbol pair is the combination of two such symbols in sequence. In 
  9703.  the figure: 
  9704.  
  9705.  Yes   indicates a permissible pairing. 
  9706.  No    indicates that the pairing is not permitted. 
  9707.  
  9708.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9709.   Γöé      Valid Arithmetic Symbol Pairs                    Γöé
  9710.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9711.   Γöé           Γöé            SECOND SYMBOL           Γöé
  9712.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9713.   Γöé           Γöé  IDENTI-  Γöé      Γöé  UNARY +  Γöé      Γöé      Γöé
  9714.   Γöé   FIRST SYMBOL   Γöé   FIER  Γöé * / ** + Γöé  OR UNARY Γöé   (   Γöé   )   Γöé
  9715.   Γöé           Γöé   OR   Γöé   -   Γöé   -   Γöé      Γöé      Γöé
  9716.   Γöé           Γöé  LITERAL  Γöé      Γöé      Γöé      Γöé      Γöé
  9717.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9718.   Γöé IDENTIFIER OR    Γöé   No   Γöé   Yes  Γöé   No   Γöé   No   Γöé   Yes  Γöé
  9719.   Γöé LITERAL       Γöé      Γöé      Γöé      Γöé      Γöé      Γöé
  9720.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9721.   Γöé *  /  **  +  -   Γöé   Yes   Γöé   No   Γöé   Yes   Γöé   Yes  Γöé   No   Γöé
  9722.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9723.   Γöé UNARY + OR UNARY -  Γöé   Yes   Γöé   No   Γöé   No   Γöé   Yes  Γöé   No   Γöé
  9724.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9725.   Γöé  (         Γöé   Yes   Γöé   No   Γöé   Yes   Γöé   Yes  Γöé   No   Γöé
  9726.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9727.   Γöé  )         Γöé   No   Γöé   Yes  Γöé   No   Γöé   No   Γöé   Yes  Γöé
  9728.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9729.  
  9730.  
  9731. ΓòÉΓòÉΓòÉ 12.6. Conditional Expressions ΓòÉΓòÉΓòÉ
  9732.  
  9733. A conditional expression causes the object program to select alternative paths 
  9734. of control, depending on the truth value of a test. Conditional expressions are 
  9735. specified in EVALUATE, IF, PERFORM, and SEARCH statements. 
  9736.  
  9737. A conditional expression can be specified in either 
  9738.  
  9739.   simple conditions 
  9740.   complex conditions 
  9741.  
  9742.  Both simple and complex conditions can be enclosed within any number of paired 
  9743.  parentheses; the parentheses do not change whether the condition is simple or 
  9744.  complex. 
  9745.  
  9746.  
  9747. ΓòÉΓòÉΓòÉ 12.6.1. Simple Conditions ΓòÉΓòÉΓòÉ
  9748.  
  9749. There are five simple conditions: 
  9750.  
  9751.   Class condition 
  9752.   Condition-name condition 
  9753.   Relation condition 
  9754.   Sign condition 
  9755.   Switch-status condition 
  9756.  
  9757.  A simple condition has a truth value of either true or false. 
  9758.  
  9759.  
  9760. ΓòÉΓòÉΓòÉ 12.6.1.1. Class Condition ΓòÉΓòÉΓòÉ
  9761.  
  9762. The class condition determines whether the content of a data item is 
  9763. alphabetic, alphabetic-lower, alphabetic-upper, numeric, or contains only the 
  9764. characters in the set of characters specified by the CLASS clause as defined in 
  9765. the SPECIAL-NAMES paragraph of the Environment Division. 
  9766.  
  9767. ΓöîΓöÇΓöÇΓöÇ CLASS CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9768. Γöé                                        Γöé
  9769. Γöé >ΓöÇΓöÇidentifierΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇNUMERICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ>           Γöé
  9770. Γöé         ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇNOTΓöÇΓöÇΓöÿ  Γö£ΓöÇALPHABETICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ             Γöé
  9771. Γöé                  Γö£ΓöÇALPHABETIC-LOWERΓöÇΓöñ             Γöé
  9772. Γöé                  Γö£ΓöÇALPHABETIC-UPPERΓöÇΓöñ             Γöé
  9773. Γöé                  ΓööΓöÇclass-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  9774. Γöé                                        Γöé
  9775. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9776.  
  9777.  
  9778. ΓòÉΓòÉΓòÉ 12.6.1.2. NUMERIC ΓòÉΓòÉΓòÉ
  9779.  
  9780. The data item consists entirely of the characters 0 through 9, with or without 
  9781. an operational sign. 
  9782.  
  9783. If its PICTURE does not contain an operational sign, the item being tested is 
  9784. determined to be numeric only if the contents are numeric and an operational 
  9785. sign is not present. 
  9786.  
  9787. If its PICTURE does contain an operational sign, the item being tested is 
  9788. determined to be numeric only if the item is an elementary item, the contents 
  9789. are numeric, and a valid operational sign is present. 
  9790.  
  9791. In the EBCDIC character set, valid embedded operational positive signs are 
  9792. hexadecimal F, C, E, and A. Negative signs are hexadecimal D and B. The 
  9793. preferred positive sign is hexadecimal F, and the preferred negative sign is 
  9794. hexadecimal D. For items described with the SIGN IS SEPARATE clause, valid 
  9795. operational signs are + (hex 4E) and - (hex 60). 
  9796.  
  9797. -----IBM Extension----- 
  9798.  
  9799. For numeric data items, the identifier being tested can be described implicitly 
  9800. or explicitly as USAGE DISPLAY, USAGE PACKED-DECIMAL, USAGE COMP, or USAGE 
  9801. COMP-3. 
  9802.  
  9803. ---End of IBM Extension--- 
  9804.  
  9805.  
  9806. ΓòÉΓòÉΓòÉ 12.6.1.3. Condition-Name Condition ΓòÉΓòÉΓòÉ
  9807.  
  9808. A condition-name condition tests a conditional variable to determine whether 
  9809. its value is equal to any value(s) associated with the condition-name. 
  9810.  
  9811. ΓöîΓöÇΓöÇΓöÇ CONDITION-NAME CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9812. Γöé                                        Γöé
  9813. Γöé >ΓöÇΓöÇcondition-nameΓöÇΓöÇ>                             Γöé
  9814. Γöé                                        Γöé
  9815. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9816.  
  9817. A condition-name is used in conditions as an abbreviation for the relation 
  9818. condition. The rules for comparing a conditional variable with a condition-name 
  9819. value are the same as those specified for relation conditions. 
  9820.  
  9821. If the condition-name has been associated with a range of values (or with 
  9822. several ranges of values), the conditional variable is tested to determine 
  9823. whether or not its value falls within the range(s), including the end values. 
  9824. The result of the test is true if one of the values corresponding to the 
  9825. condition-name equals the value of its associated conditional variable. 
  9826.  
  9827. The following example illustrates the use of conditional variables and 
  9828. condition-names: 
  9829.  
  9830. 01  NUMBER               PIC  99.
  9831.     88  FIVE             VALUE 5.
  9832.     88  ONE-DIGIT-EVEN   VALUE 0, 2, 4, 6, 8
  9833.     88  TWO-DIGIT-NUMBER VALUE 10 THRU 99
  9834.  
  9835. NUMBER is the conditional variable; FIVE, ONE-DIGIT-EVEN, TWO-DIGIT-NUMBER are 
  9836. condition-names. 
  9837.  
  9838. The following IF statements can be added to the above example to determine the 
  9839. age group of a specific record: 
  9840.  
  9841. IF FIVE...             (Tests for value 5)
  9842. IF ONE-DIGIT-EVEN      (Tests for values 0, 2, 4, 6, 8)
  9843. IF TWO-DIGIT-NUMBER    (Tests for values 10 thru 99)
  9844.  
  9845. Depending on the evaluation of the condition-name condition, alternative paths 
  9846. of execution are taken by the object program. 
  9847.  
  9848.  
  9849. ΓòÉΓòÉΓòÉ 12.6.1.4. Relation Condition ΓòÉΓòÉΓòÉ
  9850.  
  9851. A relation condition compares two operands, either of which may be an 
  9852. identifier, a literal, an arithmetic expression, or an index-name. The relation 
  9853. condition must contain at least one reference to an identifier. 
  9854.  
  9855. ΓöîΓöÇΓöÇΓöÇ RELATION CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9856. Γöé                                        Γöé
  9857. Γöé >ΓöÇΓöÇoperand-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9858. Γöé        ΓööΓöÇISΓöÇΓöÿ  Γöé   (1)Γöé                       Γöé
  9859. Γöé            ΓööΓöÇNOTΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  9860. Γöé                                        Γöé
  9861. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇGREATERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇoperand-2ΓöÇΓöÇ>           Γöé
  9862. Γöé   Γöé Γöé      ΓööΓöÇTHANΓöÇΓöÿ Γöé        Γöé                  Γöé
  9863. Γöé   Γöé Γö£ΓöÇ>ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé                  Γöé
  9864. Γöé   Γöé Γö£ΓöÇLESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé                  Γöé
  9865. Γöé   Γöé Γöé    ΓööΓöÇTHANΓöÇΓöÿ   Γöé        Γöé                  Γöé
  9866. Γöé   Γöé Γö£ΓöÇΓöÉΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé                  Γöé
  9867. Γöé   Γöé Γö£ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé                  Γöé
  9868. Γöé   Γöé Γöé     ΓööΓöÇTOΓöÇΓöÿ   Γöé        Γöé                  Γöé
  9869. Γöé   Γöé ΓööΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé                  Γöé
  9870. Γöé   Γö£ΓöÇGREATERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOR EQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ                  Γöé
  9871. Γöé   Γöé      ΓööΓöÇTHANΓöÇΓöÿ       ΓööΓöÇTOΓöÇΓöÿ Γöé                  Γöé
  9872. Γöé   Γö£ΓöÇ>=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                  Γöé
  9873. Γöé   Γö£ΓöÇLESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOR EQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ                  Γöé
  9874. Γöé   Γöé    ΓööΓöÇTHANΓöÇΓöÿ       ΓööΓöÇTOΓöÇΓöÿ   Γöé                  Γöé
  9875. Γöé   ΓööΓöÇΓöÉ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé
  9876. Γöé                                        Γöé
  9877. Γöé NOTE:                                     Γöé
  9878. Γöé (1)  NOT GREATER THAN OR EQUAL TO, NOT >=, NOT LESS THAN OR EQUAL TO, and   Γöé
  9879. Γöé    NOT <=, are IBM Extensions.                       Γöé
  9880. Γöé                                        Γöé
  9881. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9882.  
  9883. The relational operator specifies the type of comparison to be made. Each 
  9884. relational operator must be preceded and followed by a space. 
  9885.  
  9886.  Relational Operator                              Can Be Written 
  9887.  IS GREATER THAN                                  IS > 
  9888.  IS NOT GREATER THAN                              IS NOT > 
  9889.  IS LESS THAN                                     IS < 
  9890.  IS NOT LESS THAN                                 IS NOT < 
  9891.  IS EQUAL TO                                      IS = 
  9892.  IS NOT EQUAL TO                                  IS NOT = 
  9893.  IS GREATER THAN OR EQUAL TO                      IS >= 
  9894.  IS LESS THAN OR EQUAL TO                         IS <= 
  9895.  -----IBM Extension----- 
  9896.  IS NOT GREATER THAN OR EQUAL TO                  IS NOT >= 
  9897.  IS NOT LESS THAN OR EQUAL TO                     IS NOT <= 
  9898.  ---End of IBM Extension--- 
  9899.  
  9900.  Related Information: 
  9901.  
  9902.   Pointer Data Items 
  9903.   Procedure-Pointer Data Items 
  9904.   Comparing Numeric Operands 
  9905.   Comparing Nonnumeric Operands 
  9906.   Comparing Numeric and Nonnumeric Operands 
  9907.   Comparing Boolean Operands 
  9908.   Comparing Index-Names and Index Data Items 
  9909.  
  9910.  
  9911. ΓòÉΓòÉΓòÉ 12.6.1.4.1. Pointer Data Items ΓòÉΓòÉΓòÉ
  9912.  
  9913. -----IBM Extension----- 
  9914.  
  9915. Pointer data items are items defined explicitly as USAGE IS POINTER. Otherwise, 
  9916. they are ADDRESS OF data items or ADDRESS OF special registers, which are 
  9917. implicitly defined as USAGE IS POINTER. 
  9918.  
  9919. Only EQUAL and NOT EQUAL are allowed as relational operators when you specify 
  9920. pointer data items. The operands are equal if the two addresses used in the 
  9921. comparison would both result in the same storage location. 
  9922.  
  9923. This relation condition is allowed in IF, PERFORM, EVALUATE, and SEARCH Format 
  9924. 1 statements. It is not allowed in SEARCH Format 2 (SEARCH ALL) statements, 
  9925. because there is not a meaningful ordering that can be applied to pointer data 
  9926. items. 
  9927.  
  9928. ΓöîΓöÇΓöÇΓöÇ ADDRESS COMPARISON - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9929. Γöé                                        Γöé
  9930. Γöé >ΓöÇΓöÇΓö¼ΓöÇADDRESS OFΓöÇΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9931. Γöé   Γö£ΓöÇidentifier-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇNOTΓöÇΓöÿ  Γöé     ΓööΓöÇTOΓöÇΓöÿ Γöé      Γöé
  9932. Γöé   Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          ΓööΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  9933. Γöé   ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  9934. Γöé                                        Γöé
  9935. Γöé >ΓöÇΓöÇΓö¼ΓöÇADDRESS OFΓöÇΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇ>                      Γöé
  9936. Γöé   Γö£ΓöÇidentifier-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  9937. Γöé   Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  9938. Γöé   ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  9939. Γöé                                        Γöé
  9940. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9941.  
  9942. ---End of IBM Extension--- 
  9943.  
  9944.  
  9945. ΓòÉΓòÉΓòÉ 12.6.1.4.2. Procedure-pointer Data Items ΓòÉΓòÉΓòÉ
  9946.  
  9947. -----IBM Extension----- 
  9948.  
  9949. Procedure-pointer data items are items defined explicitly as USAGE IS 
  9950. PROCEDURE-POINTER. 
  9951.  
  9952. Only EQUAL and NOT EQUAL are allowed as relational operators when you specify 
  9953. procedure-pointer data items. The operands are equal if the two addresses used 
  9954. in the comparison would both result in the same storage location. 
  9955.  
  9956. This relation condition is allowed in IF, PERFORM, EVALUATE, and SEARCH Format 
  9957. 1 statements. It is not allowed in SEARCH Format 2 (SEARCH ALL) statements, 
  9958. because there is not a meaningful ordering that can be applied to 
  9959. procedure-pointer data items. 
  9960.  
  9961. ΓöîΓöÇΓöÇΓöÇ PROCEDURE-POINTER COMPARISON - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9962. Γöé                                        Γöé
  9963. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  9964. Γöé   Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ  ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇNOTΓöÇΓöÿ  Γöé     ΓööΓöÇTOΓöÇΓöÿ Γöé            Γöé
  9965. Γöé   ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ          ΓööΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  9966. Γöé                                        Γöé
  9967. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇ>                            Γöé
  9968. Γöé   Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                              Γöé
  9969. Γöé   ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  9970. Γöé                                        Γöé
  9971. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9972.  
  9973. ---End of IBM Extension--- 
  9974.  
  9975.  
  9976. ΓòÉΓòÉΓòÉ 12.6.1.4.3. Comparing Numeric Operands ΓòÉΓòÉΓòÉ
  9977.  
  9978. The algebraic values of numeric operands are compared. 
  9979.  
  9980.   The length (number of digits) of the operands is not significant. 
  9981.  
  9982.   Unsigned numeric operands are considered positive. 
  9983.  
  9984.   Zero is considered to be a unique value, regardless of sign. 
  9985.  
  9986.   Comparison of numeric operands is permitted, regardless of the type of USAGE 
  9987.    specified for each. 
  9988.  
  9989.  
  9990. ΓòÉΓòÉΓòÉ 12.6.1.4.4. Comparing Nonnumeric Operands ΓòÉΓòÉΓòÉ
  9991.  
  9992. Comparisons of nonnumeric operands are made with respect to the collating 
  9993. sequence of the character set in use. 
  9994.  
  9995. When the PROGRAM COLLATING SEQUENCE clause is specified in the OBJECT-COMPUTER 
  9996. paragraph, the collating sequence associated with the alphabet-name clause in 
  9997. the SPECIAL-NAMES paragraph is used. Otherwise, the native EBCDIC character set 
  9998. is used. 
  9999.  
  10000. The size of each operand is the total number of characters in that operand. 
  10001. There are two cases to consider: 
  10002.  
  10003.     Operands of Equal Size 
  10004.               Characters in corresponding positions of the two operands are 
  10005.               compared, beginning with the leftmost character and continuing 
  10006.               through the rightmost character. 
  10007.  
  10008.               If all pairs of characters through the last pair test as equal, 
  10009.               the operands are considered equal. 
  10010.  
  10011.               If a pair of unequal characters is encountered, the characters 
  10012.               are tested to determine their relative positions in the collating 
  10013.               sequence. The operand containing the character higher in the 
  10014.               sequence is considered the greater operand. 
  10015.  
  10016.     Operands of Unequal Size 
  10017.               If the operands are of unequal size, the comparison is made as 
  10018.               though the shorter operand were extended to the right with enough 
  10019.               spaces to make the operands equal in size. 
  10020.  
  10021.  
  10022. ΓòÉΓòÉΓòÉ 12.6.1.4.5. Comparing Numeric and Nonnumeric Operands ΓòÉΓòÉΓòÉ
  10023.  
  10024. The nonnumeric comparison rules, discussed above, apply. In addition, when 
  10025. numeric and nonnumeric operands are being compared, their USAGE must be the 
  10026. same. In such comparisons: 
  10027.  
  10028.   The numeric operand must be described as an integer literal or data item. 
  10029.  
  10030.   Noninteger literals and data items must not be compared with nonnumeric 
  10031.    operands. 
  10032.  
  10033.  If either of the operands is a group item, the nonnumeric comparison rules, 
  10034.  discussed above, apply.  In addition to those rules: 
  10035.  
  10036.   If the nonnumeric operand is a literal or an elementary data item, the 
  10037.    numeric operand is treated as though it were moved to an alphanumeric 
  10038.    elementary data item of the same size, and the contents of this alphanumeric 
  10039.    data item were then compared with the nonnumeric operand. 
  10040.  
  10041.   If the nonnumeric operand is a group item, the numeric operand is treated as 
  10042.    though it were moved to a group item of the same size, and the contents of 
  10043.    this group item were compared then with the nonnumeric operand. 
  10044.  
  10045.    (See MOVE Statement.) 
  10046.  
  10047.  
  10048. ΓòÉΓòÉΓòÉ 12.6.1.4.6. Comparing of Boolean Operands ΓòÉΓòÉΓòÉ
  10049.  
  10050. -----IBM Extension----- 
  10051.  
  10052. Boolean operands are used only in the [NOT] EQUAL TO relation condition. 
  10053. Boolean operands cannot be compared to non-Boolean operands.  Boolean data 
  10054. items and literals must be one position in length.  Two Boolean operands are 
  10055. equal if they both have a value of Boolean 1 or Boolean 0. 
  10056.  
  10057. ---End of IBM Extension--- 
  10058.  
  10059.  
  10060. ΓòÉΓòÉΓòÉ 12.6.1.4.7. Comparing Index-Names and Index Data Items ΓòÉΓòÉΓòÉ
  10061.  
  10062. Comparisons involving index-names and/or index data items conform to the 
  10063. following rules: 
  10064.  
  10065.   The comparison of two index-names is a comparison of the corresponding 
  10066.    occurrence numbers. 
  10067.  
  10068.   In the comparison of an index-name with a data item (other than an index 
  10069.    data item), or in the comparison of an index-name with a literal, the 
  10070.    occurrence number of the index-name is compared with the data item or 
  10071.    literal. 
  10072.  
  10073.   In the comparison of an index data item with an index-name or another index 
  10074.    data item, the actual values are compared without conversion. Results of any 
  10075.    other comparison involving an index data item are undefined. 
  10076.  
  10077.  Comparisons Involving Index Names and Index Data Items shows valid comparisons 
  10078.  involving index-names and index data items. 
  10079.  
  10080.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10081.   Γöé      Comparisons Involving Index Names and Index Data Items       Γöé
  10082.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10083.   Γöé OPERANDS COM- Γöé INDEX-NAME   Γöé INDEX DATA   Γöé DATA-NAME   Γöé LITERAL    Γöé
  10084.   Γöé PARED     Γöé        Γöé ITEM      Γöé        Γöé        Γöé
  10085.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10086.   Γöé INDEX-NAME   Γöé Compare    Γöé Compare    Γöé Compare    Γöé Compare    Γöé
  10087.   Γöé        Γöé occurrence   Γöé without con-  Γöé occurrence   Γöé occurrence  Γöé
  10088.   Γöé        Γöé number     Γöé version    Γöé number with  Γöé number with  Γöé
  10089.   Γöé        Γöé        Γöé        Γöé data-name   Γöé literal    Γöé
  10090.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10091.   Γöé INDEX DATA   Γöé Compare    Γöé Compare    Γöé Not permitted Γöé Not per-   Γöé
  10092.   Γöé ITEM      Γöé without con-  Γöé without con-  Γöé        Γöé mitted    Γöé
  10093.   Γöé        Γöé version    Γöé version    Γöé        Γöé        Γöé
  10094.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10095.  
  10096.  
  10097. ΓòÉΓòÉΓòÉ 12.6.1.5. Sign Condition ΓòÉΓòÉΓòÉ
  10098.  
  10099. The sign condition determines whether or not the algebraic value of a numeric 
  10100. operand is greater than, less than, or equal to zero. 
  10101.  
  10102. ΓöîΓöÇΓöÇΓöÇ SIGN CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10103. Γöé                                        Γöé
  10104. Γöé >ΓöÇΓöÇoperand-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇPOSITIVEΓöÇΓö¼ΓöÇΓöÇ>                Γöé
  10105. Γöé        ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇNOTΓöÇΓöÇΓöÿ  Γö£ΓöÇNEGATIVEΓöÇΓöñ                 Γöé
  10106. Γöé                 ΓööΓöÇZEROΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  10107. Γöé                                        Γöé
  10108. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10109.  
  10110.  
  10111. ΓòÉΓòÉΓòÉ 12.6.1.6. Switch-Status Condition ΓòÉΓòÉΓòÉ
  10112.  
  10113. The switch-status condition determines the on or off status of an UPSI switch, 
  10114. by testing the value associated with the condition-name. (The value associated 
  10115. with the condition-name is considered to be alphanumeric.) The result of the 
  10116. test is true if the UPSI switch is set to the value (0 or 1) corresponding to 
  10117. condition-name. 
  10118.  
  10119. ΓöîΓöÇΓöÇΓöÇ SWITCH-STATUS CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10120. Γöé                                        Γöé
  10121. Γöé >ΓöÇΓöÇcondition-nameΓöÇΓöÇ>                             Γöé
  10122. Γöé                                        Γöé
  10123. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10124.  
  10125.  
  10126. ΓòÉΓòÉΓòÉ 12.6.2. Complex Conditions ΓòÉΓòÉΓòÉ
  10127.  
  10128. A complex condition is formed by combining simple conditions, combined 
  10129. conditions, and/or complex conditions with logical operators, or negating these 
  10130. conditions with logical negation. 
  10131.  
  10132. Each logical operator must be preceded and followed by a space. The following 
  10133. chart shows the logical operators and their meanings. 
  10134.  
  10135. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10136. Γöé      Logical Operators and Their Meanings                Γöé
  10137. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10138. Γöé LOGICAL   Γöé        Γöé                          Γöé
  10139. Γöé OPERATOR  Γöé NAME     Γöé MEANING                      Γöé
  10140. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10141. Γöé   AND   Γöé Logical con- Γöé The truth value is TRUE when both conditions are Γöé
  10142. Γöé       Γöé junction   Γöé true.                       Γöé
  10143. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10144. Γöé   OR    Γöé Logical    Γöé The truth value is TRUE when either or both con- Γöé
  10145. Γöé       Γöé inclusive OR Γöé ditions are true.                 Γöé
  10146. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10147. Γöé   NOT   Γöé Logical    Γöé Reversal of truth value (the truth value is TRUE Γöé
  10148. Γöé       Γöé negation   Γöé if the condition is false).            Γöé
  10149. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10150. Unless modified by parentheses, the following precedence rules (from highest to 
  10151. lowest) apply: 
  10152.  
  10153.   1. Arithmetic operations 
  10154.   2. Simple conditions 
  10155.   3. NOT 
  10156.   4. AND 
  10157.   5. OR 
  10158.  
  10159.  The truth value of a complex condition (whether parenthesized or not) is the 
  10160.  truth value that results from the interaction of all the stated logical 
  10161.  operators on either of the following: 
  10162.  
  10163.   The individual truth values of simple conditions 
  10164.   The intermediate truth values of conditions logically combined or logically 
  10165.    negated. 
  10166.  
  10167.  A complex condition can be either of the following: 
  10168.  
  10169.   A negated simple condition 
  10170.   A combined condition (which can be negated). 
  10171.  
  10172.  
  10173. ΓòÉΓòÉΓòÉ 12.6.2.1. Negated Simple Conditions ΓòÉΓòÉΓòÉ
  10174.  
  10175. A simple condition is negated through the use of the logical operator NOT. The 
  10176. negated simple condition gives the opposite truth value of the simple 
  10177. condition. 
  10178.  
  10179. ΓöîΓöÇΓöÇΓöÇ NEGATED SIMPLE CONDITION - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10180. Γöé                                        Γöé
  10181. Γöé >ΓöÇΓöÇNOTΓöÇΓöÇsimple-conditionΓöÇΓöÇ>                          Γöé
  10182. Γöé                                        Γöé
  10183. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10184.  
  10185.  
  10186. ΓòÉΓòÉΓòÉ 12.6.2.2. Combined Conditions ΓòÉΓòÉΓòÉ
  10187.  
  10188. Two or more conditions can be logically connected to form a combined condition. 
  10189.  
  10190. ΓöîΓöÇΓöÇΓöÇ COMBINED CONDITIONS - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10191. Γöé                                        Γöé
  10192. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  10193. Γöé                     Γöé                   Γöé
  10194. Γöé >ΓöÇΓöÇcondition-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇANDΓöÇΓö¼ΓöÇΓöÇcondition-2ΓöÇΓö┤ΓöÇΓöÇ>                  Γöé
  10195. Γöé          ΓööΓöÇORΓöÇΓöÇΓöÿ                           Γöé
  10196. Γöé                                        Γöé
  10197. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10198.  
  10199. The condition to be combined may be any of the following: 
  10200.  
  10201.   A simple-condition 
  10202.  
  10203.   A negated simple-condition 
  10204.  
  10205.   A combined condition 
  10206.  
  10207.   A negated combined condition (that is, the NOT logical operator followed by 
  10208.    a combined condition enclosed in parentheses) 
  10209.  
  10210.   Combinations of the preceding conditions, specified according to the rules 
  10211.    in the following table. 
  10212.  
  10213.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10214.   Γöé      Combined Conditions-Permissible Element Sequences          Γöé
  10215.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10216.   Γöé COMBINED  Γöé LEFTMOST Γöé WHEN NOT LEFTMOST,  Γöé RIGHT-  Γöé WHEN NOT RIGHTMOST, Γöé
  10217.   Γöé CONDITION  Γöé      Γöé CAN BE IMMEDIATELY  Γöé MOST   Γöé CAN BE IMMEDIATELY  Γöé
  10218.   Γöé ELEMENT   Γöé      Γöé PRECEDED BY:     Γöé      Γöé FOLLOWED BY:     Γöé
  10219.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10220.   Γöé simple-   Γöé Yes    Γöé OR          Γöé Yes    Γöé OR          Γöé
  10221.   Γöé condition  Γöé      Γöé NOT         Γöé      Γöé AND         Γöé
  10222.   Γöé       Γöé      Γöé AND         Γöé      Γöé )          Γöé
  10223.   Γöé       Γöé      Γöé (          Γöé      Γöé           Γöé
  10224.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10225.   Γöé OR     Γöé No    Γöé simple-condition   Γöé No    Γöé simple-condition   Γöé
  10226.   Γöé AND     Γöé      Γöé )          Γöé      Γöé NOT         Γöé
  10227.   Γöé       Γöé      Γöé           Γöé      Γöé (          Γöé
  10228.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10229.   Γöé NOT     Γöé Yes    Γöé OR          Γöé No    Γöé simple-condition   Γöé
  10230.   Γöé       Γöé      Γöé AND         Γöé      Γöé (          Γöé
  10231.   Γöé       Γöé      Γöé (          Γöé      Γöé           Γöé
  10232.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10233.   Γöé (      Γöé Yes    Γöé OR          Γöé No    Γöé simple-condition   Γöé
  10234.   Γöé       Γöé      Γöé NOT         Γöé      Γöé NOT         Γöé
  10235.   Γöé       Γöé      Γöé AND         Γöé      Γöé (          Γöé
  10236.   Γöé       Γöé      Γöé (          Γöé      Γöé           Γöé
  10237.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10238.   Γöé )      Γöé No    Γöé simple-condition   Γöé Yes    Γöé OR          Γöé
  10239.   Γöé       Γöé      Γöé )          Γöé      Γöé AND         Γöé
  10240.   Γöé       Γöé      Γöé           Γöé      Γöé )          Γöé
  10241.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10242.  
  10243.  Parentheses are never needed when either ANDs or ORs (but not both) are used 
  10244.  exclusively in one combined condition. However, parentheses may be needed to 
  10245.  modify the implicit precedence rules to maintain the correct logical relation 
  10246.  of operators and operands. 
  10247.  
  10248.  There must be a one-to-one correspondence between left and right parentheses, 
  10249.  with each left parenthesis to the left of its corresponding right parenthesis. 
  10250.  
  10251.  The following table illustrates the relationships between logical operators 
  10252.  and conditions C1 and C2. 
  10253.  
  10254.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10255.   Γöé      Logical Operators and Evaluation Results of Combined Conditions   Γöé
  10256.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10257.   Γöé     Γöé     Γöé   Γöé     Γöé     Γöé NOT   Γöé     Γöé     Γöé     Γöé
  10258.   Γöé     Γöé     Γöé   Γöé     Γöé     Γöé (C1   Γöé     Γöé NOT   Γöé     Γöé
  10259.   Γöé VALUE  Γöé VALUE  Γöé   Γöé C1 AND  Γöé C1 OR  Γöé AND   Γöé NOT C1  Γöé (C1 OR Γöé NOT C1 Γöé
  10260.   Γöé FOR C1 Γöé FOR C2 Γöé   Γöé C2    Γöé C2   Γöé C2)   Γöé AND C2  Γöé C2)   Γöé OR C2  Γöé
  10261.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10262.   Γöé True  Γöé True  Γöé   Γöé True   Γöé True  Γöé False  Γöé False  Γöé False  Γöé True  Γöé
  10263.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10264.   Γöé False  Γöé True  Γöé   Γöé False  Γöé True  Γöé True  Γöé True   Γöé False  Γöé True  Γöé
  10265.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10266.   Γöé True  Γöé False  Γöé   Γöé False  Γöé True  Γöé True  Γöé False  Γöé False  Γöé False  Γöé
  10267.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10268.   Γöé False  Γöé False  Γöé   Γöé False  Γöé False  Γöé True  Γöé False  Γöé True  Γöé True  Γöé
  10269.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10270.  
  10271.  Related Information: 
  10272.  
  10273.   Evaluating Conditional Expressions 
  10274.   Abbreviated Combined Relation Conditions 
  10275.  
  10276.  
  10277. ΓòÉΓòÉΓòÉ 12.6.2.2.1. Evaluating Conditional Expressions ΓòÉΓòÉΓòÉ
  10278.  
  10279. If parentheses are used, logical evaluation of combined conditions proceeds in 
  10280. the following order: 
  10281.  
  10282.   1. Conditions within parentheses are evaluated first. 
  10283.  
  10284.   2. Within nested parentheses, evaluation proceeds from the least inclusive 
  10285.      condition to the most inclusive condition. 
  10286.  
  10287.  If parentheses are not used (or are not at the same level of inclusiveness), 
  10288.  the combined condition is evaluated in the following order: 
  10289.  
  10290.   1. Arithmetic expressions. 
  10291.  
  10292.   2. Simple-conditions in the following order: 
  10293.  
  10294.      a) Relation 
  10295.      b) Class 
  10296.      c) Condition-name 
  10297.      d) Switch-status 
  10298.      e) Sign. 
  10299.  
  10300.   3. Negated simple-conditions in the same order as item 2. 
  10301.  
  10302.   4. Combined conditions, in the following order: 
  10303.  
  10304.      a) AND 
  10305.      b) OR. 
  10306.  
  10307.   5. Negated combined conditions in the following order: 
  10308.  
  10309.      a) AND 
  10310.      b) OR. 
  10311.  
  10312.   6. Consecutive operands at the same evaluation-order level are evaluated from 
  10313.      left to right.  However, the truth value of a combined condition can 
  10314.      sometimes be determined without evaluating the truth value of all the 
  10315.      component conditions. 
  10316.  
  10317.  The component conditions of a combined condition are evaluated from left to 
  10318.  right.  If the truth value of one condition is not affected by the evaluation 
  10319.  of further elements of the combined condition, these elements are not 
  10320.  evaluated. However, the truth value of the condition will always be the same 
  10321.  (as if the condition had been evaluated in full), as described earlier in this 
  10322.  paragraph. 
  10323.  
  10324.  For example: 
  10325.  
  10326.      NOT A IS GREATER THAN B OR A + B IS EQUAL
  10327.        TO C AND D IS POSITIVE
  10328.  
  10329.  is evaluated as if parenthesized as follows: 
  10330.  
  10331.      (NOT (A IS GREATER THAN B)) OR (((A+B) IS EQUAL
  10332.        TO C) AND (D IS POSITIVE))
  10333.  
  10334.  The order of evaluation in this example is as follows: 
  10335.  
  10336.   1. (NOT (A IS GREATER THAN B)) is evaluated.  If true, the rest of the 
  10337.      condition is not evaluated, as the expression is true. 
  10338.  
  10339.   2. (A+B) is evaluated, giving some intermediate result, x. 
  10340.  
  10341.   3. (x IS EQUAL TO C) is evaluated. If false, the rest of the condition is not 
  10342.      evaluated, as the expression is false. 
  10343.  
  10344.   4. (D IS POSITIVE) is evaluated, giving the final truth value of the 
  10345.      expression. 
  10346.  
  10347.  
  10348. ΓòÉΓòÉΓòÉ 12.6.2.3. Abbreviated Combined Relation Conditions ΓòÉΓòÉΓòÉ
  10349.  
  10350. When relation-conditions are written consecutively without intervening 
  10351. parentheses, any relation-condition after the first can be abbreviated in one 
  10352. of two ways: 
  10353.  
  10354.   Omission of the subject 
  10355.   Omission of the subject and relational operator. 
  10356.  
  10357.   ΓöîΓöÇΓöÇΓöÇ ABBREVIATED COMBINED RELATION CONDITIONS - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10358.   Γöé                                        Γöé
  10359.   Γöé >ΓöÇΓöÇrelation-conditionΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  10360.   Γöé                                        Γöé
  10361.   Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  10362.   Γöé                                  Γöé      Γöé
  10363.   Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇANDΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇobjectΓö┤ΓöÇΓöÇ>     Γöé
  10364.   Γöé    ΓööΓöÇORΓöÇΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÿ  Γöé   (1)Γöé  Γö£ΓöÇGREATERΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10365.   Γöé            ΓööΓöÇNOTΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé     ΓööΓöÇTHANΓöÇΓöÿ   Γöé          Γöé
  10366.   Γöé                  Γö£ΓöÇ>ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10367.   Γöé                  Γö£ΓöÇLESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10368.   Γöé                  Γöé    ΓööΓöÇTHANΓöÇΓöÿ    Γöé          Γöé
  10369.   Γöé                  Γö£ΓöÇΓöÉΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10370.   Γöé                  Γö£ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10371.   Γöé                  Γöé     ΓööΓöÇTOΓöÇΓöÿ     Γöé          Γöé
  10372.   Γöé                  Γö£ΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10373.   Γöé                  Γö£ΓöÇΓöñ greater or equal Γö£ΓöÇΓöñ          Γöé
  10374.   Γöé                  Γö£ΓöÇ>=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöñ          Γöé
  10375.   Γöé                  Γö£ΓöÇΓöñ less or equal Γö£ΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  10376.   Γöé                  ΓööΓöÇΓöÉ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  10377.   Γöé                                        Γöé
  10378.   Γöé GREATER OR EQUAL:                               Γöé
  10379.   Γöé Γö£ΓöÇΓöÇGREATERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOR EQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                   Γöé
  10380.   Γöé       ΓööΓöÇTHANΓöÇΓöÿ       ΓööΓöÇTOΓöÇΓöÿ                    Γöé
  10381.   Γöé                                        Γöé
  10382.   Γöé LESS OR EQUAL:                                Γöé
  10383.   Γöé Γö£ΓöÇΓöÇLESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOR EQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  10384.   Γöé      ΓööΓöÇTHANΓöÇΓöÿ       ΓööΓöÇTOΓöÇΓöÿ                      Γöé
  10385.   Γöé                                        Γöé
  10386.   Γöé NOTE:                                     Γöé
  10387.   Γöé (1)  NOT GREATER THAN OR EQUAL TO, NOT >=, NOT LESS THAN OR EQUAL TO, and   Γöé
  10388.   Γöé    NOT <=, are IBM Extensions.                       Γöé
  10389.   Γöé                                        Γöé
  10390.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10391.  
  10392.  An object is any data item or expression that can be compared to the subject 
  10393.  of the preceding relation condition. 
  10394.  
  10395.  In any consecutive sequence of relation-conditions, both forms of abbreviation 
  10396.  can be specified. The abbreviated condition is evaluated as if: 
  10397.  
  10398.   1. The last stated subject is the missing subject. 
  10399.   2. The last stated relational operator is the missing relational operator. 
  10400.  
  10401.  The resulting combined condition must comply with the rules for element 
  10402.  sequence in combined conditions, as shown in Abbreviated Combined Relation 
  10403.  Conditions. 
  10404.  
  10405.  The word NOT is considered part of the relational operator in the forms NOT 
  10406.  GREATER THAN, NOT >, NOT LESS THAN, NOT <, NOT EQUAL TO, and NOT =. 
  10407.  
  10408.  NOT in any other position is considered a logical operator (and thus results 
  10409.  in a negated relation-condition). 
  10410.  
  10411.  The following examples illustrate abbreviated combined relation conditions, 
  10412.  with and without parentheses, and their unabbreviated equivalents. 
  10413.  
  10414.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10415.   Γöé      Abbreviated Combined Relation Conditions              Γöé
  10416.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10417.   Γöé ABBREVIATED COMBINED RELATION CONDI-  Γöé EQUIVALENT              Γöé
  10418.   Γöé TION                  Γöé                    Γöé
  10419.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10420.   Γöé A = B AND NOT < C OR D         Γöé ((A = B) AND (A NOT < C))  OR (A NOT Γöé
  10421.   Γöé                    Γöé < D)                 Γöé
  10422.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10423.   Γöé A NOT > B OR C             Γöé (A NOT > B)  OR (A NOT > C)      Γöé
  10424.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10425.   Γöé NOT A = B OR C             Γöé (NOT (A = B)) OR (A = C)       Γöé
  10426.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10427.   Γöé NOT (A = B OR < C)           Γöé NOT ((A = B) OR (A < C))       Γöé
  10428.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10429.   Γöé NOT (A NOT = B AND C AND NOT D)    Γöé NOT ((((A NOT = B) AND (A NOT = C))  Γöé
  10430.   Γöé                    Γöé  AND (NOT (A NOT = D))))       Γöé
  10431.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10432.  
  10433.  
  10434. ΓòÉΓòÉΓòÉ 12.7. Statement Categories ΓòÉΓòÉΓòÉ
  10435.  
  10436. There are four categories of COBOL statements: 
  10437.  
  10438.   Imperative 
  10439.   Conditional 
  10440.   Delimited scope 
  10441.   Compiler directing. 
  10442.  
  10443.  
  10444. ΓòÉΓòÉΓòÉ 12.7.1. Imperative Statements ΓòÉΓòÉΓòÉ
  10445.  
  10446. An imperative statement either specifies an unconditional action to be taken by 
  10447. the program, or is a conditional statement terminated by its explicit scope 
  10448. terminator (see Delimited Scope Statements). A series of imperative statements 
  10449. can be specified whenever an imperative statement is allowed.
  10450.  
  10451.  
  10452. ΓòÉΓòÉΓòÉ 12.7.2. Conditional Statements ΓòÉΓòÉΓòÉ
  10453.  
  10454. A conditional statement specifies that the truth value of a condition is to be 
  10455. determined, and that the subsequent action of the object program is dependent 
  10456. on this truth value. (See Conditional Expressions.) 
  10457.  
  10458.  
  10459. ΓòÉΓòÉΓòÉ 12.7.3. Delimited Scope Statements ΓòÉΓòÉΓòÉ
  10460.  
  10461. A delimited scope statement uses an explicit scope terminator to turn a 
  10462. conditional statement into an imperative statement; the resulting imperative 
  10463. statement can then be nested. Explicit scope terminators may also be used to 
  10464. terminate the scope of an imperative statement. Explicit scope terminators are 
  10465. provided for all COBOL verbs that may have conditional phrases. 
  10466.  
  10467. Unless explicitly specified otherwise, a delimited scope statement may be 
  10468. specified wherever an imperative statement is allowed by the rules of the 
  10469. language. 
  10470.  
  10471. Related Information: 
  10472.  
  10473.   Explicit Scope Terminators 
  10474.   Implicit Scope Terminators. 
  10475.  
  10476.  
  10477. ΓòÉΓòÉΓòÉ 12.7.3.1. Explicit Scope Terminators ΓòÉΓòÉΓòÉ
  10478.  
  10479. An explicit scope terminator marks the end of certain Procedure Division 
  10480. statements. A conditional statement that is delimited by its explicit scope 
  10481. terminator is considered an imperative statement and must follow the rules for 
  10482. imperative statements. 
  10483.  
  10484.  
  10485. ΓòÉΓòÉΓòÉ 12.7.3.2. Implicit Scope Terminators ΓòÉΓòÉΓòÉ
  10486.  
  10487. The separator period at the end of any sentence is an implicit scope terminator 
  10488. that terminates the scope of any previous statement that is not yet terminated. 
  10489. When a statement is contained within another statement, the next phrase of the 
  10490. containing statement following the contained statement is an implicit scope 
  10491. terminator that ends the scope of the contained statement. 
  10492.  
  10493. A conditional statement not terminated by its scope terminator cannot be 
  10494. contained within another statement. 
  10495.  
  10496. Except for nesting conditional statements within IF statements, nested 
  10497. statements must be imperative statements, and must follow the rules for 
  10498. imperative statements. You should not nest conditional statements. 
  10499.  
  10500.  
  10501. ΓòÉΓòÉΓòÉ 12.8. Statement Operations ΓòÉΓòÉΓòÉ
  10502.  
  10503. COBOL statements perform the following types of operations: 
  10504.  
  10505.   Arithmetic 
  10506.   Data manipulation 
  10507.   Input/output 
  10508.   Ordering 
  10509.   Subprogram linkage 
  10510.   Table handling 
  10511.   Procedure branching 
  10512.  
  10513.  
  10514. ΓòÉΓòÉΓòÉ 12.8.1. CORRESPONDING Phrase ΓòÉΓòÉΓòÉ
  10515.  
  10516. The CORRESPONDING phrase (CORR) allows ADD, SUBTRACT, and MOVE operations to be 
  10517. performed on elementary data items of the same name if the group items to which 
  10518. they belong are specified. 
  10519.  
  10520. Both identifiers following the keyword CORRESPONDING must be group items. In 
  10521. this discussion, these identifiers are referred to as identifier-1 and 
  10522. identifier-2. 
  10523.  
  10524. A pair of data items (subordinate items), one from identifier-1 and one from 
  10525. identifier-2, correspond if the following conditions are true: 
  10526.  
  10527.   In an ADD or SUBTRACT statement, both of the data items are elementary 
  10528.    numeric data items.  Other data items are ignored. 
  10529.  
  10530.   In a MOVE statement, at least one of the data items is an elementary item, 
  10531.    and the move is permitted by the move rules. 
  10532.  
  10533.   The two subordinate items have the same name and the same qualifiers up to 
  10534.    but not including identifier-1 and identifier-2. 
  10535.  
  10536.   The subordinate items are not identified by the keyword FILLER. 
  10537.  
  10538.   Neither identifier-1 nor identifier-2 is described as a level 66, 77, or 88 
  10539.    item, nor is the usage of either item INDEX, POINTER, or PROCEDURE-POINTER. 
  10540.    Neither identifier-1 nor identifier-2 can be reference modified. The name of 
  10541.    the data item must be unique after application of the implied qualifiers. 
  10542.  
  10543.   The subordinate items do not include a REDEFINES, RENAMES, OCCURS, USAGE IS 
  10544.    INDEX, USAGE IS POINTER, or USAGE IS PROCEDURE-POINTER clause in their 
  10545.    descriptions; if such a subordinate item is a group, the items subordinate 
  10546.    to it are also ignored. 
  10547.  
  10548.    However, identifier-1 and identifier-2 themselves may contain or be 
  10549.    subordinate to items containing a REDEFINES or OCCURS clause in their 
  10550.    descriptions. 
  10551.  
  10552.   Identifier-1 and identifier-2 can be subordinate to a FILLER item. 
  10553.  
  10554.    For example, if two data hierarchies are defined as follows: 
  10555.  
  10556.       05  ITEM-1 OCCURS 6 INDEXED BY X.
  10557.         10  ITEM-A PIC S9(3).
  10558.         10  ITEM-B PIC 99V9.
  10559.         10  ITEM-C PIC X(4).
  10560.         10  ITEM-D REDEFINES ITEM-C PIC 9(4).
  10561.         10  ITEM-E PIC 9(4) USAGE COMP.
  10562.         10  ITEM-F USAGE INDEX.
  10563.         10  ITEM-G PIC X(4).
  10564.       05  ITEM-2.
  10565.         10  ITEM-A PIC 99.
  10566.         10  ITEM-B PIC 9V9.
  10567.         10  ITEM-C PIC A(4).
  10568.         10  ITEM-D PIC 9(4).
  10569.         10  ITEM-E PIC 9(9) USAGE COMP.
  10570.         10  ITEM-F USAGE INDEX.
  10571.         10  ITEM-G PIC X(4).
  10572.  
  10573.    Then, if ADD CORR ITEM-2 TO ITEM-1(X) is specified, 
  10574.  
  10575.     - ITEM-A and ITEM-A(X); ITEM-B and ITEM-B(X); ITEM-E and ITEM-E(X) are 
  10576.       considered to be corresponding and are added together 
  10577.     - ITEM-C and ITEM-C(X); ITEM-G and ITEM-G(X) are not included, because they 
  10578.       are not numeric 
  10579.     - ITEM-D and ITEM-D(X) are not included, because ITEM-D(X) includes a 
  10580.       REDEFINES clause in its data description. 
  10581.     - ITEM-F and ITEM-F(X) are not included, because they are defined as USAGE 
  10582.       IS INDEX 
  10583.  
  10584.  
  10585. ΓòÉΓòÉΓòÉ 12.8.2. GIVING Phrase ΓòÉΓòÉΓòÉ
  10586.  
  10587. The data item referenced by the identifier that follows the word GIVING is set 
  10588. to the calculated result of the arithmetic operation. Because this identifier 
  10589. is not involved in the computation, it may be a numeric edited item. 
  10590.  
  10591.  
  10592. ΓòÉΓòÉΓòÉ 12.8.3. ROUNDED Phrase ΓòÉΓòÉΓòÉ
  10593.  
  10594. After decimal point alignment, the number of places in the fraction of the 
  10595. result of an arithmetic operation is compared with the number of places 
  10596. provided for the fraction of the resultant identifier. 
  10597.  
  10598. When the size of the fractional result exceeds the number of places provided 
  10599. for its storage, truncation occurs unless ROUNDED is specified. When ROUNDED is 
  10600. specified, the least significant digit of the resultant identifier is increased 
  10601. by 1 whenever the most significant digit of the excess is greater than or equal 
  10602. to 5. 
  10603.  
  10604. When the resultant identifier is described by a PICTURE clause containing 
  10605. rightmost Ps, and when the number of places in the calculated result exceeds 
  10606. the number of integer positions specified, rounding or truncation occurs, 
  10607. relative to the rightmost integer position for which storage is allocated. 
  10608.  
  10609.  
  10610. ΓòÉΓòÉΓòÉ 12.8.4. SIZE ERROR Phrases ΓòÉΓòÉΓòÉ
  10611.  
  10612. ΓöîΓöÇΓöÇΓöÇ SIZE ERROR PHRASE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10613. Γöé                                        Γöé
  10614. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÇ><              Γöé
  10615. Γöé   ΓööΓöÇONΓöÇΓöÿ                                  Γöé
  10616. Γöé                                        Γöé
  10617. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10618.  
  10619. A size error condition can occur in three different ways: 
  10620.  
  10621.   When the absolute value of the result of an arithmetic evaluation, after 
  10622.    decimal point alignment, exceeds the largest value that can be contained in 
  10623.    the result field 
  10624.  
  10625.   When division by zero occurs 
  10626.  
  10627.   In an exponential expression, when 
  10628.  
  10629.     - Zero is raised to the exponent zero 
  10630.  
  10631.     - Zero is raised to a negative exponent 
  10632.  
  10633.     - A negative number is raised to a fractional exponent 
  10634.  
  10635.  The size error condition applies only to final results, not to any 
  10636.  intermediate results. 
  10637.  
  10638.  If the resultant identifier is defined with USAGE IS BINARY, the largest value 
  10639.  that can be contained in it is the maximum value implied by its associated 
  10640.  decimal PICTURE character-string. 
  10641.  
  10642.  If the ROUNDED phrase is specified, rounding takes place before size error 
  10643.  checking. 
  10644.  
  10645.  When a size error occurs, the subsequent action of the program depends on 
  10646.  whether or not the ON SIZE ERROR phrase is specified. 
  10647.  
  10648.  If the ON SIZE ERROR phrase is specified and a size error condition occurs, 
  10649.  the value of the resultant identifier affected by the size error is not 
  10650.  altered-that is, the error results are not placed in the receiving identifier. 
  10651.  Values of other resultant identifiers are not affected, as long as no size 
  10652.  error occurred for them. After completion of the execution of the arithmetic 
  10653.  operation, the imperative statement in the ON SIZE ERROR phrase is executed. 
  10654.  If no explicit transfer of control is executed upon completion of the 
  10655.  imperative statement specified in the ON SIZE ERROR phrase, control is 
  10656.  transferred to the end of the arithmetic statement and the NOT ON SIZE ERROR 
  10657.  phrase, if specified, is ignored. 
  10658.  
  10659.  If the ON SIZE ERROR phrase is not specified and a size error condition exists 
  10660.  after the execution of the arithmetic operations specified by an arithmetic 
  10661.  statement, the value of the affected resultant identifier is undefined. Values 
  10662.  of other resultant identifiers are not affected, as long as no size error 
  10663.  occurred for them. After completion of the arithmetic operations, control is 
  10664.  transferred to the end of the arithmetic statement and the NOT ON SIZE ERROR 
  10665.  phrase, if specified, is ignored. 
  10666.  
  10667.  For ADD CORRESPONDING and SUBTRACT CORRESPONDING statements, if an individual 
  10668.  arithmetic operation causes a size error condition, the ON SIZE ERROR 
  10669.  imperative statement is not executed until all the individual additions or 
  10670.  subtractions have been completed. 
  10671.  
  10672.  When both ON SIZE ERROR and NOT ON SIZE ERROR phrases are specified, and the 
  10673.  statement in the phrase that is executed does not contain any explicit 
  10674.  transfer of control, then, if necessary, an implicit transfer of control is 
  10675.  made after execution of the phrase to the end of the arithmetic statement. 
  10676.  
  10677.  
  10678. ΓòÉΓòÉΓòÉ 12.8.5. NOT ON SIZE ERROR ΓòÉΓòÉΓòÉ
  10679.  
  10680. If the NOT ON SIZE ERROR phrase has been specified and, after execution of an 
  10681. arithmetic operation, a size error condition does not exist, the NOT ON SIZE 
  10682. ERROR phrase is executed. 
  10683.  
  10684. When both ON SIZE ERROR and NOT ON SIZE ERROR phrases are specified, and the 
  10685. statement in the phrase that is executed does not contain any explicit transfer 
  10686. of control, then, if necessary, an implicit transfer of control is made after 
  10687. execution of the phrase to the end of the arithmetic statement. 
  10688.  
  10689.  
  10690. ΓòÉΓòÉΓòÉ 12.8.6. Overlapping Operands ΓòÉΓòÉΓòÉ
  10691.  
  10692. When a sending and a receiving item in any statement share a part or all of 
  10693. their storage areas, yet are not defined by the same data description entry, 
  10694. the result of the execution of such a statement is undefined. In addition, the 
  10695. results are undefined for some statements in which sending and receiving items 
  10696. are defined by the same data description entry. These cases are addressed in 
  10697. the general rules associated with those statements. The result of the execution 
  10698. of such a statement is unpredictable. 
  10699.  
  10700.  
  10701. ΓòÉΓòÉΓòÉ 12.8.7. Arithmetic Statements ΓòÉΓòÉΓòÉ
  10702.  
  10703. The arithmetic statements are used for computations. Individual operations are 
  10704. specified by the ADD, SUBTRACT, MULTIPLY, and DIVIDE statements. These 
  10705. operations can be combined symbolically in a formula, using the COMPUTE 
  10706. statement. 
  10707.  
  10708. The data description of operands in an arithmetic statement need not be the 
  10709. same. Throughout the calculation, the compiler performs any necessary data 
  10710. conversion and decimal point alignment. 
  10711.  
  10712. Related Information: 
  10713.  
  10714.   Size of Operands 
  10715.   Overlapping Operands 
  10716.   Multiple Results 
  10717.  
  10718.  
  10719. ΓòÉΓòÉΓòÉ 12.8.7.1. Size of Operands ΓòÉΓòÉΓòÉ
  10720.  
  10721. The maximum size of each operand is 18 decimal digits. The composite of 
  10722. operands is a hypothetical data item resulting from aligning the operands at 
  10723. the decimal point and then superimposing them on one another. 
  10724.  
  10725. -----IBM Extension----- 
  10726.  
  10727. The composite of operands must not contain more than 30 decimal digits. 
  10728.  
  10729. ---End of IBM Extension--- 
  10730.  
  10731. For example, assume that each item is defined as follows in the Data Division: 
  10732.  
  10733. A  PICTURE 9(7)V9(5).
  10734. B  PICTURE 9(11)V99.
  10735. C  PICTURE 9(12)V9(3).
  10736.  
  10737. If the following statement is executed, the composite of operands consists of 
  10738. 17 decimal digits: 
  10739.  
  10740. ADD A B TO C
  10741.  
  10742. It has the following implicit description: 
  10743.  
  10744. Composite-of-Operands PICTURE 9(12)V9(5).
  10745.  
  10746. In the ADD and SUBTRACT statements, if the composite of operands is 18 digits 
  10747. or less, the compiler ensures that enough places are carried so that no 
  10748. significant digits are lost during execution. The following list shows how the 
  10749. composite of operands is determined for arithmetic statements: 
  10750.  
  10751.  Statement   Determination of the Composite of Operands 
  10752.  ADD         Superimposing all operands in a given statement (except those 
  10753.              following the word GIVING) 
  10754.  COMPUTE     Restriction does not apply 
  10755.  DIVIDE      Superimposing all receiving data items, except the REMAINDER data 
  10756.              item 
  10757.  MULTIPLY    Superimposing all receiving data items 
  10758.  SUBTRACT    Superimposing all operands in a given statement (except those 
  10759.              following the word GIVING) 
  10760.  
  10761.  In all arithmetic statements, it is important to define data with enough 
  10762.  digits and decimal places to ensure the desired accuracy in the final result. 
  10763.  
  10764.  
  10765. ΓòÉΓòÉΓòÉ 12.8.7.2. Multiple Results ΓòÉΓòÉΓòÉ
  10766.  
  10767. When an arithmetic statement has multiple results, execution conceptually 
  10768. proceeds as follows: 
  10769.  
  10770.   The statement performs all arithmetic operations to find the result to be 
  10771.    placed in the receiving items, and stores that result in a temporary 
  10772.    location. 
  10773.  
  10774.   A sequence of statements transfers or combines the value of this temporary 
  10775.    result with each single receiving field. The statements are considered to be 
  10776.    written in the same left-to-right order as the multiple results are listed. 
  10777.  
  10778.  For example, executing the following statement: 
  10779.  
  10780.   ADD A, B, C, TO C, D(C), E.
  10781.  
  10782.  is equivalent to executing the following series of statements: 
  10783.  
  10784.   ADD A, B, C GIVING TEMP.
  10785.   ADD TEMP TO C.
  10786.   ADD TEMP TO D(C).
  10787.   ADD TEMP TO E.
  10788.  
  10789.  In the above example, TEMP is a compiler-supplied temporary result field. When 
  10790.  the addition operation for D(C) is performed, the subscript C contains the new 
  10791.  value of C. 
  10792.  
  10793.  Note:   Intermediate results generated during the execution of arithmetic 
  10794.          statements are system-specific and can affect program portability. Use 
  10795.          of the individual arithmetic statements ADD, SUBTRACT, MULTIPLY, and 
  10796.          DIVIDE, rather than COMPUTE, reduces the risk of getting inconsistent 
  10797.          results. 
  10798.  
  10799.  
  10800. ΓòÉΓòÉΓòÉ 12.8.8. Data Manipulation Statements ΓòÉΓòÉΓòÉ
  10801.  
  10802. The following COBOL statements move and inspect data: ACCEPT, INITIALIZE, 
  10803. INSPECT, MOVE, READ, RELEASE, RETURN, REWRITE, SET, STRING, UNSTRING, and 
  10804. WRITE. 
  10805.  
  10806. Overlapping Operands 
  10807.  
  10808. When the sending and receiving fields of a data manipulation statement share a 
  10809. part of their storage (that is, when the operands overlap), the result of the 
  10810. execution of such a statement is unpredictable. 
  10811.  
  10812.  
  10813. ΓòÉΓòÉΓòÉ 12.8.9. Input-Output Statements ΓòÉΓòÉΓòÉ
  10814.  
  10815. COBOL input-output statements transfer data to and from files stored on 
  10816. external media, and also control low-volume data that is obtained from or sent 
  10817. to an input/output device. 
  10818.  
  10819. In COBOL, the unit of file data made available to the program is a record, and 
  10820. you need only be concerned with such records. Provision is automatically made 
  10821. for such operations as the movement of data into buffers and/or internal 
  10822. storage, validity checking, error correction (where feasible), blocking and 
  10823. deblocking, and volume switching procedures. 
  10824.  
  10825. The description of the file in the Environment Division and Data Division 
  10826. governs which input-output statements are allowed in the Procedure Division. 
  10827.  
  10828. Related Information 
  10829.  
  10830.   Common Processing Facilities 
  10831.  
  10832.  
  10833. ΓòÉΓòÉΓòÉ 12.8.9.1. Common Processing Facilities ΓòÉΓòÉΓòÉ
  10834.  
  10835. There are several common processing facilities that apply to more than one 
  10836. input-output statement. The common processing facilities provided are: 
  10837.  
  10838.   Status key 
  10839.   INVALID KEY condition 
  10840.   INTO/FROM identifier phrase 
  10841.   File position indicator. 
  10842.  
  10843.  
  10844. ΓòÉΓòÉΓòÉ 12.8.9.1.1. Status Key ΓòÉΓòÉΓòÉ
  10845.  
  10846. If the FILE STATUS clause is specified in the FILE-CONTROL entry, a value is 
  10847. placed in the specified status key (the 2-character data item named in the FILE 
  10848. STATUS clause) during execution of any request on that file; the value 
  10849. indicates the status of that request. The value is placed in the status key 
  10850. before execution of any EXCEPTION/ERROR declarative or INVALID KEY/AT END 
  10851. phrase associated with the request. 
  10852.  
  10853. The first character of the status key is known as status key 1 (high order 
  10854. digit); the second character is known as status key 2 (low order digit). 
  10855.  
  10856.  
  10857. ΓòÉΓòÉΓòÉ 12.8.9.1.2. INVALID KEY Condition ΓòÉΓòÉΓòÉ
  10858.  
  10859. The invalid key condition can occur during execution of a START, READ, WRITE, 
  10860. REWRITE, or DELETE statement. When an invalid key condition occurs, the 
  10861. input-output statement that caused the condition is unsuccessful. 
  10862.  
  10863. When the invalid key condition exists after an input-output operation, the 
  10864. following actions are taken: 
  10865.  
  10866.   1. If there is an applicable file status clause (but not an applicable USE 
  10867.      procedure), the file status is updated, and control returns to the 
  10868.      program. 
  10869.  
  10870.   2. Control will be transferred to the imperative statement of an INVALID KEY 
  10871.      phrase, if specified. 
  10872.  
  10873.   3. If an explicit or implicit EXCEPTION/ERROR procedure is specified for the 
  10874.      file, the procedure runs; if no such procedure is specified, the results 
  10875.      are unpredictable. 
  10876.  
  10877.   4. In the absence of a file status clause, USE procedure, or INVALID KEY 
  10878.      phrase to handle the error, a run-time message is issued, giving you the 
  10879.      option to end or return to the program. 
  10880.  
  10881.  When the invalid key condition does not exist after an input-output operation, 
  10882.  the INVALID KEY phrase is ignored, if specified, and the following actions are 
  10883.  taken: 
  10884.  
  10885.   1. If an exception condition that is not an invalid key condition exists, 
  10886.      control is transferred according to the rules of the USE statement 
  10887.      following the running of any USE AFTER EXCEPTION procedure. 
  10888.  
  10889.   2. If no exception condition exists, control is transferred to the end of the 
  10890.      input-output statement or the imperative statement specified in the NOT 
  10891.      INVALID KEY phrase, if it is specified. 
  10892.  
  10893.  
  10894. ΓòÉΓòÉΓòÉ 12.8.9.1.3. INTO/FROM Identifier Phrase ΓòÉΓòÉΓòÉ
  10895.  
  10896. This phrase is valid for READ, RETURN, RELEASE, REWRITE, and WRITE statements. 
  10897. The identifier specified must be the name of an entry in the Working-Storage 
  10898. Section or the Linkage Section, or of a record description for another 
  10899. previously opened file. Record-name, identifier must not refer to the same 
  10900. storage area. 
  10901.  
  10902. ΓöîΓöÇΓöÇΓöÇ INTO/FROM IDENTIFIER PHRASE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10903. Γöé                                        Γöé
  10904. Γöé >>ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇREADΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇ><    Γöé
  10905. Γöé   Γöé ΓööΓöÇRETURNΓöÇΓöÿ        ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ Γöé      Γöé
  10906. Γöé   ΓööΓöÇΓö¼ΓöÇRELEASEΓöÇΓö¼ΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  10907. Γöé    Γö£ΓöÇREWRITEΓöÇΓöñ         ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ           Γöé
  10908. Γöé    ΓööΓöÇWRITEΓöÇΓöÇΓöÇΓöÿ                               Γöé
  10909. Γöé                                        Γöé
  10910. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10911.  
  10912. The result of the execution of a READ or RETURN statement with the INTO phrase 
  10913. is equivalent to the application of the following rules in the order specified: 
  10914.  
  10915.   1. The execution of the same READ or RETURN statement without the INTO 
  10916.      phrase. 
  10917.  
  10918.   2. The current record is moved from the record area to identifier-1 according 
  10919.      to the rules for the MOVE statement without the CORRESPONDING phrase. The 
  10920.      size of the current record is determined by rules specified in the RECORD 
  10921.      clause. If the file description entry contains a RECORD IS VARYING clause, 
  10922.      the implied move is a group move. The implied MOVE statement does not 
  10923.      occur if the execution of the READ or RETURN statement was unsuccessful. 
  10924.      Any subscripting or reference modification associated with identifier-1 is 
  10925.      evaluated after the record has been read or returned and immediately 
  10926.      before it is moved to the data item. The record is available both in the 
  10927.      record area and in identifier-1. 
  10928.  
  10929.  The result of the execution of a RELEASE, REWRITE, or WRITE statement with the 
  10930.  FROM phrase is equivalent to the execution of the following statements in the 
  10931.  order specified: 
  10932.  
  10933.   1. The statement 
  10934.  
  10935.           MOVE identifier-1 TO record-name-1
  10936.  
  10937.      according to the rules specified for the MOVE statement. 
  10938.  
  10939.   2. The same RELEASE, REWRITE, or WRITE statement without the FROM phrase. 
  10940.  
  10941.  After the execution of the RELEASE, REWRITE or WRITE statement is complete, 
  10942.  the information in identifier-1 is available, but the information in 
  10943.  record-name-1 is not available, except as specified by the SAME RECORD AREA 
  10944.  clause. 
  10945.  
  10946.  
  10947. ΓòÉΓòÉΓòÉ 12.8.9.1.4. File Position Indicator ΓòÉΓòÉΓòÉ
  10948.  
  10949. The file position indicator is a conceptual entity used in this document to 
  10950. facilitate exact specification of the next record to be accessed within a given 
  10951. file during certain sequences of input-output operations. The concept of a file 
  10952. position indicator has no meaning for a file opened in the output or extend 
  10953. mode. The setting of the file position indicator is affected only by the OPEN, 
  10954. READ, RETURN, ROLLBACK and START statements as follows: 
  10955.  
  10956.   The OPEN statement positions the file position indicator to the first record 
  10957.    in the file. 
  10958.  
  10959.    -----IBM Extension----- 
  10960.  
  10961.    The file position indicator can be positioned to any record in the file by 
  10962.    using the POSITION parameter of the Override with database file (OVRDBF) 
  10963.    command. 
  10964.  
  10965.    ---End of IBM Extension--- 
  10966.  
  10967.   For a sequential access READ statement, or a dynamic access READ NEXT 
  10968.    statement, the following considerations apply: 
  10969.  
  10970.     - If an OPEN or START statement positioned the file position indicator, the 
  10971.       record identified by the file position indicator is made available.  If 
  10972.       this record no longer exists, the next existing record is made available. 
  10973.     - If a previous READ statement positioned the file position indicator, the 
  10974.       file position indicator is updated to point to the next existing record 
  10975.       in the file; that record is then made available. 
  10976.  
  10977.    -----IBM Extension----- 
  10978.  
  10979.   For a dynamic access READ FIRST statement, the file position indicator is 
  10980.    positioned to point to the first record in the file; that record is then 
  10981.    made available. 
  10982.  
  10983.   For a dynamic access READ LAST statement, the file position indicator is 
  10984.    positioned to point to the last record in the file; that record is then made 
  10985.    available. 
  10986.  
  10987.   For a dynamic access READ PRIOR statement, the file position indicator is 
  10988.    positioned to point to the previous existing record in the file; that record 
  10989.    is then made available. 
  10990.  
  10991.    ---End of IBM Extension--- 
  10992.  
  10993.   For the RETURN statement, the following considerations apply: 
  10994.  
  10995.     - The first RETURN statement positions the file position indicator to the 
  10996.       first record in the file, and that record is then made available. 
  10997.     - If a previous RETURN statement positioned the file position indicator, 
  10998.       the file position indicator is updated to point to the next existing 
  10999.       record in the file, and the record is then made available. 
  11000.  
  11001.    -----IBM Extension----- 
  11002.  
  11003.   For the ROLLBACK statement, the following considerations apply to any file 
  11004.    under commitment control: 
  11005.  
  11006.     - The ROLLBACK statement sets the file position indicator to the pointer's 
  11007.       position at the previous commitment boundary.  This is important to 
  11008.       remember if you are doing sequential processing. 
  11009.     - The file position indicator is set to the pointer's position at the OPEN 
  11010.       if no COMMIT statement has been issued since the file was opened. 
  11011.     - The file position indicator is undefined for any file under commitment 
  11012.       control that is not open. 
  11013.  
  11014.    ---End of IBM Extension--- 
  11015.  
  11016.   The START statement positions the file position indicator to the first 
  11017.    record in the file that satisfies the implicit or explicit comparison 
  11018.    specified in the START statement. 
  11019.  
  11020.  The concept of the file position indicator has no meaning for files with an 
  11021.  access mode of random or for TRANSACTION files. 
  11022.  
  11023.  
  11024. ΓòÉΓòÉΓòÉ 12.8.9.2. DB-FORMAT-NAME Special Register ΓòÉΓòÉΓòÉ
  11025.  
  11026. -----IBM Extension----- 
  11027.  
  11028. After the execution of an input/output statement, for a FORMATFILE or DATABASE 
  11029. file, the DB-FORMAT-NAME special register is modified according to the 
  11030. following rules: 
  11031.  
  11032.   After completion of a successful READ, WRITE, REWRITE, START, or DELETE 
  11033.    operation, the record format name used in the I-O operation is implicitly 
  11034.    moved to the special register. 
  11035.  
  11036.   After an unsuccessful input/output operation, DB-FORMAT-NAME contains the 
  11037.    record format name used in the last successful input/output operation. 
  11038.  
  11039.   DB-FORMAT-NAME is implicitly defined as PICTURE X(10) and GLOBAL in the 
  11040.    outermost program. 
  11041.  
  11042.  ---End of IBM Extension--- 
  11043.  
  11044.  
  11045. ΓòÉΓòÉΓòÉ 12.8.10. Procedure Branching Statements ΓòÉΓòÉΓòÉ
  11046.  
  11047. Statements, sentences, and paragraphs in the Procedure Division are executed 
  11048. sequentially, except when a procedure-branching statement (listed below) is 
  11049. used. 
  11050.  
  11051.   ALTER 
  11052.   EXIT 
  11053.   GO TO 
  11054.   PERFORM 
  11055.  
  11056.  
  11057. ΓòÉΓòÉΓòÉ 12.9. ACCEPT Statement ΓòÉΓòÉΓòÉ
  11058.  
  11059. The ACCEPT statement transfers data into the specified identifier. There is no 
  11060. editing or error checking of the incoming data. 
  11061.  
  11062. The ACCEPT statement has seven formats: 
  11063.  
  11064.   Format 1 - Data Transfer 
  11065.   Format 2 - System Information Transfer 
  11066.    -----IBM Extension----- 
  11067.   Format 3 - Feedback 
  11068.   Format 4 - Local Data Area 
  11069.   Format 5 - PIP Data Area 
  11070.   Format 6 - Attribute Data Area 
  11071.   Format 7 - Workstation I/O 
  11072.   Format 8 - Session I/O 
  11073.    ---End of IBM Extension--- 
  11074.  
  11075.  
  11076. ΓòÉΓòÉΓòÉ 12.9.1. Data Transfer ΓòÉΓòÉΓòÉ
  11077.  
  11078. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 1 - DATA TRANSFER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11079. Γöé                                        Γöé
  11080. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><        Γöé
  11081. Γöé              ΓööΓöÇFROMΓöÇΓöÇΓö¼ΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ          Γöé
  11082. Γöé                  Γöé          (1)Γöé           Γöé
  11083. Γöé                  ΓööΓöÇenvironment-nameΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  11084. Γöé                                        Γöé
  11085. Γöé NOTE:                                     Γöé
  11086. Γöé (1)  IBM Extension                              Γöé
  11087. Γöé                                        Γöé
  11088. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11089.  
  11090. Format 1 transfers data from an input/output device into identifier-1. No 
  11091. conversion is made to this data. The incoming data is received in USAGE IS 
  11092. DISPLAY format. 
  11093.  
  11094. Format 1 is useful for exception situations in a program when operator 
  11095. intervention (to supply a given message, code, or exception indicator) is 
  11096. required. The operator must, of course, be supplied with the appropriate 
  11097. messages with which to reply. 
  11098.  
  11099. When the FROM phrase is omitted, the ACCEPT statement obtains input from the 
  11100. job input stream for batch jobs, and from the workstation for interactive jobs. 
  11101.  
  11102. The job input stream consists of data that accompanies a CL command. If there 
  11103. is no data in the input stream, an exception occurs. 
  11104.  
  11105. Related Information: 
  11106.  
  11107.   Coding Example 
  11108.  
  11109.  
  11110. ΓòÉΓòÉΓòÉ 12.9.2. Coding Example ΓòÉΓòÉΓòÉ
  11111.  
  11112. The following is an example of a batch job file member that contains a job 
  11113. input stream: 
  11114.  
  11115.            //BCHJOB   JOB(ADD021) JOBD(QUSER/ACCTEST)
  11116.            CALL       PGM(QSYS/ACCPT1X)
  11117.            123456789012345
  11118.            //ENDBCHJOB
  11119.  
  11120. The following is an example of a COBOL program that uses a Format 1 ACCEPT 
  11121. statement to read the job input stream: 
  11122.  
  11123.                   IDENTIFICATION DIVISION.
  11124.                   PROGRAM-ID. ACCPT1X.
  11125.                   ENVIRONMENT DIVISION.
  11126.                   CONFIGURATION SECTION.
  11127.                   SOURCE-COMPUTER. IBM-AS400.
  11128.                   OBJECT-COMPUTER. IBM-AS400.
  11129.                   DATA DIVISION.
  11130.                   WORKING-STORAGE SECTION.
  11131.                   77  TRANS-DATA   PIC X(15).
  11132.                   PROCEDURE DIVISION.
  11133.                   BEGIN.
  11134.                       ACCEPT TRANS-DATA.
  11135.                       DISPLAY TRANS-DATA.
  11136.                       STOP RUN.
  11137.  
  11138. When the batch job file member is used to call ACCPT1X, the ACCEPT statement 
  11139. reads the batch job file member from the line that immediately follows the CALL 
  11140. command. This causes "123456789012345" to be accepted into TRANS-DATA. 
  11141.  
  11142.  
  11143. ΓòÉΓòÉΓòÉ 12.9.3. mnemonic-name ΓòÉΓòÉΓòÉ
  11144.  
  11145. Must be associated with an input/output device that is specified in the 
  11146. SPECIAL-NAMES paragraph.  The input/output device can be the workstation 
  11147. (REQUESTOR) or the system operator's message queue (CONSOLE or SYSTEM-CONSOLE). 
  11148. If mnemonic-name is associated with REQUESTOR and the job is a batch job, the 
  11149. job input stream is used. 
  11150.  
  11151.  
  11152. ΓòÉΓòÉΓòÉ 12.9.4. Job Input Stream ΓòÉΓòÉΓòÉ
  11153.  
  11154. When the input is from the job input stream, the following rules apply: 
  11155.  
  11156.   An input record size of 80 characters is assumed. 
  11157.  
  11158.   If identifier-1 is up to 80 characters in length, the input data must appear 
  11159.    as the first character within the input record.  Any characters beyond the 
  11160.    length of identifier-1 are truncated. 
  11161.  
  11162.   If identifier-1 is longer than 80 characters, succeeding input records are 
  11163.    read until the storage area of identifier-1 is filled.  If the length of 
  11164.    identifier-1 is not an exact multiple of 80 characters, the last input 
  11165.    record is truncated. 
  11166.  
  11167.  
  11168. ΓòÉΓòÉΓòÉ 12.9.5. Work Station or System Operator's Message Queue ΓòÉΓòÉΓòÉ
  11169.  
  11170. When the device is the workstation, the input record size is 62.  When the 
  11171. device is the system operator's message queue, the input record size is 58. The 
  11172. following steps occur: 
  11173.  
  11174.   1. A system-generated inquiry message containing the program-name, the text 
  11175.      "AWAITING REPLY FOR POSITION(S)", and the beginning and ending positions 
  11176.      is automatically sent to the system operator's message queue or 
  11177.      workstation operator. Previous DISPLAYs can also appear on the ACCEPT 
  11178.      screen. 
  11179.  
  11180.   2. Processing is suspended. 
  11181.  
  11182.   3. The reply is moved into identifier-1, and processing is resumed after a 
  11183.      reply is made by the operator to the inquiry in step 1.  The reply value 
  11184.      is made available to the program as it was typed, in uppercase or 
  11185.      lowercase. 
  11186.  
  11187.   4. If identifier-1 is longer than the input record size, succeeding input 
  11188.      records are read (steps 1-3) until identifier-1 is filled. 
  11189.  
  11190.  
  11191. ΓòÉΓòÉΓòÉ 12.9.6. System Information Transfer ΓòÉΓòÉΓòÉ
  11192.  
  11193. System information contained in the specified conceptual data items DATE, DAY, 
  11194. DAY-OF-WEEK, or TIME can be transferred into the identifier. DATE, DAY, 
  11195. DAY-OF-WEEK, and TIME are conceptual data items and, therefore, are not 
  11196. described in the COBOL program. The transfer must follow the rules for the MOVE 
  11197. statement without the CORRESPONDING phrase. See MOVE Statement. 
  11198.  
  11199. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 2 - SYSTEM INFO TRANSFER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11200. Γöé                                        Γöé
  11201. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇΓö¼ΓöÇDATEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><              Γöé
  11202. Γöé                 Γö£ΓöÇDAYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  11203. Γöé                 Γö£ΓöÇDAY-OF-WEEKΓöÇΓöñ                Γöé
  11204. Γöé                 ΓööΓöÇTIMEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                Γöé
  11205. Γöé                                        Γöé
  11206. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11207.  
  11208. Format 2 accesses the current date and time of day, as carried by the system. 
  11209. This can be useful in identifying when a particular run of an object program 
  11210. was executed. It can also be used to supply the date in headings and footings. 
  11211.  
  11212.  
  11213. ΓòÉΓòÉΓòÉ 12.9.7. Feedback ΓòÉΓòÉΓòÉ
  11214.  
  11215. -----IBM Extension----- 
  11216.  
  11217. This format is used to transfer feedback information from an active file to the 
  11218. identifier. 
  11219.  
  11220. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 3 - FEEDBACK ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11221. Γöé                                        Γöé
  11222. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇmnemonic-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  11223. Γöé                         ΓööΓöÇFORΓöÇΓöÇΓöÇfile-name-1ΓöÇΓöÿ     Γöé
  11224. Γöé                                        Γöé
  11225. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11226.  
  11227. ---End of IBM Extension--- 
  11228.  
  11229.  
  11230. ΓòÉΓòÉΓòÉ 12.9.8. Local Data Area ΓòÉΓòÉΓòÉ
  11231.  
  11232. -----IBM Extension----- 
  11233.  
  11234. This format is used to transfer data to identifier-1 from the system-defined 
  11235. local data area created for a job. 
  11236.  
  11237. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 4 - LOCAL DATA AREA ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11238. Γöé                                        Γöé
  11239. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11240. Γöé                                        Γöé
  11241. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                     Γöé
  11242. Γöé   Γöé    (1)          Γöé                       Γöé
  11243. Γöé   ΓööΓöÇFORΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÿ                       Γöé
  11244. Γöé        ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  11245. Γöé                                        Γöé
  11246. Γöé NOTE:                                     Γöé
  11247. Γöé (1)  Syntax checked only                           Γöé
  11248. Γöé                                        Γöé
  11249. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11250.  
  11251. The move into identifier-1 takes place according to the rules for the MOVE 
  11252. statement for a group move without the CORRESPONDING phrase. 
  11253.  
  11254. ---End of IBM Extension--- 
  11255.  
  11256.  
  11257. ΓòÉΓòÉΓòÉ 12.9.9. Program Initialization Parameters ΓòÉΓòÉΓòÉ
  11258.  
  11259. -----IBM Extension----- 
  11260.  
  11261. You use this format to transfer data from the PIP (Program Initialization 
  11262. Parameters) data area into the identifier. 
  11263.  
  11264. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 5 - PIP DATA AREA ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11265. Γöé                                        Γöé
  11266. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11267. Γöé                                        Γöé
  11268. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11269. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11270. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11271. Γöé                                        Γöé
  11272. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11273. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  11274. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11275. Γöé                                        Γöé
  11276. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  11277. Γöé   ΓööΓöÇEND-ACCEPTΓöÇΓöÿ                               Γöé
  11278. Γöé                                        Γöé
  11279. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11280.  
  11281. Note that you cannot update the PIP data area using COBOL. 
  11282.  
  11283. ---End of IBM Extension--- 
  11284.  
  11285.  
  11286. ΓòÉΓòÉΓòÉ 12.9.10. Attribute Data ΓòÉΓòÉΓòÉ
  11287.  
  11288. -----IBM Extension----- 
  11289.  
  11290. The ACCEPT statement retrieves information (attribute data) about a particular 
  11291. program device associated with a TRANSACTION file. 
  11292.  
  11293. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 6 - ATTRIBUTE DATA ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11294. Γöé                                        Γöé
  11295. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11296. Γöé                                        Γöé
  11297. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  11298. Γöé   ΓööΓöÇFORΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ              Γöé
  11299. Γöé      ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇFORΓöÇΓöÇfile-name-1ΓöÇΓöÿ               Γöé
  11300. Γöé                                        Γöé
  11301. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11302.  
  11303. This format of the ACCEPT statement may only be used for files with an 
  11304. organization of TRANSACTION.  If file-name-1 is not open at the time the ACCEPT 
  11305. is executed, message LNR7205 is issued. 
  11306.  
  11307. Program device attributes are moved into identifier-1 from the appropriate 
  11308. attribute data format, according to the rules for a group MOVE without the 
  11309. CORRESPONDING phrase. 
  11310.  
  11311. ---End of IBM Extension--- 
  11312.  
  11313.  
  11314. ΓòÉΓòÉΓòÉ 12.9.11. Workstation I/O ΓòÉΓòÉΓòÉ
  11315.  
  11316. -----IBM Extension----- 
  11317.  
  11318. An ACCEPT statement is considered an extended ACCEPT statement if it: 
  11319.  
  11320.   has an AT phrase, or 
  11321.   has a FROM phrase with the CRT option, or 
  11322.   has a MODE IS BLOCK phrase, or 
  11323.   has a WITH phrase, or 
  11324.   has an ON EXCEPTION phrase or a NOT ON EXCEPTION phrase, (and PIP-DATA is 
  11325.    not specified for mnemonic-name), or 
  11326.   does not have a FROM phrase, but CONSOLE IS CRT is specified in the 
  11327.    SPECIAL-NAMES paragraph. 
  11328.  
  11329.  An ACCEPT statement is considered a standard ACCEPT statement if it: 
  11330.  
  11331.   has a FROM phrase (other than FROM CRT) and CONSOLE IS CRT is specified in 
  11332.    the SPECIAL-NAMES paragraph, or 
  11333.  
  11334.   does not have a FROM phrase and CONSOLE IS CRT is not specified. 
  11335.  
  11336.   ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 7 - WORKSTATION I/O ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11337.   Γöé                                        Γöé
  11338.   Γöé              ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ            Γöé
  11339.   Γöé                            Γöé            Γöé
  11340.   Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifier-1ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11341.   Γöé               Γö£ΓöÇΓöñ line-column-phrase Γö£ΓöÇΓöñ             Γöé
  11342.   Γöé               Γö£ΓöÇFROM CRTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöñ             Γöé
  11343.   Γöé               Γö£ΓöÇMODEΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇBLOCKΓöÇΓöÇΓöÇΓöÇΓöñ             Γöé
  11344.   Γöé               Γöé    ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ      Γöé             Γöé
  11345.   Γöé               ΓööΓöÇΓöñ with-phrase Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  11346.   Γöé                                        Γöé
  11347.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11348.   Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11349.   Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11350.   Γöé                                        Γöé
  11351.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11352.   Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  11353.   Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11354.   Γöé                                        Γöé
  11355.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  11356.   Γöé   ΓööΓöÇEND-ACCEPTΓöÇΓöÿ                               Γöé
  11357.   Γöé                                        Γöé
  11358.   Γöé LINE-COLUMN-PHRASE:                              Γöé
  11359.   Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  11360.   Γöé                               Γöé         Γöé
  11361.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇLINEΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ      Γöé
  11362.   Γöé   Γöé  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ   Γö£ΓöÇCOLUMNΓöÇΓöñ  ΓööΓöÇNUMBERΓöÇΓöÿ  ΓööΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé        Γöé
  11363.   Γöé   Γöé        ΓööΓöÇCOLΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé        Γöé
  11364.   Γöé   ΓööΓöÇATΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  11365.   Γöé      ΓööΓöÇinteger-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  11366.   Γöé                                        Γöé
  11367.   Γöé WITH-PHRASE:                                 Γöé
  11368.   Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ        Γöé
  11369.   Γöé                                Γöé        Γöé
  11370.   Γöé Γö£ΓöÇΓöÇWITHΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇAUTOΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöñ       Γöé
  11371.   Γöé      Γöé ΓööΓöÇAUTO-SKIPΓöÇΓöÿ                  Γöé         Γöé
  11372.   Γöé      Γö£ΓöÇΓö¼ΓöÇBELLΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11373.   Γöé      Γöé ΓööΓöÇBEEPΓöÇΓöÿ                     Γöé         Γöé
  11374.   Γöé      Γö£ΓöÇBLINKΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11375.   Γöé      Γö£ΓöÇΓö¼ΓöÇFULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11376.   Γöé      Γöé ΓööΓöÇLENGTH-CHECKΓöÇΓöÿ                 Γöé         Γöé
  11377.   Γöé      Γö£ΓöÇHIGHLIGHTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11378.   Γöé      Γö£ΓöÇΓö¼ΓöÇREQUIREDΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11379.   Γöé      Γöé ΓööΓöÇEMPTY-CHECKΓöÇΓöÿ                 Γöé         Γöé
  11380.   Γöé      Γö£ΓöÇREVERSE-VIDEOΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11381.   Γöé      Γö£ΓöÇΓö¼ΓöÇSECUREΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11382.   Γöé      Γöé ΓööΓöÇNO-ECHOΓöÇΓöÿ                   Γöé         Γöé
  11383.   Γöé      Γö£ΓöÇUNDERLINEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11384.   Γöé      Γö£ΓöÇRIGHT-JUSTIFYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11385.   Γöé      Γö£ΓöÇSPACE-FILLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11386.   Γöé      Γö£ΓöÇTRAILING-SIGNΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11387.   Γöé      Γö£ΓöÇUPDATEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11388.   Γöé      Γö£ΓöÇZERO-FILLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11389.   Γöé      Γö£ΓöÇSIZEΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11390.   Γöé      Γöé    ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇinteger-3ΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé         Γöé
  11391.   Γöé      Γöé    (1)                    Γöé         Γöé
  11392.   Γöé      Γö£ΓöÇPROMPTΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓöñ         Γöé
  11393.   Γöé      Γöé      ΓööΓöÇCHARACTER ISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé         Γöé
  11394.   Γöé      Γöé             (1)            Γöé         Γöé
  11395.   Γöé      Γö£ΓöÇΓöÇΓö¼ΓöÇFOREGROUND-COLORΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇinteger-4ΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11396.   Γöé      Γöé  ΓööΓöÇFOREGROUND-COLOURΓöÇΓöÿ    ΓööΓöÇISΓöÇΓöÿ        Γöé         Γöé
  11397.   Γöé      Γöé             (1)            Γöé         Γöé
  11398.   Γöé      Γö£ΓöÇΓöÇΓö¼ΓöÇBACKGROUND-COLORΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇinteger-5ΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  11399.   Γöé      Γöé  ΓööΓöÇBACKGROUND-COLOURΓöÇΓöÿ    ΓööΓöÇISΓöÇΓöÿ        Γöé         Γöé
  11400.   Γöé      Γöé        (1)                 Γöé         Γöé
  11401.   Γöé      ΓööΓöÇLEFT-JUSTIFYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  11402.   Γöé                                        Γöé
  11403.   Γöé NOTE:                                     Γöé
  11404.   Γöé (1)  Syntax checked only                           Γöé
  11405.   Γöé                                        Γöé
  11406.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11407.  
  11408.  ---End of IBM Extension--- 
  11409.  
  11410.  
  11411. ΓòÉΓòÉΓòÉ 12.9.12. AT Phrase ΓòÉΓòÉΓòÉ
  11412.  
  11413. -----IBM Extension----- 
  11414.  
  11415. The AT phrase indicates the absolute address on the screen at which the ACCEPT 
  11416. operation is to start. If the AT phrase is not specified, the ACCEPT operation 
  11417. starts at line 1, column 2. It does not indicate the starting position of the 
  11418. leading attribute. 
  11419.  
  11420. Related Information: 
  11421.  
  11422.   Line and Column Combinations 
  11423.  
  11424.  ---End of IBM Extension--- 
  11425.  
  11426.  
  11427. ΓòÉΓòÉΓòÉ 12.9.13. Line and Column Combinations ΓòÉΓòÉΓòÉ
  11428.  
  11429. -----IBM Extension----- 
  11430.  
  11431. Certain combinations of line and column numbers have special meaning: 
  11432.  
  11433.   Until the column comes within range, out of range column values are reduced 
  11434.    by the line length and the line value is incremented. A column number may 
  11435.    cause the line number to be incremented several times. 
  11436.  
  11437.   Out of range line values cause the screen to scroll up one line.  The effect 
  11438.    is the same as if the line number of the bottom line had been specified. 
  11439.    The screen is never scrolled more than one line up regardless of the line 
  11440.    specified. 
  11441.  
  11442.   If column and line numbers are both out of range, out of range columns are 
  11443.    handled first followed by out of range lines (according to rules above). 
  11444.  
  11445.   If the line and column numbers given are both zero, the ACCEPT starts at the 
  11446.    position following that where the preceding ACCEPT operation finished. 
  11447.    Column 1 of each line is considered to follow the last column of the 
  11448.    previous line. 
  11449.  
  11450.   If the line number is zero, but a non-zero column number is specified, the 
  11451.    ACCEPT starts at the specified column, on the line following that where the 
  11452.    preceding display operation finished. 
  11453.  
  11454.   If the column number is zero, but a non-zero line number is specified, the 
  11455.    ACCEPT starts on the specified line, at the column following that where the 
  11456.    preceding display operation finished. 
  11457.  
  11458.  ---End of IBM Extension--- 
  11459.  
  11460.  
  11461. ΓòÉΓòÉΓòÉ 12.9.14. Session I/O ΓòÉΓòÉΓòÉ
  11462.  
  11463. -----IBM Extension----- 
  11464.  
  11465. The ACCEPT statement retrieves information from the ILE common session manager. 
  11466.  
  11467. ΓöîΓöÇΓöÇΓöÇ ACCEPT STATEMENT - FORMAT 8 - SESSION I/O ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11468. Γöé                                        Γöé
  11469. Γöé >>ΓöÇΓöÇACCEPTΓöÇΓöÇidentifierΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><               Γöé
  11470. Γöé             ΓööΓöÇFROMΓöÇΓöÇΓöÇΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÿ                 Γöé
  11471. Γöé                                        Γöé
  11472. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11473.  
  11474. For this format of the ACCEPT statement the FROM phrase is optional if the 
  11475. CONSOLE IS DISPLAY clause is specified in the SPECIAL-NAMES paragraph. 
  11476.  
  11477. Format 8 transfers data from the ILE common session manager into identifier-1. 
  11478. No conversion is made to this data. The incoming data is received in USAGE IS 
  11479. DISPLAY format. 
  11480.  
  11481. The ILE common session manager is used to manage the ACCEPT statement. For 
  11482. further information on the screen I/O session services, refer to the "Dynamic 
  11483. Screen Manager" section in the System API Reference. 
  11484.  
  11485. ---End of IBM Extension--- 
  11486.  
  11487.  
  11488. ΓòÉΓòÉΓòÉ 12.10. ACQUIRE Statement ΓòÉΓòÉΓòÉ
  11489.  
  11490. -----IBM Extension----- 
  11491.  
  11492. The ACQUIRE statement acquires a program device for a TRANSACTION file. 
  11493.  
  11494. ΓöîΓöÇΓöÇΓöÇ ACQUIRE STATEMENT - FORMAT - TRANSACTION ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11495. Γöé                                        Γöé
  11496. Γöé >>ΓöÇΓöÇACQUIREΓöÇΓöÇΓö¼ΓöÇidentifierΓöÇΓö¼ΓöÇΓöÇFORΓöÇΓöÇfile-nameΓöÇΓöÇ><                Γöé
  11497. Γöé        ΓööΓöÇliteralΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  11498. Γöé                                        Γöé
  11499. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11500.  
  11501. Successful completion of the ACQUIRE operation makes the program device 
  11502. available for input and output operations. If the ACQUIRE is unsuccessful, the 
  11503. file status value is set to 9H and any applicable USE AFTER EXCEPTION/ERROR 
  11504. procedure is invoked. 
  11505.  
  11506. Only one program device may be implicitly acquired when a file is opened. If a 
  11507. file is an ICF file, the single implicitly acquired program device is 
  11508. determined by the ACQPGMDEV parameter of the CRTICFF CL command. If the file is 
  11509. a display file, the single implicitly acquired program device is determined by 
  11510. the first entry in the DEV parameter of the CRTDSPF CL command. Additional 
  11511. program devices must be explicitly acquired. 
  11512.  
  11513. A program device is explicitly acquired by using the ACQUIRE statement. For an 
  11514. ICF file, the program device must have been defined to the file with the 
  11515. ADDICFDEVE or OVRICFDEVE command before the file is opened. For a display file, 
  11516. if the program device name is not the name of the display device, then the 
  11517. device must have been specified in the DEV parameter when the file was created, 
  11518. changed, or overridden, and before the OPEN is issued for the file. 
  11519.  
  11520. ---End of IBM Extension--- 
  11521.  
  11522.  
  11523. ΓòÉΓòÉΓòÉ 12.11. ADD Statement ΓòÉΓòÉΓòÉ
  11524.  
  11525. The ADD statement adds two or more numeric operands and stores the result. 
  11526.  
  11527. The ADD statement has three formats: 
  11528.  
  11529.   Format 1 - ADD 
  11530.   Format 2 - ADD GIVING 
  11531.   Format 3 - ADD CORRESPONDING 
  11532.  
  11533.  
  11534. ΓòÉΓòÉΓòÉ 12.11.1. ADD Statement - Format 1 ΓòÉΓòÉΓòÉ
  11535.  
  11536. ΓöîΓöÇΓöÇΓöÇ ADD STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11537. Γöé                                        Γöé
  11538. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  11539. Γöé                Γöé                  Γöé       Γöé
  11540. Γöé >>ΓöÇΓöÇADDΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇTOΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11541. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ             ΓööΓöÇROUNDEDΓöÇΓöÿ        Γöé
  11542. Γöé                                        Γöé
  11543. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11544. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11545. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11546. Γöé                                        Γöé
  11547. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  11548. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-ADDΓöÇΓöÿ    Γöé
  11549. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11550. Γöé                                        Γöé
  11551. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11552.  
  11553. In Format 1, identifiers and literals preceding the keyword TO are added 
  11554. together, and this initial sum is added to and stored in identifier-2. The 
  11555. initial sum is also added to each successive occurrence of identifier-2, in the 
  11556. left-to-right order in which identifier-2 is specified. 
  11557.  
  11558. If the composite of operands is 18 digits or less, enough places are carried so 
  11559. that no significant digits are lost during execution. 
  11560.  
  11561. In Format 1, the composite of operands is determined by using all of the 
  11562. operands in a given statement. 
  11563.  
  11564. -----IBM Extension----- 
  11565.  
  11566. The composite of all operands in an arithmetic statement can have a maximum 
  11567. length of 30 digits. 
  11568.  
  11569. ---End of IBM Extension--- 
  11570.  
  11571.  
  11572. ΓòÉΓòÉΓòÉ 12.11.2. ADD Statement - Format 2 ΓòÉΓòÉΓòÉ
  11573.  
  11574. ΓöîΓöÇΓöÇΓöÇ ADD STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11575. Γöé                                        Γöé
  11576. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                         Γöé
  11577. Γöé                Γöé                         Γöé
  11578. Γöé >>ΓöÇΓöÇADDΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11579. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇTOΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  11580. Γöé                                        Γöé
  11581. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  11582. Γöé                     Γöé                   Γöé
  11583. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11584. Γöé               ΓööΓöÇROUNDEDΓöÇΓöÿ                    Γöé
  11585. Γöé                                        Γöé
  11586. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11587. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11588. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11589. Γöé                                        Γöé
  11590. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  11591. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-ADDΓöÇΓöÿ    Γöé
  11592. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11593. Γöé                                        Γöé
  11594. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11595.  
  11596. In Format 2, the values of the operands preceding the word GIVING are added 
  11597. together, and the sum is stored as the new value of each data item referenced 
  11598. by identifier-3. 
  11599.  
  11600. If the composite of operands is 18 digits or less, enough places are carried so 
  11601. that no significant digits are lost during execution. 
  11602.  
  11603. In Format 2, the composite of operands is determined by using all of the 
  11604. operands in a given statement excluding the data items that follow the word 
  11605. GIVING. 
  11606.  
  11607. -----IBM Extension----- 
  11608.  
  11609. The composite of all operands in an arithmetic statement can have a maximum 
  11610. length of 30 digits. 
  11611.  
  11612. ---End of IBM Extension--- 
  11613.  
  11614.  
  11615. ΓòÉΓòÉΓòÉ 12.11.3. ADD Statement - Format 3 ΓòÉΓòÉΓòÉ
  11616.  
  11617. ΓöîΓöÇΓöÇΓöÇ ADD STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11618. Γöé                                        Γöé
  11619. Γöé >>ΓöÇΓöÇADDΓöÇΓöÇΓö¼ΓöÇCORRESPONDINGΓöÇΓö¼ΓöÇΓöÇidentifier-4ΓöÇΓöÇTOΓöÇΓöÇidentifier-5ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇ> Γöé
  11620. Γöé      ΓööΓöÇCORRΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                  ΓööΓöÇROUNDEDΓöÇΓöÿ    Γöé
  11621. Γöé                                        Γöé
  11622. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11623. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11624. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11625. Γöé                                        Γöé
  11626. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  11627. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-ADDΓöÇΓöÿ    Γöé
  11628. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11629. Γöé                                        Γöé
  11630. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11631.  
  11632. In Format 3, elementary data items within identifier-4 are added to and stored 
  11633. in the corresponding elementary items within identifier-5. 
  11634.  
  11635. If the composite of operands is 18 digits or less, enough places are carried so 
  11636. that no significant digits are lost during execution. 
  11637.  
  11638. In Format 3, the composite of operands is determined separately for each pair 
  11639. of corresponding data items. 
  11640.  
  11641. -----IBM Extension----- 
  11642.  
  11643. The composite of all operands in an arithmetic statement can have a maximum 
  11644. length of 30 digits. 
  11645.  
  11646. ---End of IBM Extension--- 
  11647.  
  11648.  
  11649. ΓòÉΓòÉΓòÉ 12.12. ALTER Statement ΓòÉΓòÉΓòÉ
  11650.  
  11651. The ALTER statement changes the transfer point specified in a GO TO statement. 
  11652.  
  11653. Note:   The ALTER statement encourages the use of unstructured programming 
  11654. practices. The EVALUATE statement provides the same function as the ALTER 
  11655. statement and helps to ensure that your program will be well-structured. 
  11656.  
  11657. ΓöîΓöÇΓöÇΓöÇ ALTER STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11658. Γöé                                        Γöé
  11659. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ     Γöé
  11660. Γöé                                    Γöé     Γöé
  11661. Γöé >>ΓöÇΓöÇALTERΓöÇΓöÇΓöÇΓöÇprocedure-name-1ΓöÇΓöÇTOΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓö┤ΓöÇΓöÇ><   Γöé
  11662. Γöé                   ΓööΓöÇPROCEED TOΓöÇΓöÿ               Γöé
  11663. Γöé                                        Γöé
  11664. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11665.  
  11666. The ALTER statement modifies the GO TO statement in the paragraph named by 
  11667. procedure-name-1. Subsequent executions of the modified GO TO statement(s) 
  11668. transfer control to procedure-name-2. 
  11669.  
  11670. If procedure-name-1 or procedure-name-2 are within a declarative procedure, 
  11671. neither can reference any nondeclarative procedure. In the nondeclarative 
  11672. portion of the program, there must be no reference to procedure-names that 
  11673. appear in an EXCEPTION/ERROR declarative procedure, except that PERFORM 
  11674. statements may refer to an EXCEPTION/ERROR procedure or procedures associated 
  11675. with it. 
  11676.  
  11677. Before the ALTER statement is executed, when control reaches the paragraph 
  11678. specified in procedure-name-1, the GO TO statement transfers control to the 
  11679. paragraph specified in the GO TO statement. After execution of the ALTER 
  11680. statement, however, the next time control reaches the paragraph specified in 
  11681. procedure-name-1, the GO TO statement transfers control to the paragraph 
  11682. specified in procedure-name-2. 
  11683.  
  11684. Related Information: 
  11685.  
  11686.   Coding Example 
  11687.  
  11688.  
  11689. ΓòÉΓòÉΓòÉ 12.12.1. Coding Example ΓòÉΓòÉΓòÉ
  11690.  
  11691. The ALTER statement acts as a program switch, allowing, for example, one 
  11692. sequence of execution during initialization and another sequence during the 
  11693. bulk of file processing. Because altered GO TO statements are difficult to 
  11694. debug, it is preferable to test a switch, and based on the value of the switch, 
  11695. execute a particular code sequence. For example: 
  11696.  
  11697.    PARAGRAPH-1.
  11698.      GO TO BYPASS-PARAGRAPH.
  11699.    PARAGRAPH-1A.
  11700.      .
  11701.      .
  11702.    BYPASS-PARAGRAPH.
  11703.      .
  11704.      .
  11705.     ALTER PARAGRAPH-1 TO PROCEED TO
  11706.         PARAGRAPH-2.
  11707.      .
  11708.      .
  11709.    PARAGRAPH-2.
  11710.      .
  11711.      .
  11712.  
  11713. Before the ALTER statement is executed, when control reaches PARAGRAPH-1, the 
  11714. GO TO statement transfers control to BYPASS-PARAGRAPH.  After execution of the 
  11715. ALTER statement, however, the next time control reaches PARAGRAPH-1, the GO TO 
  11716. statement transfers control to PARAGRAPH-2. 
  11717.  
  11718. Altered GO TO statements in programs with the INITIAL attribute are returned to 
  11719. their initial state each time the program is entered. 
  11720.  
  11721.  
  11722. ΓòÉΓòÉΓòÉ 12.13. CALL Statement ΓòÉΓòÉΓòÉ
  11723.  
  11724. The CALL statement transfers control from one program to another within the run 
  11725. unit. 
  11726.  
  11727. The CALL statement has two formats: 
  11728.  
  11729.   Format 1 - CALL ON OVERFLOW 
  11730.   Format 2 - CALL ON EXCEPTION 
  11731.  
  11732.  The program containing the CALL statement is the calling program; the program 
  11733.  identified in the CALL statement is the called subprogram. The calling program 
  11734.  must contain a CALL statement at the point where another program is to be 
  11735.  called. 
  11736.  
  11737.  Processing of the CALL statement passes control to the first nondeclarative 
  11738.  instruction of the called subprogram.  Control returns to the calling program 
  11739.  at the instruction following the CALL statement. If the called subprogram has 
  11740.  no procedure division or nondeclarative section in the Procedure Division, the 
  11741.  called subprogram issues an implicit EXIT PROGRAM. 
  11742.  
  11743.  A called program must not directly or indirectly execute its caller. This is 
  11744.  called a recursive call. ILE COBOL/400 does not allow recursion in both main 
  11745.  programs and subprograms. If recursion is attempted, a run-time error message 
  11746.  is generated. 
  11747.  
  11748.  The RETURN-CODE special register can be used to pass return code information 
  11749.  from a program to its caller. See RETURN-CODE Special Register for further 
  11750.  information. 
  11751.  
  11752.  CALL statement processing passes control to the called subprogram, which 
  11753.  becomes part of the run unit. If a CALL statement has a linkage of program 
  11754.  object and the CALL statement names a program that does not exist in the job's 
  11755.  library list (*LIBL) at run time, an error message is issued. 
  11756.  
  11757.  A called subprogram is in its initial state the first time it is called within 
  11758.  a run unit. It is also in its initial state the first time it is called after 
  11759.  a CANCEL statement. 
  11760.  
  11761.  A program is in its initial state each time it is called if it is an initial 
  11762.  program (if its PROGRAM-ID paragraph contains the INITIAL clause). On all 
  11763.  other entries into the called subprogram, it is in its last-used state, and 
  11764.  the reinitialization of any items is your responsibility. 
  11765.  
  11766.  The user return code is set to 0 at the start of the processing of any COBOL 
  11767.  program, and before a call is made to another program. 
  11768.  
  11769.  Related Information: 
  11770.  
  11771.   OS/400 Graphics Support 
  11772.  
  11773.  
  11774. ΓòÉΓòÉΓòÉ 12.13.1. CALL Statement - Format 1 ΓòÉΓòÉΓòÉ
  11775.  
  11776. ΓöîΓöÇΓöÇΓöÇ CALL STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11777. Γöé                                        Γöé
  11778. Γöé >>ΓöÇΓöÇCALLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11779. Γöé                                        Γöé
  11780. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ>ΓöÇΓöñ
  11781. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-1ΓöÇ' Γöé
  11782. Γöé    Γöé     (1)                       Γöé        Γöé
  11783. Γöé    Γö£ΓöÇLINKAGEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇenvironment-name-1ΓöÇΓö¼ΓöÇΓöñ        Γöé
  11784. Γöé    Γöé       ΓööΓöÇTYPEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ Γöé        Γöé
  11785. Γöé    Γöé                 ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé        Γöé
  11786. Γöé    Γöé     (1)                       Γöé        Γöé
  11787. Γöé    Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  11788. Γöé    Γöé      (1)                      Γöé        Γöé
  11789. Γöé    ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  11790. Γöé                                        Γöé
  11791. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11792. Γöé   Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                        Γöé
  11793. Γöé   Γöé             Γöé Γöé                        Γöé
  11794. Γöé   ΓööΓöÇUSINGΓöÇΓöÇΓöÇΓöÇΓöñ BY Phrase Γö£ΓöÇΓö┤ΓöÇΓöÿ                        Γöé
  11795. Γöé                                        Γöé
  11796. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><      Γöé
  11797. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOVERFLOWΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ  ΓööΓöÇEND-CALLΓöÇΓöÿ        Γöé
  11798. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11799. Γöé                                        Γöé
  11800. Γöé BY PHRASE:                                  Γöé
  11801. Γöé                ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  11802. Γöé                                    Γöé    Γöé
  11803. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÇΓöñ Γöé
  11804. Γöé   Γöé ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇREFERENCEΓöÇΓöÿ   Γöé Γöé        (1)Γöé        Γöé  Γöé   Γöé
  11805. Γöé   Γöé  ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ         Γöé ΓööΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé  Γöé   Γöé
  11806. Γöé   Γöé               Γöé        (1)         Γöé  Γöé   Γöé
  11807. Γöé   Γöé               ΓööΓöÇΓö¼ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé   Γöé
  11808. Γöé   Γöé                Γöé     (1)   Γöé           Γöé   Γöé
  11809. Γöé   Γöé                ΓööΓöÇOMITTEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé   Γöé
  11810. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé   Γöé
  11811. Γöé   Γöé                               Γöé    Γöé   Γöé
  11812. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇCONTENTΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé
  11813. Γöé    ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ       Γöé Γöé        (1)Γöé        Γöé        Γöé
  11814. Γöé              Γöé Γö£ΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé        Γöé
  11815. Γöé              Γöé Γöé       (1) Γöé        Γöé        Γöé
  11816. Γöé              Γöé ΓööΓöÇLENGTH OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé        Γöé
  11817. Γöé              Γöé       (1)          Γöé        Γöé
  11818. Γöé              ΓööΓöÇΓö¼ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  11819. Γöé               Γöé       (1)Γöé                Γöé
  11820. Γöé               Γö£ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  11821. Γöé               Γöé     (1)   Γöé                Γöé
  11822. Γöé               ΓööΓöÇOMITTEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                Γöé
  11823. Γöé                                        Γöé
  11824. Γöé NOTE:                                     Γöé
  11825. Γöé (1)  IBM Extension                              Γöé
  11826. Γöé                                        Γöé
  11827. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11828.  
  11829.  
  11830. ΓòÉΓòÉΓòÉ 12.13.2. CALL Statement - Format 2 ΓòÉΓòÉΓòÉ
  11831.  
  11832. ΓöîΓöÇΓöÇΓöÇ CALL STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11833. Γöé                                        Γöé
  11834. Γöé >>ΓöÇΓöÇ CALLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11835. Γöé                                        Γöé
  11836. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ>ΓöÇΓöñ
  11837. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-1ΓöÇ' Γöé
  11838. Γöé    Γöé     (1)                       Γöé        Γöé
  11839. Γöé    Γö£ΓöÇLINKAGEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇenvironment-name-1ΓöÇΓö¼ΓöÇΓöñ        Γöé
  11840. Γöé    Γöé       ΓööΓöÇTYPEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ Γöé        Γöé
  11841. Γöé    Γöé                 ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé        Γöé
  11842. Γöé    Γöé     (1)                       Γöé        Γöé
  11843. Γöé    Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  11844. Γöé    Γöé      (1)                      Γöé        Γöé
  11845. Γöé    ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  11846. Γöé                                        Γöé
  11847. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11848. Γöé   Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                        Γöé
  11849. Γöé   Γöé             Γöé Γöé                        Γöé
  11850. Γöé   ΓööΓöÇUSINGΓöÇΓöÇΓöÇΓöÇΓöñ BY Phrase Γö£ΓöÇΓö┤ΓöÇΓöÿ                        Γöé
  11851. Γöé                                        Γöé
  11852. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  11853. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  11854. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  11855. Γöé                                        Γöé
  11856. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  11857. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇEXCEPTIONΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-CALLΓöÇΓöÿ    Γöé
  11858. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  11859. Γöé                                        Γöé
  11860. Γöé BY PHRASE:                                  Γöé
  11861. Γöé                ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  11862. Γöé                                    Γöé    Γöé
  11863. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÇΓöñ Γöé
  11864. Γöé   Γöé ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇREFERENCEΓöÇΓöÿ   Γöé Γöé        (1)Γöé        Γöé  Γöé   Γöé
  11865. Γöé   Γöé  ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ         Γöé ΓööΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé  Γöé   Γöé
  11866. Γöé   Γöé               Γöé        (1)         Γöé  Γöé   Γöé
  11867. Γöé   Γöé               ΓööΓöÇΓö¼ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé   Γöé
  11868. Γöé   Γöé                Γöé     (1)   Γöé           Γöé   Γöé
  11869. Γöé   Γöé                ΓööΓöÇOMITTEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé   Γöé
  11870. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé   Γöé
  11871. Γöé   Γöé                               Γöé    Γöé   Γöé
  11872. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇCONTENTΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé
  11873. Γöé    ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ       Γöé Γöé        (1)Γöé        Γöé        Γöé
  11874. Γöé              Γöé Γö£ΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé        Γöé
  11875. Γöé              Γöé Γöé       (1) Γöé        Γöé        Γöé
  11876. Γöé              Γöé ΓööΓöÇLENGTH OFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé        Γöé
  11877. Γöé              Γöé       (1)          Γöé        Γöé
  11878. Γöé              ΓööΓöÇΓö¼ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  11879. Γöé               Γöé       (1)Γöé                Γöé
  11880. Γöé               Γö£ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöñ                Γöé
  11881. Γöé               Γöé     (1)   Γöé                Γöé
  11882. Γöé               ΓööΓöÇOMITTEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                Γöé
  11883. Γöé                                        Γöé
  11884. Γöé NOTE:                                     Γöé
  11885. Γöé (1)  IBM Extension                              Γöé
  11886. Γöé                                        Γöé
  11887. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11888.  
  11889.  
  11890. ΓòÉΓòÉΓòÉ 12.13.3. USING ΓòÉΓòÉΓòÉ
  11891.  
  11892. Included in the CALL statement only if there is a USING phrase in the Procedure 
  11893. Division header of the called subprogram. The number of operands in both USING 
  11894. phrases must be identical. For CALL statements with a LINKAGE TYPE of program 
  11895. the maximum number of operands is 255, and for LINKAGE TYPE of procedure the 
  11896. maximum number of operands is 400. 
  11897.  
  11898. For more information about the USING phrase, see The USING Phrase. 
  11899.  
  11900. ILE COBOL/400 programs can pass arguments to other AS/400 programs. The 
  11901. attributes of the data passed depend on the requirements of the called 
  11902. subprogram. If a called program requires several parameters, you must specify 
  11903. the identity of each parameter, rather than a group item that consists of the 
  11904. parameters. 
  11905.  
  11906. The sequence of identifiers in the USING phrase of the CALL statement and in 
  11907. the corresponding USING phrase in the called subprogram's Procedure Division 
  11908. header determines the correspondence between the identifiers used by the 
  11909. calling and called programs. This correspondence is by position, rather than by 
  11910. name. 
  11911.  
  11912. The values of the parameters referenced in the USING phrase of the CALL 
  11913. statement are made available to the called subprogram at the time the CALL 
  11914. statement is executed. 
  11915.  
  11916. USING Phrase Example 
  11917.  
  11918. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  11919. Γöé CALLING PROGRAM DESCRIPTION    Γöé CALLED PROGRAM DESCRIPTION (PGMB) Γöé
  11920. Γöé (PGMA)               Γöé                  Γöé
  11921. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  11922. Γöé  WORKING-STORAGE SECTION.     Γöé  LINKAGE SECTION.         Γöé
  11923. Γöé  01 ARG-LIST.           Γöé  01 PARAM-LIST.          Γöé
  11924. Γöé    05 PARTCODE PIC A.      Γöé    10 PART-ID PIC X(5).     Γöé
  11925. Γöé    05 PARTNO PIC X(4).      Γöé    10 SALES PIC 9(5).      Γöé
  11926. Γöé    05 U-SALES PIC 9(5).     Γöé     .              Γöé
  11927. Γöé     .              Γöé     .              Γöé
  11928. Γöé     .              Γöé     .              Γöé
  11929. Γöé     .              Γöé  PROCEDURE DIVISION USING     Γöé
  11930. Γöé  PROCEDURE DIVISION.       Γöé  PARAM-LIST.           Γöé
  11931. Γöé     .              Γöé                  Γöé
  11932. Γöé     .              Γöé                  Γöé
  11933. Γöé     .              Γöé                  Γöé
  11934. Γöé     CALL PGMB          Γöé                  Γöé
  11935. Γöé     USING ARG-LIST.      Γöé                  Γöé
  11936. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  11937.  
  11938. Note:   In the calling program, the code for parts (PARTCODE) and the part 
  11939. number (PARTNO) are referred to separately. In the called subprogram, the code 
  11940. for parts and the part number are combined into one data item (PART-ID); 
  11941. therefore in the called subprogram, a reference to PART-ID is the only valid 
  11942. reference to them. 
  11943.  
  11944.  
  11945. ΓòÉΓòÉΓòÉ 12.13.4. LINKAGE TYPE Phrase ΓòÉΓòÉΓòÉ
  11946.  
  11947. -----IBM Extension----- 
  11948.  
  11949. The LINKAGE TYPE phrase is used to specify the type of linkage to be made on 
  11950. the CALL to literal-1. 
  11951.  
  11952. If the LINKAGE TYPE phrase is not specified on the CALL statement, the linkage 
  11953. generated for the CALL can be changed by specifying one of: the LINKAGE TYPE 
  11954. clause of the SPECIAL-NAMES paragraph, or the LINKLIT parameter of the 
  11955. CRTCBLMOD or CRTBNDCBL command. 
  11956.  
  11957. ---End of IBM Extension--- 
  11958.  
  11959.  
  11960. ΓòÉΓòÉΓòÉ 12.13.5. BY REFERENCE Phrase ΓòÉΓòÉΓòÉ
  11961.  
  11962. The value of a parameter passed through the BY REFERENCE phrase is evaluated 
  11963. when the CALL statement runs. This value is assigned to the corresponding 
  11964. parameter of the called program. The number of characters in each parameter 
  11965. must be equal; however, the data descriptions need not be the same. 
  11966.  
  11967. When an ILE COBOL/400 parameter is passed BY REFERENCE, a pointer to the 
  11968. original data item passes to the called program. Because of this, a change to a 
  11969. parameter in a called program will result in a change to a data item in a 
  11970. calling program. 
  11971.  
  11972.  
  11973. ΓòÉΓòÉΓòÉ 12.13.6. BY CONTENT Phrase ΓòÉΓòÉΓòÉ
  11974.  
  11975. The value of a parameter passed through the BY CONTENT phrase is evaluated when 
  11976. the CALL statement runs. This value is assigned to the corresponding parameter 
  11977. of the called program. 
  11978.  
  11979. For each ILE COBOL/400 item passed BY CONTENT, a copy of the item is made in 
  11980. the calling program, and a pointer to this copy passes to the called program. 
  11981. Changes made to the parameter in the called program do not affect the data item 
  11982. of the calling program. The number of characters in each parameter must be 
  11983. equal; however, the data descriptions need not be the same. 
  11984.  
  11985.  
  11986. ΓòÉΓòÉΓòÉ 12.13.7. LENGTH OF Special Register ΓòÉΓòÉΓòÉ
  11987.  
  11988. -----IBM Extension----- 
  11989.  
  11990. The LENGTH OF phrase creates an implicit special register whose contents equal 
  11991. the current length, in bytes, of the data item referenced by the identifier. 
  11992.  
  11993. The LENGTH OF special register has the implicit definition: 
  11994.  
  11995. USAGE IS BINARY, PICTURE 9(9)
  11996.  
  11997. You can use it anywhere in the Procedure Division where you can use a numeric 
  11998. data item having the same definition as the implied definition of the LENGTH OF 
  11999. special register. 
  12000.  
  12001. It can appear in the starting position or length expression of a reference 
  12002. modifier. However, the LENGTH OF special register cannot be applied to any 
  12003. operand that is reference modified. 
  12004.  
  12005. It cannot be either of the following: 
  12006.  
  12007.   A receiving data item 
  12008.   A subscript 
  12009.  
  12010.  You can use LENGTH OF in the BY CONTENT phrase of the CALL statement. 
  12011.  
  12012.  For a table element, the LENGTH OF special register contains the length, in 
  12013.  bytes, of one occurrence. To refer to a table element in this case, you do not 
  12014.  need to use a subscript. 
  12015.  
  12016.  For a variable-length element, the LENGTH OF special register contains the 
  12017.  length based on the current contents of the occurs depending on (ODO) 
  12018.  variable. 
  12019.  
  12020.  The register returns a value for any identifier whose length can be 
  12021.  determined, even if the area referenced by the identifier is currently not 
  12022.  available to the program. For example, an identifier that is part of a 
  12023.  01-level record in a File Definition is not available until the corresponding 
  12024.  file is open; however, the LENGTH OF such an identifier can be determined 
  12025.  before the file is open. 
  12026.  
  12027.  If, for a variable-length item, the contents of the ODO variable are not 
  12028.  available, the LENGTH OF special register is undefined.  For example, if an 
  12029.  ODO variable is defined in the 01-level record of a file that is not open, no 
  12030.  LENGTH OF value exists, and an error results. 
  12031.  
  12032.  A separate LENGTH OF special register exists for each identifier referenced 
  12033.  with the LENGTH OF phrase. 
  12034.  
  12035.  For example: 
  12036.  
  12037.   MOVE LENGTH OF A TO B
  12038.   DISPLAY LENGTH OF A, A
  12039.   ADD LENGTH OF A TO B
  12040.   CALL "PROGX" USING BY REFERENCE A BY CONTENT LENGTH OF A
  12041.  
  12042.  ---End of IBM Extension--- 
  12043.  
  12044.  
  12045. ΓòÉΓòÉΓòÉ 12.13.7.1. ON EXCEPTION Phrase ΓòÉΓòÉΓòÉ
  12046.  
  12047. This phrase handles the exceptions that result from program existence, 
  12048. authority, and storage if the original receiver of the exception is the caller. 
  12049. At that time, one of the following occurs: 
  12050.  
  12051.   1. If the ON EXCEPTION phrase appears in the CALL statement, control 
  12052.      transfers to imperative-statement-1. Processing then continues according 
  12053.      to the rules for each statement specified in imperative-statement-1. 
  12054.  
  12055.      If a procedure-branching or conditional statement causing explicit 
  12056.      transfer of control runs, control transfers according to the rules for 
  12057.      that statement. Otherwise, once imperative-statement-1 has run, control 
  12058.      transfers to the end of the CALL statement, and the NOT ON EXCEPTION 
  12059.      phrase, if specified, is ignored. 
  12060.  
  12061.   2. If the ON EXCEPTION phrase does not appear in the CALL statement, the NOT 
  12062.      ON EXCEPTION phrase, if specified, is ignored. 
  12063.  
  12064.  
  12065. ΓòÉΓòÉΓòÉ 12.13.7.2. NOT ON EXCEPTION Phrase ΓòÉΓòÉΓòÉ
  12066.  
  12067. If an exception condition does not occur (in other words, the called subprogram 
  12068. can be made available), control transfers to the called program. After control 
  12069. returns from the called program, the ON EXCEPTION phrase, if specified, is 
  12070. ignored, and control transfers to the end of the CALL statement (or to 
  12071. imperative-statement-2, if the NOT ON EXCEPTION phrase is specified). 
  12072.  
  12073. If control transfers to imperative-statement-2, processing continues according 
  12074. to the rules for each statement specified in imperative-statement-2. 
  12075.  
  12076. If a procedure-branching or conditional statement causing explicit transfer of 
  12077. control runs, control transfers according to the rules for that statement. 
  12078. Otherwise, once imperative-statement-2 has run, control transfers to the end of 
  12079. the CALL statement. 
  12080.  
  12081. If you specify this phrase in conjunction with the ON OVERFLOW phrase, an error 
  12082. will result. 
  12083.  
  12084.  
  12085. ΓòÉΓòÉΓòÉ 12.13.8. OS/400 Graphics Support ΓòÉΓòÉΓòÉ
  12086.  
  12087. You can use the CALL statement to access the following OS/400 graphics 
  12088. routines: 
  12089.  
  12090.   Graphical Data Display Manager* (GDDM*), a set of graphics primitives for 
  12091.    drawing pictures 
  12092.   Presentation Graphics Routines (PGR), a set of business charting routines. 
  12093.  
  12094.  You access all these graphics routines with the same format of the CALL 
  12095.  statement: 
  12096.  
  12097.   ΓöîΓöÇΓöÇΓöÇ CALL GDDM STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12098.   Γöé                                        Γöé
  12099.   Γöé             (1)        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ          Γöé
  12100.   Γöé                              Γöé          Γöé
  12101.   Γöé >>ΓöÇΓöÇCALLΓöÇΓöÇ"GDDM"ΓöÇΓöÇUSINGΓöÇΓöÇΓöÇΓöÇΓöÇroutine-nameΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇ><        Γöé
  12102.   Γöé                       ΓööΓöÇdata-name-1ΓöÇΓöÿ          Γöé
  12103.   Γöé                                        Γöé
  12104.   Γöé NOTE:                                     Γöé
  12105.   Γöé (1)  IBM Extension                              Γöé
  12106.   Γöé                                        Γöé
  12107.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12108.  
  12109.  Routine-name is the name of the graphics routine you want to use. 
  12110.  
  12111.  The data-names that follow routine-name are the parameters necessary to use 
  12112.  certain graphics routines.  The number of parameters that you must specify 
  12113.  varies, depending on which routine you select.  When you select a graphics 
  12114.  routine, make sure each parameter is the correct size and data type as 
  12115.  required by that routine. 
  12116.  
  12117.  The following are examples of calling graphics routines. Remember, you must 
  12118.  use the CALL literal format and define each parameter as required by the 
  12119.  graphics routine you use. 
  12120.  
  12121.     MOVE "FSINIT" TO OS-400-GRAPHICS-ROUTINE-NAME.
  12122.     CALL "GDDM" USING OS-400-GRAPHICS-ROUTINE-NAME.
  12123.         .
  12124.         .
  12125.     MOVE "GSFLD" TO OS-400-GRAPHICS-ROUTINE-NAME.
  12126.     CALL "GDDM" USING OS-400-GRAPHICS-ROUTINE-NAME,
  12127.                       PIC-ROW, PIC-COL,
  12128.                       PIC-DEPTH, PIC-WIDTH.
  12129.  
  12130.  
  12131. ΓòÉΓòÉΓòÉ 12.14. CANCEL Statement ΓòÉΓòÉΓòÉ
  12132.  
  12133. The CANCEL statement ensures that the next time the referenced subprogram is 
  12134. called it will be entered in its initial state. 
  12135.  
  12136. ΓöîΓöÇΓöÇΓöÇ CANCEL STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12137. Γöé                                        Γöé
  12138. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé
  12139. Γöé                           Γöé             Γöé
  12140. Γöé >>ΓöÇΓöÇCANCELΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><           Γöé
  12141. Γöé        ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-1ΓöÇΓöÿ              Γöé
  12142. Γöé         ΓööΓöÇΓöñ Linkage Phrase Γö£ΓöÇΓöÿ                    Γöé
  12143. Γöé                                        Γöé
  12144. Γöé LINKAGE PHRASE:                                Γöé
  12145. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ       Γöé
  12146. Γöé   Γöé     (1)                       Γöé         Γöé
  12147. Γöé   Γö£ΓöÇLINKAGEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇenvironment-name-1ΓöÇΓö¼ΓöÇΓöñ         Γöé
  12148. Γöé   Γöé       ΓööΓöÇTYPEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ Γöé         Γöé
  12149. Γöé   Γöé                 ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé         Γöé
  12150. Γöé   Γöé     (1)                       Γöé         Γöé
  12151. Γöé   Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ         Γöé
  12152. Γöé   Γöé      (1)                      Γöé         Γöé
  12153. Γöé   ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  12154. Γöé                                        Γöé
  12155. Γöé NOTE:                                     Γöé
  12156. Γöé (1)  IBM Extension                              Γöé
  12157. Γöé                                        Γöé
  12158. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12159.  
  12160. If the LINKAGE TYPE phrase is not specified on the CANCEL statement, the type 
  12161. of program canceled can be changed by specifying one of: the LINKAGE TYPE 
  12162. clause of the SPECIAL-NAMES paragraph, or the LINKLIT parameter of the 
  12163. CRTCBLMOD or CRTBNDCBL command. 
  12164.  
  12165. After a CANCEL statement for a called subprogram has been executed, that 
  12166. subprogram no longer has a logical connection to the program. The contents of 
  12167. data items in external data records described by the subprogram are not changed 
  12168. when a subprogram is canceled. If a CALL statement is executed later by any 
  12169. program in the run unit naming the same subprogram, that subprogram will be 
  12170. entered in its initial state. 
  12171.  
  12172. A CANCEL statement closes all open INTERNAL files. 
  12173.  
  12174. You can cancel a called subprogram in any of the following ways: 
  12175.  
  12176.   By referencing it as the operand of a CANCEL statement 
  12177.  
  12178.   By terminating the run unit of which the subprogram is a member (This can be 
  12179.    done by a STOP RUN in the same run unit or by a GOBACK from the main program 
  12180.    of the run unit.) 
  12181.  
  12182.   By executing an EXIT PROGRAM statement in the called subprogram if that 
  12183.    subprogram possesses the INITIAL attribute 
  12184.  
  12185.    -----IBM Extension----- 
  12186.  
  12187.   By executing the GOBACK statement in the called subprogram if that 
  12188.    subprogram possesses the INITIAL attribute. 
  12189.  
  12190.    ---End of IBM Extension--- 
  12191.  
  12192.  A CANCEL statement operates only on the program specified, and not on any 
  12193.  program that may have been called by the canceled program. 
  12194.  
  12195.  Called subprograms may contain CANCEL statements. A called subprogram must not 
  12196.  contain a CANCEL statement that directly or indirectly cancels its calling 
  12197.  program or any other program higher than itself in the calling hierarchy. If a 
  12198.  called subprogram attempts to cancel its calling program, the CANCEL statement 
  12199.  in the subprogram is ignored. 
  12200.  
  12201.  A program named in a CANCEL statement must not refer to any program that has 
  12202.  been called and has not yet returned control to the calling program. For 
  12203.  example: 
  12204.  
  12205.   A calls B and B calls C        (When A receives control,
  12206.                                   it can cancel C.)
  12207.   A calls B and A calls C        (When C receives control,
  12208.                                   it can cancel B.)
  12209.  
  12210.  No action is taken when a CANCEL statement is executed naming a program that 
  12211.  has not been called in the run unit, or that names a program that was called 
  12212.  and subsequently canceled. In both cases, control passes to the next 
  12213.  statement. 
  12214.  
  12215.  
  12216. ΓòÉΓòÉΓòÉ 12.15. CLOSE Statement ΓòÉΓòÉΓòÉ
  12217.  
  12218. The CLOSE statement terminates the processing of volumes and files, with 
  12219. optional rewind and/or lock or removal, where applicable. 
  12220.  
  12221. The CLOSE statement has three formats: 
  12222.  
  12223.   Format 1 
  12224.   Format 2 - Tape Files 
  12225.  
  12226.  Related Information: 
  12227.  
  12228.   CLOSE Statement Considerations 
  12229.   Special Considerations for Device Type TAPEFILE Only 
  12230.  
  12231.  
  12232. ΓòÉΓòÉΓòÉ 12.15.1. CLOSE Statement - Format 1 ΓòÉΓòÉΓòÉ
  12233.  
  12234. ΓöîΓöÇΓöÇΓöÇ CLOSE STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12235. Γöé                                        Γöé
  12236. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                Γöé
  12237. Γöé                        Γöé                Γöé
  12238. Γöé >>ΓöÇΓöÇCLOSEΓöÇΓöÇΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><              Γöé
  12239. Γöé              ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇLOCKΓöÇΓöÿ                 Γöé
  12240. Γöé               ΓööΓöÇWITHΓöÇΓöÿ                     Γöé
  12241. Γöé                                        Γöé
  12242. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12243.  
  12244.  
  12245. ΓòÉΓòÉΓòÉ 12.15.2. CLOSE Statement - Format 2 - Tape Files ΓòÉΓòÉΓòÉ
  12246.  
  12247. ΓöîΓöÇΓöÇΓöÇ CLOSE STATEMENT - FORMAT 2 - TAPE FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12248. Γöé                                        Γöé
  12249. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ        Γöé
  12250. Γöé                                 Γöé        Γöé
  12251. Γöé >>ΓöÇΓöÇCLOSEΓöÇΓöÇΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><      Γöé
  12252. Γöé              Γö£ΓöÇΓö¼ΓöÇREELΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ         Γöé
  12253. Γöé              Γöé ΓööΓöÇUNITΓöÇΓöÿ  ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇREMOVALΓöÇΓöÿ Γöé         Γöé
  12254. Γöé              Γöé        ΓööΓöÇFORΓöÇΓöÇΓöÿ      Γöé         Γöé
  12255. Γöé              ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇNO  REWINDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ         Γöé
  12256. Γöé               ΓööΓöÇWITHΓöÇΓöÿ  ΓööΓöÇLOCKΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  12257. Γöé                                        Γöé
  12258. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12259.  
  12260.  
  12261. ΓòÉΓòÉΓòÉ 12.15.3. CLOSE Statement Considerations ΓòÉΓòÉΓòÉ
  12262.  
  12263. A CLOSE statement may be executed only for a file in an open mode. After 
  12264. successful execution of a CLOSE statement without the REEL/UNIT phrase: 
  12265.  
  12266.   The record area associated with the file-name-1 is no longer available. 
  12267.    Unsuccessful execution of a CLOSE statement leaves availability of the 
  12268.    record data undefined. 
  12269.  
  12270.   An OPEN statement for the file must be executed before any other 
  12271.    input/output statement. 
  12272.  
  12273.  If the FILE STATUS clause is specified in the FILE-CONTROL entry, the 
  12274.  associated status key is updated when the CLOSE statement is executed. For 
  12275.  more information about the status key, see Common Processing Facilities. 
  12276.  
  12277.  If the file is in an open status and the execution of a CLOSE statement is 
  12278.  unsuccessful, the EXCEPTION/ERROR procedure (if specified) for this file is 
  12279.  executed. 
  12280.  
  12281.  If a CLOSE statement for an open file is not processed before a STOP RUN  for 
  12282.  this run unit, the file is implicitly closed. 
  12283.  
  12284.  If the SELECT OPTIONAL clause is specified in the file-control entry for this 
  12285.  file, and the file is not present at run time, standard end-of-file processing 
  12286.  is not performed. 
  12287.  
  12288.  The following considerations apply to the use of the CLOSE statement: 
  12289.  
  12290.   May be processed only for an open file. 
  12291.  
  12292.   For Relative Files Only: To extend a relative file boundary beyond the 
  12293.    current number of records and within the file size, use the INZPFM command 
  12294.    to add deleted records before processing the file. You will need to do this 
  12295.    when more records need to be added to the file, and file status 0Q has been 
  12296.    received. Any attempt to extend a relative file beyond its current size 
  12297.    results in a boundary violation. 
  12298.  
  12299.  
  12300. ΓòÉΓòÉΓòÉ 12.15.4. WITH LOCK Phrase ΓòÉΓòÉΓòÉ
  12301.  
  12302. COBOL ensures that this file cannot be reopened by this COBOL program during 
  12303. this processing of the program. External files closed WITH LOCK cannot be 
  12304. opened again within the run unit. This includes any other programs that have 
  12305. defined the external file. 
  12306.  
  12307.  
  12308. ΓòÉΓòÉΓòÉ 12.15.5. Special Considerations for Device Type TAPEFILE Only ΓòÉΓòÉΓòÉ
  12309.  
  12310.   A device type TAPEFILE can be divided into the following two categories: 
  12311.  
  12312.     Sequential Single Volume: A sequential file contained entirely on one 
  12313.     volume.  More than one file may be contained on this volume. 
  12314.  
  12315.     Sequential Multivolume: A sequential file contained on more than one 
  12316.     volume. 
  12317.  
  12318.   If the ENDOPT keyword has been specified in the Create Tape File (CRTTAPF) 
  12319.    or the Override with Tape File (OVRTAPF) CL command, the positioning of the 
  12320.    tape volume when the file is closed follows the value specified in that 
  12321.    keyword (a value of LEAVE, REWIND, or UNLOAD). 
  12322.    If the ENDOPT keyword has not been specified, the positioning of the tape 
  12323.    volume when the file is closed corresponds to the following ENDOPT values: 
  12324.  
  12325.           CLOSE NO REWIND statement . . . .  LEAVE
  12326.           All other forms of CLOSE  . . . .  REWIND
  12327.  
  12328.   The CLOSE statement causes the current volume to be positioned at its 
  12329.    beginning, except when the NO REWIND phrase is specified, or if the REEL, 
  12330.    UNIT, REEL FOR REMOVAL, or UNIT FOR REMOVAL phrases are specified for a 
  12331.    sequential single volume tape file. 
  12332.  
  12333.    For sequential multivolume tape files, CLOSE, CLOSE WITH LOCK, and CLOSE NO 
  12334.    REWIND have no effect on any previous volumes. Any additional volumes are 
  12335.    not processed. 
  12336.  
  12337.  The following phrases apply only to device type TAPEFILE: 
  12338.  
  12339.  NO REWIND phrase 
  12340.  REEL or UNIT phrase 
  12341.  REEL FOR REMOVAL or UNIT FOR REMOVAL phrase 
  12342.  
  12343.  
  12344. ΓòÉΓòÉΓòÉ 12.15.5.1. NO REWIND Phrase ΓòÉΓòÉΓòÉ
  12345.  
  12346. The current volume is left in its present position.  The reel is not rewound. 
  12347.  
  12348. -----IBM Extension----- 
  12349.  
  12350. The system always rewinds and unloads the tape when the REEL or UNIT phrase is 
  12351. specified on the CLOSE statement. 
  12352.  
  12353. ---End of IBM Extension--- 
  12354.  
  12355.  
  12356. ΓòÉΓòÉΓòÉ 12.15.5.2. REEL or UNIT Phrase ΓòÉΓòÉΓòÉ
  12357.  
  12358. For sequential single volume tape files, the REEL or UNIT phrase is optional; 
  12359. it is syntax checked only and performs no function at run time. 
  12360.  
  12361. For sequential multivolume tape files, the following CLOSE statement procedures 
  12362. apply: 
  12363.  
  12364.   For tape files opened for input, the current volume is positioned to read 
  12365.    the labels.  If this is the last volume for the file, the next processed 
  12366.    READ statement receives the AT END condition.  If this is not the last 
  12367.    volume: 
  12368.  
  12369.      1. The current volume is unloaded 
  12370.  
  12371.      2. The beginning standard labels on the next volume are read 
  12372.  
  12373.      3. The next processed READ statement gets the first record on the newly 
  12374.         mounted volume. 
  12375.  
  12376.   For tape files opened for output, the standard end-of-volume labels are 
  12377.    written. The next volume is mounted.  The standard beginning labels are 
  12378.    written on the new volume. The next processed WRITE statement places the 
  12379.    next logical record on the newly mounted volume. 
  12380.  
  12381.  
  12382. ΓòÉΓòÉΓòÉ 12.15.5.3. FOR REMOVAL Phrase ΓòÉΓòÉΓòÉ
  12383.  
  12384. For sequential single volume tape files, the REEL FOR REMOVAL or UNIT FOR 
  12385. REMOVAL phrase is optional; it is syntax checked only and performs no function 
  12386. at run time. 
  12387.  
  12388. For sequential multivolume tape files, the addition of the FOR REMOVAL phrase 
  12389. to the REEL or UNIT phrase causes the current volume to be rewound and 
  12390. unloaded.  The system is then notified that the volume is logically removed 
  12391. from this run unit. However, the volume can be accessed again, after processing 
  12392. of a CLOSE statement without the REEL or UNIT phrase and an OPEN statement for 
  12393. this file. 
  12394.  
  12395.  
  12396. ΓòÉΓòÉΓòÉ 12.16. COMMIT Statement ΓòÉΓòÉΓòÉ
  12397.  
  12398. -----IBM Extension----- 
  12399.  
  12400. The COMMIT statement provides a way of synchronizing changes to data base 
  12401. records while preventing other jobs from modifying those records until the 
  12402. COMMIT is performed.  The format of the COMMIT statement is: 
  12403.  
  12404. ΓöîΓöÇΓöÇΓöÇ COMMIT STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12405. Γöé                                        Γöé
  12406. Γöé >>ΓöÇΓöÇCOMMITΓöÇΓöÇ><                                Γöé
  12407. Γöé                                        Γöé
  12408. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12409.  
  12410. When the COMMIT statement is executed, all changes made to files under 
  12411. commitment control, for the current commitment definition since the previous 
  12412. commitment boundary, are made permanent.  A commitment boundary is established 
  12413. by the successful execution of a ROLLBACK or COMMIT statement.  If no COMMIT or 
  12414. ROLLBACK has been issued in the current job, a commitment boundary is 
  12415. established by the first OPEN of any file under commitment control in the job. 
  12416. Changes are made to all files under commitment control, not just to files under 
  12417. commitment control in the COBOL program that issues the COMMIT statement. 
  12418.  
  12419. When a COMMIT is executed, all record locks held by the current commitment 
  12420. definition since the last commitment boundary for files under commitment 
  12421. control are released and the records become available. Commitment control can 
  12422. be scoped at the job level or the activation group level. Commitment control 
  12423. scopes to the activation group by default. This is important when your 
  12424. application involves non-ILE COBOL programs that run in a different activation 
  12425. group, such as a CL program. 
  12426.  
  12427. The COMMIT statement only affects files under commitment control.  If a COMMIT 
  12428. is executed and there are no files opened under commitment control, the COMMIT 
  12429. statement has no effect and no commitment boundary is established. 
  12430.  
  12431. The COMMIT statement does not: 
  12432.  
  12433.   Modify the I-O-FEEDBACK area for any file 
  12434.   Change the file position indicator for any file 
  12435.   Set a file status value for any file. 
  12436.  
  12437.  ---End of IBM Extension--- 
  12438.  
  12439.  
  12440. ΓòÉΓòÉΓòÉ 12.17. COMPUTE Statement ΓòÉΓòÉΓòÉ
  12441.  
  12442. The COMPUTE statement assigns the value of an arithmetic expression to one or 
  12443. more data items. 
  12444.  
  12445. With the COMPUTE statement, arithmetic operations can be combined without the 
  12446. restrictions on receiving data items imposed by the rules for the ADD, 
  12447. SUBTRACT, MULTIPLY, and DIVIDE statements. 
  12448.  
  12449. ΓöîΓöÇΓöÇΓöÇ COMPUTE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12450. Γöé                                        Γöé
  12451. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                  Γöé
  12452. Γöé                      Γöé                  Γöé
  12453. Γöé >>ΓöÇΓöÇCOMPUTEΓöÇΓöÇΓöÇΓöÇidentifier-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12454. Γöé                ΓööΓöÇROUNDEDΓöÇΓöÿ   ΓööΓöÇEQUALΓöÇΓöÿ             Γöé
  12455. Γöé                                        Γöé
  12456. Γöé >ΓöÇΓöÇarithmetic-expressionΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12457. Γöé                                        Γöé
  12458. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12459. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  12460. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  12461. Γöé                                        Γöé
  12462. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12463. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  12464. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  12465. Γöé                                        Γöé
  12466. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  12467. Γöé   ΓööΓöÇEND-COMPUTEΓöÇΓöÿ                              Γöé
  12468. Γöé                                        Γöé
  12469. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12470.  
  12471. If portability is desired, however, you should use ADD, SUBTRACT, MULTIPLY, and 
  12472. DIVIDE rather than COMPUTE.  This is because of potentially different 
  12473. system-specific intermediate results. 
  12474.  
  12475. When arithmetic operations are combined, the COMPUTE statement may be more 
  12476. efficient than the separate arithmetic statements written in series. 
  12477.  
  12478.  
  12479. ΓòÉΓòÉΓòÉ 12.18. CONTINUE Statement ΓòÉΓòÉΓòÉ
  12480.  
  12481. The CONTINUE statement allows you to specify a no operation statement. CONTINUE 
  12482. indicates that no executable instruction is present. 
  12483.  
  12484. ΓöîΓöÇΓöÇΓöÇ CONTINUE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12485. Γöé                                        Γöé
  12486. Γöé >>ΓöÇΓöÇCONTINUEΓöÇΓöÇ><                               Γöé
  12487. Γöé                                        Γöé
  12488. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12489.  
  12490. The CONTINUE statement may be used anywhere a conditional statement or an 
  12491. imperative statement may be used. It has no effect on the execution of the 
  12492. program. 
  12493.  
  12494.  
  12495. ΓòÉΓòÉΓòÉ 12.19. DELETE Statement ΓòÉΓòÉΓòÉ
  12496.  
  12497. The DELETE statement removes a record from an indexed or relative file. For 
  12498. indexed files, the key may then be reused for record addition. For relative 
  12499. files, the space is then available for a new record with the same RELATIVE KEY 
  12500. value. 
  12501.  
  12502. When the DELETE statement is executed, the associated file must be open in I-O 
  12503. mode. 
  12504.  
  12505. ΓöîΓöÇΓöÇΓöÇ DELETE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12506. Γöé                                        Γöé
  12507. Γöé >>ΓöÇΓöÇDELETEΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12508. Γöé             ΓööΓöÇRECORDΓöÇΓöÿ                       Γöé
  12509. Γöé                                        Γöé
  12510. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12511. Γöé   Γöé    (1)              Γöé                  Γöé
  12512. Γöé   ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇΓöÿ                  Γöé
  12513. Γöé         ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  12514. Γöé                                        Γöé
  12515. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12516. Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  12517. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  12518. Γöé                                        Γöé
  12519. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  12520. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-DELETEΓöÇΓöÿ     Γöé
  12521. Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  12522. Γöé                                        Γöé
  12523. Γöé NOTE:                                     Γöé
  12524. Γöé (1)  IBM Extension                              Γöé
  12525. Γöé                                        Γöé
  12526. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12527.  
  12528. After successful execution of a DELETE statement, the record is logically 
  12529. removed from the file and can no longer be accessed. Execution of the DELETE 
  12530. statement does not affect the contents of the record area associated with the 
  12531. file-name (or the content of the data item referenced by the data-name 
  12532. specified in the DEPENDING ON phrase of the RECORD clause associated with 
  12533. file-name). 
  12534.  
  12535. If the FILE STATUS clause is specified in the File-Control entry, the 
  12536. associated status key is updated when the DELETE statement is executed. 
  12537.  
  12538. The file position indicator is not affected by the processing of the DELETE 
  12539. statement. 
  12540.  
  12541. Related Information: 
  12542.  
  12543.   DELETE Statement Considerations 
  12544.   Special Considerations for Sequential Access Mode 
  12545.   Special Considerations for Random or Dynamic Access Mode 
  12546.  
  12547.  
  12548. ΓòÉΓòÉΓòÉ 12.19.1. DELETE Statement Considerations ΓòÉΓòÉΓòÉ
  12549.  
  12550. -----IBM Extension----- 
  12551.  
  12552. The action of this statement can be inhibited at program run time by the 
  12553. inhibit write (INHWRT) parameter of the Override with Database File (OVRDBF) CL 
  12554. command. When this parameter is specified, non-zero file status codes are not 
  12555. set for data dependent errors. Duplicate key and data conversion errors are 
  12556. examples of data dependent errors. 
  12557.  
  12558. ---End of IBM Extension--- 
  12559.  
  12560.  
  12561. ΓòÉΓòÉΓòÉ 12.19.2. Sequential Access Mode ΓòÉΓòÉΓòÉ
  12562.  
  12563. For an indexed or relative file in sequential access mode, 
  12564.  
  12565.   When the DELETE statement is processed, the system logically removes the 
  12566.    record retrieved and locked by the READ statement. 
  12567.  
  12568.    The last input/output statement must have been a successfully processed READ 
  12569.    statement without the NO LOCK phrase. 
  12570.  
  12571.    -----IBM Extension----- 
  12572.  
  12573.    If the last input/output statement was a successfully processed READ 
  12574.    statement with the NO LOCK phrase: 
  12575.  
  12576.     - The file status key, if defined, is set to 9S. 
  12577.     - The EXCEPTION/ERROR procedure, if any, is run. 
  12578.     - The DELETE statement is not processed. 
  12579.  
  12580.    ---End of IBM Extension--- 
  12581.  
  12582.    If the last input/output statement was not a successfully processed READ 
  12583.    statement, the file status key (if defined) is set to 43. 
  12584.  
  12585.   For a file in sequential access mode, the INVALID KEY and NOT INVALID KEY 
  12586.    phrases must not be specified; however, an EXCEPTION/ERROR procedure may be 
  12587.    specified. 
  12588.  
  12589.    For information about error handling, see Common Processing Facilities. 
  12590.  
  12591.  
  12592. ΓòÉΓòÉΓòÉ 12.19.3. Random or Dynamic Access Mode ΓòÉΓòÉΓòÉ
  12593.  
  12594. In random and dynamic access modes, the results of using the DELETE statement 
  12595. depend on the file organization. 
  12596.  
  12597. When it is a relative file, the system logically removes the record identified 
  12598. by the contents of the RELATIVE KEY data item. The space is then available for 
  12599. a new record with the same RELATIVE KEY value. If the file does not contain 
  12600. such a record, an INVALID KEY condition exists. 
  12601.  
  12602. On an indexed file, the system logically removes the record identified by the 
  12603. contents of the RECORD KEY data item.  If the file does not contain such a 
  12604. record, an INVALID KEY condition exists. 
  12605.  
  12606. -----IBM Extension----- 
  12607.  
  12608. When EXTERNALLY-DESCRIBED-KEY is specified for the file, the key fields in the 
  12609. record area for the format specified by the FORMAT phrase are used to find the 
  12610. record to be deleted. If the FORMAT phrase is not specified, the first format 
  12611. defined in the program for the file is used to find the record to be deleted. 
  12612.  
  12613. DUPLICATES Phrase 
  12614.  
  12615. If this phrase was specified for the file, the last input/output statement 
  12616. processed for this file before the processing of the DELETE statement must have 
  12617. been a successfully processed READ statement without the NO LOCK phrase. The 
  12618. record read by that statement is the record that is deleted. 
  12619.  
  12620. In this case, the FORMAT phrase is not used to find the record to be deleted. 
  12621. The READ statement is required to ensure that the proper record is deleted when 
  12622. there are duplicates. 
  12623.  
  12624. If a successful READ operation did not occur before the delete operation: 
  12625.  
  12626.   The file status key, if defined, is set to 94. 
  12627.   The EXCEPTION/ERROR procedure, if any, is run. 
  12628.   The DELETE statement is not processed. 
  12629.  
  12630.  If the last input/output statement was a successfully processed READ statement 
  12631.  with the NO LOCK phrase: 
  12632.  
  12633.   The file status key, if defined, is set to 9S. 
  12634.   The EXCEPTION/ERROR procedure, if any, is run. 
  12635.   The DELETE statement is not processed. 
  12636.  
  12637.  The value of the RECORD KEY data item should not have changed since the record 
  12638.  was read. By default, if it has changed: 
  12639.  
  12640.   The file status key, if defined, is set to 21. 
  12641.   An INVALID KEY condition exists. 
  12642.   The DELETE statement is not processed. 
  12643.  
  12644.  ---End of IBM Extension--- 
  12645.  
  12646.  
  12647. ΓòÉΓòÉΓòÉ 12.20. DISPLAY Statement ΓòÉΓòÉΓòÉ
  12648.  
  12649. The DISPLAY statement transfers the contents of each operand to the output 
  12650. device. The contents are displayed on the output device in the order, left to 
  12651. right, in which the operands are listed. 
  12652.  
  12653. The DISPLAY statement has four formats: 
  12654.  
  12655.   Format 1 - Data Transfer 
  12656.    -----IBM Extension----- 
  12657.   Format 2 - Local Data Area 
  12658.   Format 3 - Workstation I/O 
  12659.   Format 4 - Session I/O 
  12660.    ---End of IBM Extension--- 
  12661.  
  12662.  
  12663. ΓòÉΓòÉΓòÉ 12.20.1. Data Transfer ΓòÉΓòÉΓòÉ
  12664.  
  12665. ΓöîΓöÇΓöÇΓöÇ DISPLAY STATEMENT - FORMAT 1 - DATA TRANSFER ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12666. Γöé                                        Γöé
  12667. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                       Γöé
  12668. Γöé                  Γöé                       Γöé
  12669. Γöé >>ΓöÇΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇ> Γöé
  12670. Γöé         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ   Γöé
  12671. Γöé                    ΓööΓöÇUPONΓöÇΓöÿ  Γöé          (1)Γöé    Γöé
  12672. Γöé                         ΓööΓöÇenvironment-nameΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé
  12673. Γöé                                        Γöé
  12674. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                     Γöé
  12675. Γöé   Γöé             (2)Γöé                       Γöé
  12676. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇNOΓöÇΓöÇADVANCINGΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  12677. Γöé    ΓööΓöÇWITHΓöÇΓöÿ                                 Γöé
  12678. Γöé                                        Γöé
  12679. Γöé NOTES:                                    Γöé
  12680. Γöé (1)  IBM Extension                              Γöé
  12681. Γöé                                        Γöé
  12682. Γöé (2)  Syntax checked only                           Γöé
  12683. Γöé                                        Γöé
  12684. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12685.  
  12686. The DISPLAY statement transfers the data in the sending field to the output 
  12687. device. The size of the sending field is the total character count of all 
  12688. operands listed. If the hardware device is capable of receiving data of the 
  12689. same size as the data item being transferred, then the data item is 
  12690. transferred. If the hardware device is not capable of receiving data of the 
  12691. same size as the data item being transferred, then one of the following 
  12692. applies: 
  12693.  
  12694.   If the total character count is less than the device maximum logical record 
  12695.    size, the remaining rightmost characters are padded with spaces. 
  12696.  
  12697.   If the total character count exceeds the maximum, as many records are 
  12698.    written as are needed to display all operands. Any operand being printed or 
  12699.    displayed when the end of a record is reached is continued in the next 
  12700.    record. 
  12701.  
  12702.  After the last operand has been transferred to the output device, the device 
  12703.  is reset to the leftmost position of the next line of the device. 
  12704.  
  12705.  The logical record length depends on the device as follows: 
  12706.  
  12707.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12708.   Γöé                 Γöé MAXIMUM LOGICAL  Γöé
  12709.   Γöé   OUTPUT            Γöé RECORD SIZE    Γöé
  12710.   Γöé                 Γöé          Γöé
  12711.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  12712.   Γöé   Job log           Γöé 120 characters   Γöé
  12713.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  12714.   Γöé   Workstation         Γöé 58 characters   Γöé
  12715.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  12716.   Γöé   System operator's      Γöé 58 characters   Γöé
  12717.   Γöé   message queue        Γöé          Γöé
  12718.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12719.  
  12720.  When a program in a batch job processes a DISPLAY statement without the UPON 
  12721.  phrase, or with an UPON phrase associated with the REQUESTOR, the output is 
  12722.  sent to the job log in an informational message of severity 99. You can change 
  12723.  the severity of this message using the Change Message Description (CHGMSGD) CL 
  12724.  command. 
  12725.  
  12726.  For an interactive job that uses display device files, DISPLAY statements are 
  12727.  not normally used.  If you do use them, the following considerations apply. 
  12728.  
  12729.  When an interactive job processes a DISPLAY statement, the logical record 
  12730.  appears on the screen in the Program Messages display. 
  12731.  
  12732.  
  12733. ΓòÉΓòÉΓòÉ 12.20.2. Format 2 - Local Data Area ΓòÉΓòÉΓòÉ
  12734.  
  12735. -----IBM Extension----- 
  12736.  
  12737. This format is used to transfer data to the system-defined local data area 
  12738. created for a job. 
  12739.  
  12740. ΓöîΓöÇΓöÇΓöÇ DISPLAY STATEMENT - FORMAT 2 - LOCAL DATA AREA ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12741. Γöé                                        Γöé
  12742. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                       Γöé
  12743. Γöé                  Γöé                       Γöé
  12744. Γöé >>ΓöÇΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇUPONΓöÇΓöÇmnemonic-nameΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  12745. Γöé         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  12746. Γöé                                        Γöé
  12747. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                  Γöé
  12748. Γöé   Γöé               (1)  Γöé                    Γöé
  12749. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  12750. Γöé    ΓööΓöÇFORΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  12751. Γöé                                        Γöé
  12752. Γöé NOTE:                                     Γöé
  12753. Γöé (1)  Syntax checked only                           Γöé
  12754. Γöé                                        Γöé
  12755. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12756.  
  12757. The DISPLAY statement's literal operands, or the contents of the DISPLAY 
  12758. statement's identifier operands, are written to the system-defined local data 
  12759. area of the job containing the program that issues the DISPLAY.  The data is 
  12760. written to the local data area according to the rules of the MOVE statement for 
  12761. a group move, without the CORRESPONDING phrase, and without padding on the 
  12762. right with spaces. 
  12763.  
  12764. ---End of IBM Extension--- 
  12765.  
  12766.  
  12767. ΓòÉΓòÉΓòÉ 12.20.3. Format 3 - Extended DISPLAY Statement ΓòÉΓòÉΓòÉ
  12768.  
  12769. -----IBM Extension----- 
  12770.  
  12771. A DISPLAY statement is considered an extended DISPLAY statement if it has one 
  12772. of the following: 
  12773.  
  12774.   An AT phrase 
  12775.   An UPON CRT or UPON CRT-UNDER phrase 
  12776.   A MODE IS BLOCK phrase 
  12777.   A WITH phrase 
  12778.   No UPON phrase and a CONSOLE IS CRT specified in the SPECIAL-NAMES paragraph 
  12779.  
  12780.  A DISPLAY statement is considered a standard DISPLAY statement if it has one 
  12781.  of the following: 
  12782.  
  12783.   An UPON phrase (other than UPON CRT or UPON CRT-UNDER) 
  12784.   No UPON phrase and no CONSOLE IS CRT specified in the SPECIAL-NAMES 
  12785.    paragraph 
  12786.  
  12787.   ΓöîΓöÇΓöÇΓöÇ DISPLAY STATEMENT - FORMAT 3 - WORKSTATION I/O ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  12788.   Γöé                                        Γöé
  12789.   Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  12790.   Γöé                      Γöé                   Γöé
  12791.   Γöé >>ΓöÇΓöÇDISPLAYΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇ><                 Γöé
  12792.   Γöé        Γöé ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé                   Γöé
  12793.   Γöé        Γö£ΓöÇΓöñ line-column-phrase Γö£ΓöÇΓöñ                   Γöé
  12794.   Γöé        Γö£ΓöÇUPONΓöÇΓö¼ΓöÇCRTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö┤ΓöÇΓöñ                   Γöé
  12795.   Γöé        Γöé    ΓööΓöÇCRT-UNDERΓöÇΓöÿ   Γöé                   Γöé
  12796.   Γöé        Γö£ΓöÇMODEΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇBLOCKΓöÇΓöÇΓöÇΓöÇΓöñ                   Γöé
  12797.   Γöé        Γöé    ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ      Γöé                   Γöé
  12798.   Γöé        ΓööΓöÇΓöñ with-phrase Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  12799.   Γöé                                        Γöé
  12800.   Γöé LINE-COLUMN-PHRASE:                              Γöé
  12801.   Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  12802.   Γöé                               Γöé         Γöé
  12803.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇLINEΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ      Γöé
  12804.   Γöé   Γöé  ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ   Γö£ΓöÇCOLUMNΓöÇΓöñ  ΓööΓöÇNUMBERΓöÇΓöÿ  ΓööΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé        Γöé
  12805.   Γöé   Γöé        ΓööΓöÇCOLΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé        Γöé
  12806.   Γöé   ΓööΓöÇATΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  12807.   Γöé      ΓööΓöÇinteger-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  12808.   Γöé                                        Γöé
  12809.   Γöé WITH-PHRASE:                                 Γöé
  12810.   Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ          Γöé
  12811.   Γöé                              Γöé          Γöé
  12812.   Γöé Γö£ΓöÇΓöÇWITHΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇBELLΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γö┤ΓöÇΓöÇΓöñ         Γöé
  12813.   Γöé      Γöé ΓööΓöÇBEEPΓöÇΓöÿ                   Γöé           Γöé
  12814.   Γöé      Γö£ΓöÇBLINKΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12815.   Γöé      Γö£ΓöÇHIGHLIGHTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12816.   Γöé      Γö£ΓöÇREVERSE-VIDEOΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12817.   Γöé      Γö£ΓöÇUNDERLINEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12818.   Γöé      Γö£ΓöÇBLANKΓöÇΓö¼ΓöÇSCREENΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12819.   Γöé      Γöé    ΓööΓöÇLINEΓöÇΓöÇΓöÇΓöÿ               Γöé           Γöé
  12820.   Γöé      Γö£ΓöÇSIZEΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ           Γöé
  12821.   Γöé      Γöé    ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇinteger-3ΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé           Γöé
  12822.   Γöé      Γöé           (1)           Γöé           Γöé
  12823.   Γöé      Γö£ΓöÇΓöÇΓö¼ΓöÇFOREGROUND-COLORΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇinteger-4ΓöÇΓöñ           Γöé
  12824.   Γöé      Γöé  Γöé          (1)Γöé  ΓööΓöÇISΓöÇΓöÿ      Γöé           Γöé
  12825.   Γöé      Γöé  ΓööΓöÇFOREGROUND-COLOURΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé           Γöé
  12826.   Γöé      Γöé           (1)           Γöé           Γöé
  12827.   Γöé      ΓööΓöÇΓöÇΓö¼ΓöÇBACKGROUND-COLORΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇinteger-5ΓöÇΓöÿ           Γöé
  12828.   Γöé        Γöé          (1)Γöé  ΓööΓöÇISΓöÇΓöÿ                 Γöé
  12829.   Γöé        ΓööΓöÇBACKGROUND-COLOURΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  12830.   Γöé                                        Γöé
  12831.   Γöé NOTE:                                     Γöé
  12832.   Γöé (1)  Syntax checked only                           Γöé
  12833.   Γöé                                        Γöé
  12834.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  12835.  
  12836.  Part of this statement can be repeated to allow the display of several data 
  12837.  items. If the first identifier has no AT, LINE, or COLUMN phrase, it begins in 
  12838.  line 1, column 2. Each subsequent data item begins at the currently available 
  12839.  screen position following the previous data item. 
  12840.  
  12841.  If identifier-1 or literal-1 is not specified, neither the MODE IS BLOCK 
  12842.  phrase nor the WITH phrase is allowed. 
  12843.  
  12844.  When identifier-1 does not fit within the screen, then alphanumeric data is 
  12845.  truncated and numeric data is not put on the screen. 
  12846.  
  12847.  If identifier-1 is a group item and there is no MODE IS BLOCK phrase, those 
  12848.  elementary subordinate items that have names other than FILLER are displayed. 
  12849.  They are displayed simultaneously, and positioned on the screen in the order 
  12850.  that their descriptions appear in the DATA DIVISION, separated by the lengths 
  12851.  of the FILLER items in the group. For this purpose, the first position on a 
  12852.  line is regarded as immediately following the last position on the previous 
  12853.  line. When items are separated by FILLERs, the attribute bytes are included in 
  12854.  the FILLER length. Thus a FILLER of one or two bytes would contain both the 
  12855.  trailing and leading attributes of separate items. In the case of a one-byte 
  12856.  FILLER, the trailing and leading attributes would occupy the same byte. Since 
  12857.  data items are normally separated by one attribute byte, one-byte FILLERs are 
  12858.  not necessary. 
  12859.  
  12860.  If no identifier or literal is present, the DISPLAY operation changes the 
  12861.  screen position without actually displaying any data. 
  12862.  
  12863.  The phrases following the identifier or literal can be in any order. All 
  12864.  phrases specified apply to the previous identifier or literal, if one was 
  12865.  specified. The WITH and MODE phrases cannot be specified if an identifier or 
  12866.  literal was not previously specified. 
  12867.  
  12868.  Identifiers or literals in a DISPLAY statement follow one after another, 
  12869.  separated by one attribute byte, unless an AT, LINE, or COLUMN phrase is 
  12870.  specified. If no AT, LINE, or COLUMN phrase appears in the statement, the 
  12871.  first identifier or literal begins at line 1, column 2, followed immediately 
  12872.  by all other identifiers or literals. 
  12873.  
  12874.  ---End of IBM Extension--- 
  12875.  
  12876.  Related Information: 
  12877.  
  12878.   Special Considerations for Format 3 DISPLAY. 
  12879.  
  12880.  
  12881. ΓòÉΓòÉΓòÉ 12.20.4. AT Phrase ΓòÉΓòÉΓòÉ
  12882.  
  12883. -----IBM Extension----- 
  12884.  
  12885. The AT phrase indicates the absolute address on the screen at which the DISPLAY 
  12886. operation is to start. It does not indicate the starting position of the 
  12887. leading attribute. 
  12888.  
  12889. Related Information: 
  12890.  
  12891.   Line and Column Combinations 
  12892.  
  12893.  ---End of IBM Extension--- 
  12894.  
  12895.  
  12896. ΓòÉΓòÉΓòÉ 12.20.5. Line and Column Combinations ΓòÉΓòÉΓòÉ
  12897.  
  12898. -----IBM Extension----- 
  12899.  
  12900. Certain combinations of line and column numbers have special meaning: 
  12901.  
  12902.   Until the column comes within range, out-of-range column values are reduced 
  12903.    by the line length, and the line value is incremented. A column number, 
  12904.    then, can cause the line number to be incremented several times. 
  12905.  
  12906.   Out-of-range line values cause the screen to scroll up one line.  The effect 
  12907.    is the same as if the line number of the bottom line were specified.  The 
  12908.    screen is never scrolled up by more than one line, regardless of the line 
  12909.    specified. 
  12910.  
  12911.   If column and line numbers are both out of range, out-of-range columns are 
  12912.    handled first, followed by out-of-range lines (according to the preceding 
  12913.    rules). 
  12914.  
  12915.   If the line and column numbers given are both zero, the DISPLAY operation 
  12916.    starts at the position following the one at which the preceding DISPLAY 
  12917.    operation finished. Column 1 of each line is considered to follow the last 
  12918.    column of the previous line. 
  12919.  
  12920.   If the line number is zero, but the column number is not, the DISPLAY 
  12921.    operation starts at the specified column on the line following the one at 
  12922.    which the preceding DISPLAY operation finished. 
  12923.  
  12924.   If the column number is zero, but the line number is not, the DISPLAY 
  12925.    operation starts on the specified line at the column following the one at 
  12926.    which the preceding DISPLAY operation finished. 
  12927.  
  12928.  ---End of IBM Extension--- 
  12929.  
  12930.  
  12931. ΓòÉΓòÉΓòÉ 12.20.6. SIZE Phrase ΓòÉΓòÉΓòÉ
  12932.  
  12933. -----IBM Extension----- 
  12934.  
  12935. Specifies the current size of the data item on the screen. You can use this 
  12936. phrase with elementary data items only. 
  12937.  
  12938. The SIZE phrase has no effect if the size you specify is zero. In this case, 
  12939. the length of the field is used to display the data item. 
  12940.  
  12941. If you specify a size that is less than the size implied by the associated 
  12942. PICTURE clause, only the leftmost portion of the data item appears on the 
  12943. workstation display. 
  12944.  
  12945. When the size specified for a numeric or a numeric-edited data item is less 
  12946. than that implied by the PICTURE clause, truncation of the rightmost positions 
  12947. occurs when the value is displayed, or predisplayed in the ACCEPT operation. 
  12948. The data item is then updated following the rules for the MOVE operation. 
  12949.  
  12950. If you specify a SIZE literal whose value causes the field length to exceed the 
  12951. screen size, alphanumeric data will be truncated and numeric data will be 
  12952. ignored and not displayed. 
  12953.  
  12954. For justified items, only the rightmost portion appears when you specify a size 
  12955. that is smaller than the length of the item. 
  12956.  
  12957. If the size you specify is greater than the size implied by the PICTURE clause, 
  12958. the displayed version of the item is padded with spaces. The padding occurs on 
  12959. the right. 
  12960.  
  12961. ALL figurative constants are displayed as many times as necessary to reach the 
  12962. length you specify. If the display wraps around to a new line, the new line 
  12963. starts at the beginning of the constant. 
  12964.  
  12965. Related Information: 
  12966.  
  12967.   SIZE Phrase Example 
  12968.  
  12969.  ---End of IBM Extension--- 
  12970.  
  12971.  
  12972. ΓòÉΓòÉΓòÉ 12.20.7. SIZE Phrase Example ΓòÉΓòÉΓòÉ
  12973.  
  12974. -----IBM Extension----- 
  12975.  
  12976. The following is an example of displaying a figurative constant where the size 
  12977. specified is greater than the figurative constant and wraps around to a new 
  12978. line: 
  12979.  
  12980.       DISPLAY ALL 'ABCD' AT 0270 WITH SIZE 15.
  12981. This constant will be displayed on the screen starting with line 2, column 70: 
  12982.  
  12983.                  0000000001                677777777778
  12984.                  1234567890................901234567890
  12985. Line 1
  12986. Line 2                                      ABCDABCDABC
  12987. Line 3           ABCD
  12988.  
  12989. Notice the differences between the following examples: 
  12990.  
  12991.  
  12992. Statement 1 DISPLAY 'WORKSTATION' AT 0275 WITH SIZE 10
  12993. Statement 2 DISPLAY ALL 'WORKSTATION' AT 0275 WITH SIZE 10
  12994.  
  12995.                  0000000001                677777777778
  12996.                  1234567890................901234567890
  12997. Statement 1                                      WORKST
  12998.                  ATIO
  12999.  
  13000. Statement 2                                      WORKST
  13001.                  WORK
  13002.  
  13003. ---End of IBM Extension--- 
  13004.  
  13005.  
  13006. ΓòÉΓòÉΓòÉ 12.20.8. Format 3 Considerations ΓòÉΓòÉΓòÉ
  13007.  
  13008. -----IBM Extension----- 
  13009.  
  13010. A data item can contain a table whether or not MODE IS BLOCK has been 
  13011. specified. Fixed-length and variable-length tables are treated as group items 
  13012. (MODE IS BLOCK is not specified) that are repeated from the first occurrence to 
  13013. the last occurrence of the table. 
  13014.  
  13015. Some extended DISPLAY statement considerations also apply to the extended 
  13016. ACCEPT statement. 
  13017.  
  13018. The ILE COBOL/400 extended DISPLAY statement is similar to the IBM COBOL/2 
  13019. DISPLAY statement (Format 2). 
  13020.  
  13021. ---End of IBM Extension--- 
  13022.  
  13023.  
  13024. ΓòÉΓòÉΓòÉ 12.20.9. Format 4 - Session I/O ΓòÉΓòÉΓòÉ
  13025.  
  13026. -----IBM Extension----- 
  13027.  
  13028. This format is used to transfer data to the ILE common session manager. 
  13029.  
  13030. ΓöîΓöÇΓöÇΓöÇ DISPLAY STATEMENT - FORMAT 4 - SESSION I/O ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13031. Γöé                                        Γöé
  13032. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                       Γöé
  13033. Γöé                  Γöé                       Γöé
  13034. Γöé >>ΓöÇΓöÇDISPLAYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13035. Γöé         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇUPONΓöÇΓöÇDISPLAYΓöÇΓöÿ             Γöé
  13036. Γöé                                        Γöé
  13037. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                      Γöé
  13038. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇNOΓöÇΓöÇADVANCINGΓöÇΓöÿ                        Γöé
  13039. Γöé    ΓööΓöÇWITHΓöÇΓöÿ                                 Γöé
  13040. Γöé                                        Γöé
  13041. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13042.  
  13043. This format is only applicable when the UPON DISPLAY phrase is specified or the 
  13044. CONSOLE IS DISPLAY clause is specified in the SPECIAL-NAMES paragraph. 
  13045.  
  13046. The DISPLAY statement's literal operands or the contents of the DISPLAY 
  13047. statement's identifier operands, are written to the ILE common session manager. 
  13048. The data is written to the session manager according to the rules outlined in 
  13049. format1 - Data Transfer (refer to the description of identifier-1 and literal-1 
  13050. under Data Transfer). If the contents of identifier-1 or literal-1 span more 
  13051. than one line, writing of data continues at the first position of the next line 
  13052. of the ILE  common session manager. 
  13053.  
  13054. If the WITH NO ADVANCING phrase is not specified a new line character is 
  13055. written to the session manager; if it is specified, the session manager will be 
  13056. positioned immediately following the last character of the last operand 
  13057. displayed. 
  13058.  
  13059. ---End of IBM Extension--- 
  13060.  
  13061.  
  13062. ΓòÉΓòÉΓòÉ 12.21. DIVIDE Statement ΓòÉΓòÉΓòÉ
  13063.  
  13064. The DIVIDE statement divides one numeric data item into or by one or more 
  13065. others, and stores the result in the quotient and remainder. 
  13066.  
  13067. The DIVIDE statement has five formats: 
  13068.  
  13069.   Format 1 - DIVIDE INTO 
  13070.   Format 2 - DIVIDE INTO GIVING 
  13071.   Format 3 - DIVIDE BY GIVING 
  13072.   Format 4 - DIVIDE INTO GIVING REMAINDER 
  13073.   Format 5 - DIVIDE BY GIVING REMAINDER 
  13074.  
  13075.  
  13076. ΓòÉΓòÉΓòÉ 12.21.1. DIVIDE Statement - Format 1 ΓòÉΓòÉΓòÉ
  13077.  
  13078. ΓöîΓöÇΓöÇΓöÇ DIVIDE STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13079. Γöé                                        Γöé
  13080. Γöé                   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  13081. Γöé                                 Γöé       Γöé
  13082. Γöé >>ΓöÇΓöÇDIVIDEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇINTOΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13083. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ             ΓööΓöÇROUNDEDΓöÇΓöÿ        Γöé
  13084. Γöé                                        Γöé
  13085. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13086. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  13087. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  13088. Γöé                                        Γöé
  13089. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13090. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  13091. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13092. Γöé                                        Γöé
  13093. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  13094. Γöé   ΓööΓöÇEND-DIVIDEΓöÇΓöÿ                               Γöé
  13095. Γöé                                        Γöé
  13096. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13097.  
  13098. In Format 1, the value of identifier-1 or literal-1 is divided into the value 
  13099. of identifier-2; the quotient is then placed in identifier-2. This process is 
  13100. repeated for each successive occurrence of identifier-2. 
  13101.  
  13102.  
  13103. ΓòÉΓòÉΓòÉ 12.21.2. DIVIDE Statement - Format 2 ΓòÉΓòÉΓòÉ
  13104.  
  13105. ΓöîΓöÇΓöÇΓöÇ DIVIDE STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13106. Γöé                                        Γöé
  13107. Γöé >>ΓöÇΓöÇDIVIDEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇINTOΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13108. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ     ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  13109. Γöé                                        Γöé
  13110. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  13111. Γöé                     Γöé                   Γöé
  13112. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13113. Γöé               ΓööΓöÇROUNDEDΓöÇΓöÿ                    Γöé
  13114. Γöé                                        Γöé
  13115. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13116. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  13117. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  13118. Γöé                                        Γöé
  13119. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13120. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  13121. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13122. Γöé                                        Γöé
  13123. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  13124. Γöé   ΓööΓöÇEND-DIVIDEΓöÇΓöÿ                               Γöé
  13125. Γöé                                        Γöé
  13126. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13127.  
  13128. In Format 2, the value of identifier-1 or literal-1 is divided into the value 
  13129. of identifier-2 or literal-2. The value of the quotient is stored in each data 
  13130. item referenced by identifier-3. 
  13131.  
  13132.  
  13133. ΓòÉΓòÉΓòÉ 12.21.3. DIVIDE Statement - Format 3 ΓòÉΓòÉΓòÉ
  13134.  
  13135. ΓöîΓöÇΓöÇΓöÇ DIVIDE STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13136. Γöé                                        Γöé
  13137. Γöé >>ΓöÇΓöÇDIVIDEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13138. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ              Γöé
  13139. Γöé                                        Γöé
  13140. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  13141. Γöé                     Γöé                   Γöé
  13142. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13143. Γöé               ΓööΓöÇROUNDEDΓöÇΓöÿ                    Γöé
  13144. Γöé                                        Γöé
  13145. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13146. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  13147. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  13148. Γöé                                        Γöé
  13149. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13150. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  13151. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13152. Γöé                                        Γöé
  13153. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  13154. Γöé   ΓööΓöÇEND-DIVIDEΓöÇΓöÿ                               Γöé
  13155. Γöé                                        Γöé
  13156. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13157.  
  13158. In Format 3, the value of identifier-1 or literal-1 is divided by the value of 
  13159. identifier-2 or literal-2. This quotient is stored in each data item referenced 
  13160. by identifier-3. 
  13161.  
  13162.  
  13163. ΓòÉΓòÉΓòÉ 12.21.4. DIVIDE Statement - Format 4 ΓòÉΓòÉΓòÉ
  13164.  
  13165. ΓöîΓöÇΓöÇΓöÇ DIVIDE STATEMENT - FORMAT 4 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13166. Γöé                                        Γöé
  13167. Γöé >>ΓöÇΓöÇDIVIDEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇINTOΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13168. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ     ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  13169. Γöé                                        Γöé
  13170. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇREMAINDERΓöÇΓöÇidentifier-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13171. Γöé              ΓööΓöÇROUNDEDΓöÇΓöÿ                     Γöé
  13172. Γöé                                        Γöé
  13173. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13174. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  13175. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  13176. Γöé                                        Γöé
  13177. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13178. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  13179. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13180. Γöé                                        Γöé
  13181. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  13182. Γöé   ΓööΓöÇEND-DIVIDEΓöÇΓöÿ                               Γöé
  13183. Γöé                                        Γöé
  13184. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13185.  
  13186. In Format 4, the value of identifier-1 or literal-1 is divided into 
  13187. identifier-2 or literal-2. This quotient is stored in identifier-3, and the 
  13188. value of the remainder is stored in identifier-4. 
  13189.  
  13190.  
  13191. ΓòÉΓòÉΓòÉ 12.21.5. DIVIDE Statement - Format 5 ΓòÉΓòÉΓòÉ
  13192.  
  13193. ΓöîΓöÇΓöÇΓöÇ DIVIDE STATEMENT - FORMAT 5 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13194. Γöé                                        Γöé
  13195. Γöé >>ΓöÇΓöÇDIVIDEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13196. Γöé       ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ              Γöé
  13197. Γöé                                        Γöé
  13198. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇREMAINDERΓöÇΓöÇidentifier-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13199. Γöé              ΓööΓöÇROUNDEDΓöÇΓöÿ                     Γöé
  13200. Γöé                                        Γöé
  13201. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13202. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  13203. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  13204. Γöé                                        Γöé
  13205. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13206. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  13207. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13208. Γöé                                        Γöé
  13209. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  13210. Γöé   ΓööΓöÇEND-DIVIDEΓöÇΓöÿ                               Γöé
  13211. Γöé                                        Γöé
  13212. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13213.  
  13214. In Format 5, the value of identifier-1 or literal-1 is divided by identifier-2 
  13215. or literal-2. This quotient is stored in identifier-3, and the value of the 
  13216. remainder is stored in identifier-4. 
  13217.  
  13218.  
  13219. ΓòÉΓòÉΓòÉ 12.22. DROP Statement ΓòÉΓòÉΓòÉ
  13220.  
  13221. -----IBM Extension----- 
  13222.  
  13223. The DROP statement releases a program device that has been acquired by a 
  13224. TRANSACTION file. 
  13225.  
  13226. ΓöîΓöÇΓöÇΓöÇ DROP STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13227. Γöé                                        Γöé
  13228. Γöé >>ΓöÇΓöÇDROPΓöÇΓöÇΓö¼ΓöÇidentifierΓöÇΓö¼ΓöÇΓöÇFROMΓöÇΓöÇfile-nameΓöÇΓöÇ><                 Γöé
  13229. Γöé      ΓööΓöÇliteralΓöÇΓöÇΓöÇΓöÇΓöÿ                           Γöé
  13230. Γöé                                        Γöé
  13231. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13232.  
  13233. Program devices specified in a DROP statement must have been acquired by the 
  13234. TRANSACTION file, either through an explicit ACQUIRE or through an implicit 
  13235. ACQUIRE at OPEN time. 
  13236.  
  13237. After successful execution of the DROP statement, the program device is no 
  13238. longer available for input or output operations through the TRANSACTION file. 
  13239. The device may be reacquired if necessary.  The contents of the record area 
  13240. associated with a released program device are no longer available, even if the 
  13241. device is reacquired. 
  13242.  
  13243. If the DROP statement is unsuccessful, any applicable USE AFTER EXCEPTION/ERROR 
  13244. procedures are executed. 
  13245.  
  13246. The DROP statement can also be used as an aid in recovering from I-O errors. 
  13247.  
  13248. ---End of IBM Extension--- 
  13249.  
  13250.  
  13251. ΓòÉΓòÉΓòÉ 12.23. ENTER Statement ΓòÉΓòÉΓòÉ
  13252.  
  13253. The ENTER statement allows the use of more than one source language in the same 
  13254. source program. It is syntax checked only. 
  13255.  
  13256. ΓöîΓöÇΓöÇΓöÇ ENTER STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13257. Γöé                                        Γöé
  13258. Γöé      (1)                                 Γöé
  13259. Γöé >>ΓöÇΓöÇENTERΓöÇΓöÇΓöÇΓöÇΓöÇlanguage-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><             Γöé
  13260. Γöé                ΓööΓöÇroutine-nameΓöÇΓöÿ                 Γöé
  13261. Γöé                                        Γöé
  13262. Γöé NOTE:                                     Γöé
  13263. Γöé (1)  Syntax-checked only                           Γöé
  13264. Γöé                                        Γöé
  13265. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13266.  
  13267.  
  13268. ΓòÉΓòÉΓòÉ 12.24. EVALUATE Statement ΓòÉΓòÉΓòÉ
  13269.  
  13270. The EVALUATE statement provides a shorthand notation for a series of nested IF 
  13271. statements. It can evaluate multiple conditions. That is, the IF statements can 
  13272. be made up of compound conditions. The subsequent action of the object program 
  13273. depends on the results of these evaluations. 
  13274.  
  13275. ΓöîΓöÇΓöÇΓöÇ EVALUATE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13276. Γöé                                        Γöé
  13277. Γöé >>ΓöÇΓöÇEVALUATEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13278. Γöé        Γö£ΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöñ  Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé        Γöé
  13279. Γöé        Γöé        Γöé  Γöé              Γöé Γöé        Γöé
  13280. Γöé        Γö£ΓöÇexpression-1ΓöÇΓöñ  ΓööΓöÇΓöÇΓöÇALSOΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ        Γöé
  13281. Γöé        Γö£ΓöÇTRUEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ       Γö£ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  13282. Γöé        ΓööΓöÇFALSEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γö£ΓöÇexpression-2ΓöÇΓöñ          Γöé
  13283. Γöé                      Γö£ΓöÇTRUEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  13284. Γöé                      ΓööΓöÇFALSEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  13285. Γöé                                        Γöé
  13286. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  13287. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ           Γöé    Γöé
  13288. Γöé                          Γöé           Γöé    Γöé
  13289. Γöé >ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ WHEN phrase Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇimperative-stmt-1ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13290. Γöé             Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                Γöé
  13291. Γöé             Γöé          Γöé Γöé                Γöé
  13292. Γöé             ΓööΓöÇΓöÇΓöÇΓöñ ALSO phrase Γö£ΓöÇΓö┤ΓöÇΓöÿ                Γöé
  13293. Γöé                                        Γöé
  13294. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  13295. Γöé   ΓööΓöÇWHEN OTHERΓöÇΓöÇimperative-stmt-2ΓöÇΓöÿ  ΓööΓöÇEND-EVALUATEΓöÇΓöÿ            Γöé
  13296. Γöé                                        Γöé
  13297. Γöé WHEN PHRASE:                                 Γöé
  13298. Γöé Γö£ΓöÇΓöÇWHENΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13299. Γöé                                        Γöé
  13300. Γöé >ΓöÇΓöÇΓö¼ΓöÇANYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ    Γöé
  13301. Γöé   Γö£ΓöÇcondition-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13302. Γöé   Γö£ΓöÇTRUEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13303. Γöé   Γö£ΓöÇFALSEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13304. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ     Γöé
  13305. Γöé    ΓööΓöÇNOTΓöÇΓöÇΓöÿ  Γö£ΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöñ  ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ      Γöé
  13306. Γöé         ΓööΓöÇarith-expr-1ΓöÇΓöÿ   ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇliteral-4ΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  13307. Γöé                         ΓööΓöÇarith-expr-2ΓöÇΓöÿ       Γöé
  13308. Γöé                                        Γöé
  13309. Γöé ALSO PHRASE:                                 Γöé
  13310. Γöé Γö£ΓöÇΓöÇALSOΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13311. Γöé                                        Γöé
  13312. Γöé >ΓöÇΓöÇΓö¼ΓöÇANYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ    Γöé
  13313. Γöé   Γö£ΓöÇcondition-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13314. Γöé   Γö£ΓöÇTRUEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13315. Γöé   Γö£ΓöÇFALSEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ     Γöé
  13316. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ     Γöé
  13317. Γöé    ΓööΓöÇNOTΓöÇΓöÇΓöÿ  Γö£ΓöÇliteral-5ΓöÇΓöÇΓöÇΓöÇΓöñ  ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-6ΓöÇΓö¼ΓöÇΓöÿ      Γöé
  13318. Γöé         ΓööΓöÇarith-expr-3ΓöÇΓöÿ   ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇliteral-6ΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  13319. Γöé                         ΓööΓöÇarith-expr-4ΓöÇΓöÿ       Γöé
  13320. Γöé                                        Γöé
  13321. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13322.  
  13323. Related Information: 
  13324.  
  13325.   Simple Coding Example 
  13326.   Complex Coding Example 
  13327.   Interpreting Selection Subject (operands before the WHEN statement) and 
  13328.    Selection Objects (operands in the WHEN statement) 
  13329.   Comparing Selection Subjects and Selection Objects 
  13330.   Executing the EVALUATE Statement 
  13331.  
  13332.  
  13333. ΓòÉΓòÉΓòÉ 12.24.1. Simple Example of the EVALUATE Statement: ΓòÉΓòÉΓòÉ
  13334.  
  13335.  
  13336.           EVALUATE  MENU-INPUT
  13337.               WHEN "0"
  13338.                   PERFORM INIT-PROC
  13339.               WHEN "1" THRU "9"
  13340.                   PERFORM PROCESS-PROC
  13341.               WHEN "R"
  13342.                   PERFORM READ-PARMS
  13343.               WHEN "X"
  13344.                   PERFORM CLEANUP-PROC
  13345.               WHEN OTHER
  13346.                   PERFORM ERROR-PROC
  13347.           END-EVALUATE.
  13348.  
  13349. The Equivalent IF Statement: 
  13350.  
  13351.  
  13352.           IF (MENU-INPUT = "0") THEN
  13353.              PERFORM INIT-PROC
  13354.           ELSE
  13355.              IF (MENU-INPUT >= "1") AND (MENU-INPUT =< "9") THEN
  13356.                 PERFORM PROCESS-PROC
  13357.              ELSE
  13358.                 IF (MENU-INPUT = "R") THEN
  13359.                    PERFORM READ-PARMS
  13360.                 ELSE
  13361.                    IF (MENU-INPUT = "X") THEN
  13362.                       PERFORM CLEANUP-PROC
  13363.                    ELSE
  13364.                       PERFORM ERROR-PROC
  13365.                    END-IF
  13366.                 END-IF
  13367.              END-IF
  13368.           END-IF.
  13369.  
  13370.  
  13371. ΓòÉΓòÉΓòÉ 12.24.2. Complex Example of the EVALUATE Statement: ΓòÉΓòÉΓòÉ
  13372.  
  13373.  
  13374.           EVALUATE  A = B  ALSO  C > D  ALSO  TRUE
  13375.               WHEN  TRUE   ALSO  TRUE   ALSO  E = F + 15
  13376.                   imp-stat-1
  13377.               WHEN  TRUE   ALSO  TRUE   ALSO  E > 12
  13378.                   imp-stat-2
  13379.               WHEN  TRUE   ALSO  FALSE  ALSO  ANY
  13380.                   imp-stat-3
  13381.               WHEN  FALSE  ALSO  TRUE   ALSO  ANY
  13382.                   imp-stat-4
  13383.               WHEN  FALSE  ALSO  FALSE  ALSO  ANY
  13384.                   imp-stat-5
  13385.           END-EVALUATE.
  13386.  
  13387. The Equivalent IF Statement: 
  13388.  
  13389.  
  13390.           IF A = B THEN
  13391.               IF C > D THEN
  13392.                   IF E = F + 15 THEN
  13393.                       imp-stat-1
  13394.                   ELSE
  13395.                       IF E > 12 THEN
  13396.                           imp-stat-2
  13397.                       END-IF
  13398.                   END-IF
  13399.               ELSE
  13400.                   imp-stat-3
  13401.               END-IF
  13402.           ELSE
  13403.               IF C > D THEN
  13404.                   imp-stat-4
  13405.               ELSE
  13406.                   imp-stat-5
  13407.               END-IF
  13408.           END-IF.
  13409.  
  13410.  
  13411. ΓòÉΓòÉΓòÉ 12.24.3. Interpreting Selection Subjects and Selection Objects ΓòÉΓòÉΓòÉ
  13412.  
  13413.  Operands before the WHEN phrase 
  13414.  
  13415.      Individually, they are called selection subjects. 
  13416.      Collectively, they are called a set of selection subjects. 
  13417.  
  13418.  Operands in the WHEN phrase 
  13419.  
  13420.      Individually, they are called selection objects. 
  13421.      Collectively, they are called a set of selection objects. 
  13422.  
  13423.  The number of selection objects within each set of selection objects must be 
  13424.  equal to the number of selection subjects. 
  13425.  
  13426.  Each selection object within a set of selection objects must correspond to the 
  13427.  selection subject having the same ordinal position within the set of selection 
  13428.  subjects, according to the following rules: 
  13429.  
  13430.   Identifiers, literals, or arithmetic expressions appearing within a 
  13431.    selection object must be valid operands for comparison to the corresponding 
  13432.    operand in the set of selection subjects. 
  13433.  
  13434.   Condition-1, condition-2, or the word TRUE or FALSE appearing as a selection 
  13435.    object must correspond to a conditional expression or the word TRUE or FALSE 
  13436.    in the set of selection subjects. 
  13437.  
  13438.   Condition-1, and condition-2 may be any form of a conditional expression. 
  13439.  
  13440.   The word ANY may correspond to a selection subject of any type. 
  13441.  
  13442.   Conditional expressions may be simple or complex conditions. 
  13443.  
  13444.    -----IBM Extension----- 
  13445.  
  13446.   Identifiers can reference items whose usage is implicitly or explicitly 
  13447.    defined as POINTER or PROCEDURE-POINTER. 
  13448.  
  13449.    ---End of IBM Extension--- 
  13450.  
  13451.  
  13452. ΓòÉΓòÉΓòÉ 12.24.4. Comparing Selection Subjects and Objects ΓòÉΓòÉΓòÉ
  13453.  
  13454. The execution of the EVALUATE statement then proceeds as if the values assigned 
  13455. to the selection subjects and selection objects were compared to determine 
  13456. whether any WHEN phrase satisfies the set of selection subjects. This 
  13457. comparison proceeds as follows: 
  13458.  
  13459.   1. Each selection object within the set of selection objects for the first 
  13460.      WHEN phrase is compared to the selection subject having the same ordinal 
  13461.      position within the set of selection subjects. One of the following 
  13462.      conditions must be satisfied if the comparison is to be satisfied: 
  13463.  
  13464.      a) If the items being compared are assigned numeric or nonnumeric values, 
  13465.         or a range of numeric or nonnumeric values, the comparison is satisfied 
  13466.         if the value, or one value in the range of values, assigned to the 
  13467.         selection object is equal to the value assigned to the selection 
  13468.         subject, according to the rules for comparison. 
  13469.  
  13470.      b) If the items being compared are assigned truth values, the comparison 
  13471.         is satisfied if the items are assigned identical truth values. 
  13472.  
  13473.      c) If the selection object being compared is specified by the word ANY, 
  13474.         the comparison is always satisfied, regardless of the value of the 
  13475.         selection subject. 
  13476.  
  13477.   2. If the above comparison is satisfied for every selection object within the 
  13478.      set of selection objects being compared, the WHEN phrase containing that 
  13479.      set of selection objects is selected as the one satisfying the set of 
  13480.      selection subjects. 
  13481.  
  13482.   3. If the above comparison is not satisfied for every selection object within 
  13483.      the set of selection objects being compared, that set of selection objects 
  13484.      does not satisfy the set of selection subjects. 
  13485.  
  13486.   4. This procedure is repeated for subsequent sets of selection objects in the 
  13487.      order of their appearance in the source program, until either a WHEN 
  13488.      phrase satisfying the set of selection subjects is selected or until all 
  13489.      sets of selection objects are exhausted. 
  13490.  
  13491.  
  13492. ΓòÉΓòÉΓòÉ 12.24.5. Executing the EVALUATE Statement ΓòÉΓòÉΓòÉ
  13493.  
  13494. After the comparison operation is completed, execution of the EVALUATE 
  13495. statement proceeds as follows: 
  13496.  
  13497.   If a WHEN phrase is selected, execution continues with the first 
  13498.    imperative-statement-1 following the selected WHEN phrase. Note that 
  13499.    multiple WHEN statements are allowed for a single imperative-statement-1. 
  13500.  
  13501.   If no WHEN phrase is selected and a WHEN OTHER phrase is specified, 
  13502.    execution continues with imperative-statement-2. 
  13503.  
  13504.   If no WHEN phrase is selected and no WHEN OTHER phrase is specified, 
  13505.    execution continues with the next executable statement following the scope 
  13506.    delimiter. 
  13507.  
  13508.   The scope of execution of the EVALUATE statement is terminated when 
  13509.    execution reaches the end of the scope of the selected WHEN phrase or WHEN 
  13510.    OTHER phrase, or when no WHEN phrase is selected and no WHEN OTHER phrase is 
  13511.    specified. 
  13512.  
  13513.  
  13514. ΓòÉΓòÉΓòÉ 12.25. EXIT Statement ΓòÉΓòÉΓòÉ
  13515.  
  13516. The EXIT statement provides a common end point for a series of paragraphs. 
  13517.  
  13518. ΓöîΓöÇΓöÇΓöÇ EXIT STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13519. Γöé                                        Γöé
  13520. Γöé >>ΓöÇΓöÇEXITΓöÇΓöÇ><                                 Γöé
  13521. Γöé                                        Γöé
  13522. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13523.  
  13524. The EXIT statement assigns a name to a given point in a program. The EXIT 
  13525. statement has no other effect on the compilation or execution of the program. 
  13526. The EXIT statement must be preceded by a paragraph-name and must appear in a 
  13527. sentence by itself. This sentence must be the only sentence in the paragraph. 
  13528.  
  13529. The EXIT statement is useful for documenting the end point in a series of 
  13530. paragraphs. If an EXIT paragraph is written as the last paragraph in a 
  13531. declarative procedure or a series of performed procedures, it identifies the 
  13532. point to which control is transferred: 
  13533.  
  13534.   When control reaches an EXIT paragraph that is the end of a range of 
  13535.    procedures governed by an active PERFORM or USE statement, control is 
  13536.    transferred in accordance with the rules for that PERFORM or USE statement. 
  13537.  
  13538.   When control reaches an EXIT paragraph that is not the end of a range of 
  13539.    procedures governed by an active PERFORM or USE statement, control passes 
  13540.    through the EXIT statement to the first statement of the next paragraph. 
  13541.  
  13542.  Without an EXIT statement, the end of the sequence is difficult to determine, 
  13543.  unless you know the logic of the program. 
  13544.  
  13545.  
  13546. ΓòÉΓòÉΓòÉ 12.26. EXIT PROGRAM Statement ΓòÉΓòÉΓòÉ
  13547.  
  13548. The EXIT PROGRAM statement specifies the end of a called program and returns 
  13549. control to the calling program. It must not be used in the range of a global 
  13550. declarative unless it is in a different program called by the statement in the 
  13551. range of the global declarative. 
  13552.  
  13553. ΓöîΓöÇΓöÇΓöÇ EXIT PROGRAM STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13554. Γöé                                        Γöé
  13555. Γöé >>ΓöÇΓöÇEXIT PROGRAMΓöÇΓöÇ><                             Γöé
  13556. Γöé                                        Γöé
  13557. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13558.  
  13559. If control reaches an EXIT PROGRAM statement in a program that does not possess 
  13560. the INITIAL attribute while operating under the control of a calling program, 
  13561. control returns to the CALL statement of the calling program. 
  13562.  
  13563. The program state of the calling program is identical to that which existed at 
  13564. the time it executed the CALL statement except that the contents of data items 
  13565. and the contents of the data files shared between the two programs may have 
  13566. been changed. The program state of the called program is not altered except 
  13567. that the ends of the ranges of all PERFORM statements executed by that called 
  13568. program are considered to have been reached. 
  13569.  
  13570. The execution of an EXIT PROGRAM statement in a called program that possesses 
  13571. the INITIAL attribute performs an implicit CANCEL of the referenced program. 
  13572.  
  13573. If control reaches an EXIT PROGRAM statement in the main program, control 
  13574. passes through the exit point to the next executable statement. 
  13575.  
  13576. The EXIT PROGRAM statement should appear as the last statement in a series of 
  13577. imperative statements within a sentence. 
  13578.  
  13579. When there is no next executable statement in a called program, an implicit 
  13580. EXIT PROGRAM statement is assumed, and executed. 
  13581.  
  13582. The RETURN-CODE special register can be used to pass return code information 
  13583. from a program to its caller. See RETURN-CODE Special Register for further 
  13584. information. 
  13585.  
  13586.  
  13587. ΓòÉΓòÉΓòÉ 12.27. GOBACK Statement ΓòÉΓòÉΓòÉ
  13588.  
  13589. -----IBM Extension----- 
  13590.  
  13591. The GOBACK statement functions like the EXIT PROGRAM statement when it is coded 
  13592. as part of a program that is a subprogram in a COBOL run unit, and like the 
  13593. STOP RUN statement when coded in a program that is a main program in a COBOL 
  13594. run unit. 
  13595.  
  13596. The GOBACK statement specifies the logical end of a called program. 
  13597.  
  13598. ΓöîΓöÇΓöÇΓöÇ GOBACK STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13599. Γöé                                        Γöé
  13600. Γöé >>ΓöÇΓöÇGOBACKΓöÇΓöÇ><                                Γöé
  13601. Γöé                                        Γöé
  13602. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13603.  
  13604. A GOBACK statement should appear as the only statement, or as the last of a 
  13605. series of imperative statements, in a sentence because statements following the 
  13606. GOBACK statement are not executed. 
  13607.  
  13608. If control reaches a GOBACK statement while a CALL statement is active, control 
  13609. returns to the point in the calling program immediately following the CALL 
  13610. statement, as in the EXIT PROGRAM statement. 
  13611.  
  13612. The RETURN-CODE special register can be used to pass return code information 
  13613. before executing a GOBACK statement. See RETURN-CODE Special Register. 
  13614.  
  13615. ---End of IBM Extension--- 
  13616.  
  13617.  
  13618. ΓòÉΓòÉΓòÉ 12.28. GO TO Statement ΓòÉΓòÉΓòÉ
  13619.  
  13620. The GO TO statement transfers control from one part of the Procedure Division 
  13621. to another. 
  13622.  
  13623. The GOTO statement has three formats: 
  13624.  
  13625.   Format 1 - Unconditional 
  13626.   Format 2 - Conditional 
  13627.   Format 3 - Altered 
  13628.  
  13629.  If procedure-name or procedure-name-1 are within a declarative procedure, 
  13630.  neither can reference another declarative procedure or any nondeclarative 
  13631.  procedure. In the nondeclarative portion of the program, there must be no 
  13632.  reference to procedure-names that appear in an EXCEPTION/ERROR declarative 
  13633.  procedure, except that PERFORM statements may refer to an EXCEPTION/ERROR 
  13634.  procedure or procedures associated with it. 
  13635.  
  13636.  
  13637. ΓòÉΓòÉΓòÉ 12.28.1. Unconditional GO TO ΓòÉΓòÉΓòÉ
  13638.  
  13639. An unconditional GO TO statement transfers control to the first statement in 
  13640. the paragraph or section named in procedure-name, unless the GO TO statement 
  13641. has been modified by an ALTER statement. (See ALTER Statement.) 
  13642.  
  13643. ΓöîΓöÇΓöÇΓöÇ GO TO STATEMENT - FORMAT 1 - UNCONDITIONAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13644. Γöé                                        Γöé
  13645. Γöé >>ΓöÇΓöÇGOΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇprocedure-nameΓöÇΓöÇ><                      Γöé
  13646. Γöé     ΓööΓöÇTOΓöÇΓöÿ                                Γöé
  13647. Γöé                                        Γöé
  13648. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13649.  
  13650. An unconditional GO TO statement, when it appears in a sequence of imperative 
  13651. statements, must be the last statement in the sequence. 
  13652.  
  13653. When a paragraph is referred to by an ALTER statement, the paragraph must 
  13654. consist of a paragraph-name followed by an unconditional or altered GO TO 
  13655. statement. 
  13656.  
  13657.  
  13658. ΓòÉΓòÉΓòÉ 12.28.2. Conditional GO TO ΓòÉΓòÉΓòÉ
  13659.  
  13660. The conditional GO TO statement transfers control to one of a series of 
  13661. procedures, depending on the value of the data item referenced by the 
  13662. identifier. 
  13663.  
  13664. ΓöîΓöÇΓöÇΓöÇ GO TO STATEMENT - FORMAT 2 - CONDITIONAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13665. Γöé                                        Γöé
  13666. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                     Γöé
  13667. Γöé                   Γöé                     Γöé
  13668. Γöé >>ΓöÇΓöÇGOΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇprocedure-name-1ΓöÇΓö┤ΓöÇΓöÇDEPENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifierΓöÇΓöÇ><    Γöé
  13669. Γöé     ΓööΓöÇTOΓöÇΓöÿ                  ΓööΓöÇONΓöÇΓöÿ            Γöé
  13670. Γöé                                        Γöé
  13671. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13672.  
  13673.  
  13674. ΓòÉΓòÉΓòÉ 12.28.3. Altered GO TO ΓòÉΓòÉΓòÉ
  13675.  
  13676. The altered GO TO statement transfers control to the first statement of the 
  13677. paragraph named in the ALTER statement. 
  13678.  
  13679. An ALTER statement referring to the paragraph containing this GO TO statement 
  13680. must have been executed before this GO TO statement is executed. 
  13681.  
  13682. ΓöîΓöÇΓöÇΓöÇ GO TO STATEMENT - FORMAT 3 - ALTERED ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13683. Γöé                                        Γöé
  13684. Γöé >>ΓöÇΓöÇGOΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                             Γöé
  13685. Γöé     ΓööΓöÇTOΓöÇΓöÿ                                Γöé
  13686. Γöé                                        Γöé
  13687. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13688.  
  13689. When an ALTER statement refers to a paragraph, the paragraph may consist only 
  13690. of the paragraph-name followed by an unconditional or altered GO TO statement. 
  13691.  
  13692.  
  13693. ΓòÉΓòÉΓòÉ 12.29. IF Statement ΓòÉΓòÉΓòÉ
  13694.  
  13695. The IF statement evaluates a condition and provides for alternative actions in 
  13696. the object program, depending on the evaluation. 
  13697.  
  13698. ΓöîΓöÇΓöÇΓöÇ IF STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13699. Γöé                                        Γöé
  13700. Γöé >>ΓöÇΓöÇIFΓöÇΓöÇconditionΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13701. Γöé           ΓööΓöÇTHENΓöÇΓöÿ                          Γöé
  13702. Γöé                                        Γöé
  13703. Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                           Γöé
  13704. Γöé             Γöé                           Γöé
  13705. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇstatement-1ΓöÇΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  13706. Γöé   Γöé ΓööΓöÇNEXT SENTENCEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé   Γöé       Γöé
  13707. Γöé   Γöé             Γöé             Γöé  Γöé   Γöé       Γöé
  13708. Γöé   Γöé             ΓööΓöÇELSEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇstatement-2ΓöÇΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÿ   Γöé       Γöé
  13709. Γöé   Γöé                 ΓööΓöÇNEXT SENTENCEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé       Γöé
  13710. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ        Γöé       Γöé
  13711. Γöé   Γöé         Γöé              Γöé        Γöé       Γöé
  13712. Γöé   ΓööΓöÇΓöÇΓöÇΓöÇstatement-1ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇELSEΓöÇΓöÇΓöÇΓöÇΓöÇstatement-2ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÿ       Γöé
  13713. Γöé             Γöé              ΓööΓöÇEND-IFΓöÇΓöÿ Γöé        Γöé
  13714. Γöé             ΓööΓöÇEND-IFΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  13715. Γöé                                        Γöé
  13716. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13717.  
  13718. The scope of an IF statement can be terminated by any of the following: 
  13719.  
  13720.   An END-IF phrase at the same level of nesting 
  13721.   A separator period 
  13722.   If nested, by an ELSE phrase associated with an IF statement at a higher 
  13723.    level of nesting 
  13724.  
  13725.  Related Information: 
  13726.  
  13727.   Transferring Control 
  13728.   Nested IF Statements 
  13729.  
  13730.  
  13731. ΓòÉΓòÉΓòÉ 12.29.1. Transferring Control ΓòÉΓòÉΓòÉ
  13732.  
  13733. If the condition tested is true, one of the following actions takes place: 
  13734.  
  13735.   Statement-1, if specified, is executed. If statement-1 contains a procedure 
  13736.    branching statement, control is transferred, according to the rules for that 
  13737.    statement. If statement-1 does not contain a procedure-branching statement, 
  13738.    the ELSE phrase, if specified, is ignored, and control passes to the next 
  13739.    executable statement after the corresponding (implicit or explicit) END-IF 
  13740.    or separator period. 
  13741.  
  13742.   NEXT SENTENCE, if specified, is executed; that is, the ELSE phrase, if 
  13743.    specified, is ignored, and control passes to the statement following the 
  13744.    closest separator period. 
  13745.  
  13746.  If the condition tested is false, one of the following actions takes place: 
  13747.  
  13748.   ELSE statement-2, if specified, is executed. If statement-2 contains a 
  13749.    procedure-branching statement, control is transferred, according to the 
  13750.    rules for that statement. If statement-2 does not contain a 
  13751.    procedure-branching statement, control is passed to the next executable 
  13752.    statement after the corresponding END-IF or separator period. 
  13753.  
  13754.   ELSE NEXT SENTENCE, if specified, is executed and control passes to the 
  13755.    statement following the closest separator period. 
  13756.  
  13757.   If ELSE NEXT SENTENCE is omitted, control passes to the next executable 
  13758.    statement after the corresponding END-IF or separator period. 
  13759.  
  13760.  Note:   When ELSE or ELSE NEXT SENTENCE are omitted, all statements following 
  13761.  the condition and preceding the corresponding END-IF or the separator period 
  13762.  for the sentence are considered to be part of statement-1. 
  13763.  
  13764.  
  13765. ΓòÉΓòÉΓòÉ 12.29.2. Nested IF Statements ΓòÉΓòÉΓòÉ
  13766.  
  13767. The presence of one or more IF statements within the initial IF statement 
  13768. constitutes a "nested IF statement". Nesting statements is much like specifying 
  13769. subordinate arithmetic expressions enclosed in parentheses and combined in 
  13770. larger arithmetic expressions. 
  13771.  
  13772. IF statements contained within IF statements are considered as paired IF, ELSE, 
  13773. and END-IF combinations, proceeding from left to right. Thus, any ELSE or 
  13774. END-IF encountered is considered to apply to the immediately preceding IF that 
  13775. has not been already paired with an ELSE or END-IF. 
  13776.  
  13777.  
  13778. ΓòÉΓòÉΓòÉ 12.30. INITIALIZE Statement ΓòÉΓòÉΓòÉ
  13779.  
  13780. The INITIALIZE statement sets selected categories of data fields to 
  13781. predetermined values. It is functionally equivalent to one or more MOVE 
  13782. statements. 
  13783.  
  13784. ΓöîΓöÇΓöÇΓöÇ INITIALIZE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13785. Γöé                                        Γöé
  13786. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                       Γöé
  13787. Γöé                 Γöé                       Γöé
  13788. Γöé >>ΓöÇΓöÇINITIALIZEΓöÇΓöÇΓöÇΓöÇidentifier-1ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13789. Γöé                                        Γöé
  13790. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><       Γöé
  13791. Γöé   Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé         Γöé
  13792. Γöé   Γöé                            Γöé Γöé         Γöé
  13793. Γöé   ΓööΓöÇREPLACINGΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇALPHABETICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ BY Phrase Γö£ΓöÇΓö┤ΓöÇΓöÿ         Γöé
  13794. Γöé          Γö£ΓöÇALPHANUMERICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                   Γöé
  13795. Γöé          Γö£ΓöÇNUMERICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                   Γöé
  13796. Γöé          Γö£ΓöÇALPHANUMERIC-EDITEDΓöÇΓöñ                   Γöé
  13797. Γöé          ΓööΓöÇNUMERIC-EDITEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  13798. Γöé                                        Γöé
  13799. Γöé BY PHRASE:                                  Γöé
  13800. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöñ                     Γöé
  13801. Γöé   ΓööΓöÇDATAΓöÇΓöÿ    ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  13802. Γöé                                        Γöé
  13803. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13804.  
  13805. Identifier-1 can be a subscripted or reference-modified item. A complete table 
  13806. can be initialized if identifier-1 is a group item that contains the complete 
  13807. table. 
  13808.  
  13809. Neither identifier-1 nor any item subordinate to it may contain the DEPENDING 
  13810. ON phrase of the OCCURS clause. The data description entry for identifier-1 
  13811. must not contain a RENAMES clause. An index data item may not be an operand of 
  13812. INITIALIZE. 
  13813.  
  13814. Related Information: 
  13815.  
  13816.   INITIALIZE Statement Rules 
  13817.  
  13818.  
  13819. ΓòÉΓòÉΓòÉ 12.30.1. REPLACING Phrase ΓòÉΓòÉΓòÉ
  13820.  
  13821. When the REPLACING phrase is used: 
  13822.  
  13823.   The category of identifier-2 or literal-1 must be compatible with the 
  13824.    category indicated in the corresponding REPLACING phrase, according to the 
  13825.    rules for MOVE. 
  13826.  
  13827.   The same category cannot be repeated in a REPLACING phrase. 
  13828.  
  13829.   The keyword following the word REPLACING corresponds to a category of data 
  13830.    shown in Classes and Categories of Data. 
  13831.  
  13832.  When the REPLACING phrase is not used: 
  13833.  
  13834.   SPACE is the implied sending field for alphabetic, alphanumeric, and 
  13835.    alphanumeric-edited items. 
  13836.  
  13837.   ZERO is the implied sending field for numeric, and numeric-edited items. 
  13838.  
  13839.  
  13840. ΓòÉΓòÉΓòÉ 12.30.2. INITIALIZE Statement Rules ΓòÉΓòÉΓòÉ
  13841.  
  13842.   1. Whether identifier-1 references an elementary or group item, all 
  13843.      operations are performed as if a series of MOVE statements had been 
  13844.      written, each of which had an elementary item as a receiving field. 
  13845.  
  13846.      If the REPLACING phrase is specified: 
  13847.  
  13848.      If identifier-1 references a group item, any elementary item within the 
  13849.       data item referenced by identifier-1 is initialized only if it belongs to 
  13850.       the category specified in the REPLACING phrase. 
  13851.  
  13852.      If identifier-1 references an elementary item, that item is initialized 
  13853.       only if it belongs to the category specified in the REPLACING phrase. 
  13854.  
  13855.      This initialization takes place as if the data item referenced by 
  13856.      identifier-2 or literal-1 acts as the sending operand in an implicit MOVE 
  13857.      statement to the identified item. 
  13858.  
  13859.      All such elementary receiving fields, including all occurrences of table 
  13860.      items within the group, are affected, with the following exceptions: 
  13861.  
  13862.      Index, pointer, and procedure-pointer data items 
  13863.  
  13864.      Elementary FILLER data items 
  13865.  
  13866.      Items that are subordinate to identifier-1 and contain a REDEFINES 
  13867.       clause, or any items subordinate to such an item. (However, identifier-1 
  13868.       may contain a REDEFINES clause or be subordinate to a redefining item.) 
  13869.  
  13870.      BOOLEAN data items. 
  13871.  
  13872.   2. The areas referenced by identifier-1 are initialized in the order (left to 
  13873.      right) of the appearance of identifier-1 in the statement. Within a group 
  13874.      receiving field, affected elementary items are initialized in the order of 
  13875.      their definition within the group. 
  13876.  
  13877.   3. If identifier-1 occupies the same storage area as identifier-2, the result 
  13878.      of the execution of this statement is undefined, even if these operands 
  13879.      are defined by the same data description entry. 
  13880.  
  13881.   4. If identifier-1 is a group item, then all of the items within that group 
  13882.      item are considered as being referenced in the program. 
  13883.  
  13884.  
  13885. ΓòÉΓòÉΓòÉ 12.31. INSPECT Statement ΓòÉΓòÉΓòÉ
  13886.  
  13887. The INSPECT statement specifies that characters in a data item are to be 
  13888. counted (tallied), or replaced (or both). 
  13889.  
  13890.   It will count the occurrence of a specific character (alphabetic, numeric, 
  13891.    or special character) in a data item. 
  13892.  
  13893.   It will fill all or portions of a data item with spaces or zeros. 
  13894.  
  13895.   It will translate characters from one collating sequence to another. 
  13896.  
  13897.  The INSPECT statement has four formats: 
  13898.  
  13899.   Format 1 - INSPECT TALLYING 
  13900.   Format 2 - INSPECT REPLACING 
  13901.   Format 3 - INSPECT TALLYING REPLACING 
  13902.   Format 4 - INSPECT CONVERTING 
  13903.  
  13904.  Related Information: 
  13905.  
  13906.   INSPECT Statement Considerations 
  13907.   Comparison Rules 
  13908.   Examples 
  13909.  
  13910.  
  13911. ΓòÉΓòÉΓòÉ 12.31.1. INSPECT Statement - Format 1 ΓòÉΓòÉΓòÉ
  13912.  
  13913. ΓöîΓöÇΓöÇΓöÇ INSPECT STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13914. Γöé                                        Γöé
  13915. Γöé >>ΓöÇΓöÇINSPECTΓöÇΓöÇidentifier-1ΓöÇΓöÇTALLYINGΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13916. Γöé                                        Γöé
  13917. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  13918. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé      Γöé
  13919. Γöé   Γöé           Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé Γöé      Γöé
  13920. Γöé                                Γöé  Γöé Γöé      Γöé
  13921. Γöé >ΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇFORΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇCHARACTERSΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö┤ΓöÇΓöÇ><    Γöé
  13922. Γöé              Γöé        ΓööΓöÇΓöñ phrase 1 Γö£ΓöÇΓöÿ  Γöé        Γöé
  13923. Γöé              Γöé        ΓöîΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÉ   Γöé        Γöé
  13924. Γöé              Γöé                Γöé   Γöé        Γöé
  13925. Γöé              ΓööΓöÇΓö¼ΓöÇALLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ phrase 2 Γö£ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  13926. Γöé               ΓööΓöÇLEADINGΓöÇΓöÿ                    Γöé
  13927. Γöé                                        Γöé
  13928. Γöé PHRASE 1:                                   Γöé
  13929. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  13930. Γöé   ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  13931. Γöé                                        Γöé
  13932. Γöé PHRASE 2:                                   Γöé
  13933. Γöé            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  13934. Γöé                                    Γöé    Γöé
  13935. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöñ   Γöé
  13936. Γöé   ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ     Γöé
  13937. Γöé              ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  13938. Γöé                                        Γöé
  13939. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13940.  
  13941.  
  13942. ΓòÉΓòÉΓòÉ 12.31.2. INSPECT Statement - Format 2 ΓòÉΓòÉΓòÉ
  13943.  
  13944. ΓöîΓöÇΓöÇΓöÇ INSPECT STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13945. Γöé                                        Γöé
  13946. Γöé >>ΓöÇΓöÇINSPECTΓöÇΓöÇidentifier-1ΓöÇΓöÇREPLACINGΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13947. Γöé                                        Γöé
  13948. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  13949. Γöé   Γöé                   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé       Γöé
  13950. Γöé                                Γöé  Γöé       Γöé
  13951. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇCHARACTERS BYΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><     Γöé
  13952. Γöé    Γöé         ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓöñ phrase 1 Γö£ΓöÇΓöÿ  Γöé        Γöé
  13953. Γöé    Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé        Γöé
  13954. Γöé    Γöé                Γöé             Γöé        Γöé
  13955. Γöé    ΓööΓöÇΓö¼ΓöÇALLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ phrase 2 Γö£ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  13956. Γöé     Γö£ΓöÇLEADINGΓöÇΓöñ                              Γöé
  13957. Γöé     ΓööΓöÇFIRSTΓöÇΓöÇΓöÇΓöÿ                              Γöé
  13958. Γöé                                        Γöé
  13959. Γöé PHRASE 1:                                   Γöé
  13960. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  13961. Γöé   ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  13962. Γöé                                        Γöé
  13963. Γöé PHRASE 2:                                   Γöé
  13964. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13965. Γöé   ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  13966. Γöé                                        Γöé
  13967. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé
  13968. Γöé                           Γöé             Γöé
  13969. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöñ            Γöé
  13970. Γöé    ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ              Γöé
  13971. Γöé     ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ               Γöé
  13972. Γöé                                        Γöé
  13973. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13974.  
  13975.  
  13976. ΓòÉΓòÉΓòÉ 12.31.3. INSPECT Statement - Format 3 ΓòÉΓòÉΓòÉ
  13977.  
  13978. ΓöîΓöÇΓöÇΓöÇ INSPECT STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13979. Γöé                                        Γöé
  13980. Γöé >>ΓöÇΓöÇINSPECTΓöÇΓöÇidentifier-1ΓöÇΓöÇTALLYINGΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13981. Γöé                                        Γöé
  13982. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  13983. Γöé   Γöé           ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé      Γöé
  13984. Γöé   Γöé           Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé Γöé      Γöé
  13985. Γöé                                Γöé  Γöé Γöé      Γöé
  13986. Γöé >ΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇFORΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇCHARACTERSΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13987. Γöé              Γöé        ΓööΓöÇΓöñ phrase 1 Γö£ΓöÇΓöÿ  Γöé        Γöé
  13988. Γöé              Γöé        ΓöîΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÉ   Γöé        Γöé
  13989. Γöé              Γöé                Γöé   Γöé        Γöé
  13990. Γöé              ΓööΓöÇΓö¼ΓöÇALLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ phrase 2 Γö£ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  13991. Γöé               ΓööΓöÇLEADINGΓöÇΓöÿ                    Γöé
  13992. Γöé                                        Γöé
  13993. Γöé >ΓöÇΓöÇREPLACINGΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  13994. Γöé                                        Γöé
  13995. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  13996. Γöé   Γöé                   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé       Γöé
  13997. Γöé                                Γöé  Γöé       Γöé
  13998. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇCHARACTERS BYΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><     Γöé
  13999. Γöé    Γöé         ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓöñ phrase 1 Γö£ΓöÇΓöÿ  Γöé        Γöé
  14000. Γöé    Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé        Γöé
  14001. Γöé    Γöé                Γöé             Γöé        Γöé
  14002. Γöé    ΓööΓöÇΓö¼ΓöÇALLΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöñ phrase 3 Γö£ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  14003. Γöé     Γö£ΓöÇLEADINGΓöÇΓöñ                              Γöé
  14004. Γöé     ΓööΓöÇFIRSTΓöÇΓöÇΓöÇΓöÿ                              Γöé
  14005. Γöé                                        Γöé
  14006. Γöé PHRASE 1:                                   Γöé
  14007. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇΓöñ                Γöé
  14008. Γöé   ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  14009. Γöé                                        Γöé
  14010. Γöé PHRASE 2:                                   Γöé
  14011. Γöé            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  14012. Γöé                                    Γöé    Γöé
  14013. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöñ   Γöé
  14014. Γöé   ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ     Γöé
  14015. Γöé              ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  14016. Γöé                                        Γöé
  14017. Γöé PHRASE 3:                                   Γöé
  14018. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14019. Γöé   ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  14020. Γöé                                        Γöé
  14021. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ             Γöé
  14022. Γöé                           Γöé             Γöé
  14023. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöñ            Γöé
  14024. Γöé    ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ              Γöé
  14025. Γöé     ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ               Γöé
  14026. Γöé                                        Γöé
  14027. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14028.  
  14029.  
  14030. ΓòÉΓòÉΓòÉ 12.31.4. INSPECT Statement - Format 4 ΓòÉΓòÉΓòÉ
  14031.  
  14032. ΓöîΓöÇΓöÇΓöÇ INSPECT STATEMENT - FORMAT 4 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14033. Γöé                                        Γöé
  14034. Γöé >>ΓöÇΓöÇINSPECTΓöÇΓöÇidentifier-1ΓöÇΓöÇCONVERTINGΓöÇΓöÇΓö¼ΓöÇidentifier-6ΓöÇΓö¼ΓöÇΓöÇTOΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14035. Γöé                     ΓööΓöÇliteral-4ΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  14036. Γöé                                        Γöé
  14037. Γöé            ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  14038. Γöé                                    Γöé    Γöé
  14039. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-7ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><  Γöé
  14040. Γöé   ΓööΓöÇliteral-5ΓöÇΓöÇΓöÇΓöÇΓöÿ   ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ     Γöé
  14041. Γöé              ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇINITIALΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  14042. Γöé                                        Γöé
  14043. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14044.  
  14045.  
  14046. ΓòÉΓòÉΓòÉ 12.31.5. INSPECT Statement Considerations ΓòÉΓòÉΓòÉ
  14047.  
  14048. Except when the BEFORE or AFTER phrase is specified, inspection begins at the 
  14049. leftmost character position of the inspected item (identifier-1) and proceeds 
  14050. character-by-character to the rightmost position. 
  14051.  
  14052. The operands of the following phrases are compared in the left-to-right order 
  14053. in which they are specified in the INSPECT statement: 
  14054.  
  14055.   TALLYING (literal-1 or identifier-3, . . . ) 
  14056.   REPLACING (literal-3 or identifier-5, . . . ) 
  14057.  
  14058.  If any identifier is subscripted or reference modified, the subscript or 
  14059.  reference modifier is evaluated only once as the first operation in the 
  14060.  execution of the INSPECT statement. 
  14061.  
  14062.  
  14063. ΓòÉΓòÉΓòÉ 12.31.6. Comparison Rules ΓòÉΓòÉΓòÉ
  14064.  
  14065.   1. When both the TALLYING and REPLACING phrases are specified, the INSPECT 
  14066.      statement is executed as if an INSPECT TALLYING statement were specified, 
  14067.      immediately followed by an INSPECT REPLACING statement. 
  14068.  
  14069.   2. The first comparand is compared with an equal number of leftmost 
  14070.      contiguous characters in the inspected item. The comparand matches the 
  14071.      inspected characters only if both are equal, character-for-character. 
  14072.  
  14073.   3. If no match occurs for the first comparand, the comparison is repeated for 
  14074.      each successive comparand until either a match is found or all comparands 
  14075.      have been acted upon. 
  14076.  
  14077.   4. If a match is found, tallying or replacing takes place, as described in 
  14078.      the following TALLYING/REPLACING phrase descriptions. In the inspected 
  14079.      item, the first character following the rightmost matching character is 
  14080.      now considered to be in the leftmost character position. The process 
  14081.      described in rules 2 and 3 is then repeated. 
  14082.  
  14083.   5. If no match is found, then, in the inspected item, the first character 
  14084.      following the leftmost inspected character is now considered to be in the 
  14085.      leftmost character position. The process described in rules 2 and 3 is 
  14086.      then repeated. 
  14087.  
  14088.   6. If the CHARACTERS phrase is specified, an implied one-character item is 
  14089.      used in the process described in rules 2 and 3. The implied character is 
  14090.      always considered to match the inspected character in the inspected item. 
  14091.  
  14092.   7. The actions taken in rules 1 through 6 (defined as the comparison cycle) 
  14093.      are repeated until the rightmost character in the inspected item has 
  14094.      either been matched or has been considered as being in the leftmost 
  14095.      character position. Inspection is then terminated. 
  14096.  
  14097.  When the BEFORE or AFTER phrase is specified, the preceding rules are modified 
  14098.  as described in BEFORE and AFTER Phrases (All Formats). 
  14099.  
  14100.  
  14101. ΓòÉΓòÉΓòÉ 12.31.7. TALLYING Phrase (Formats 1 and 3) ΓòÉΓòÉΓòÉ
  14102.  
  14103. When neither the BEFORE nor AFTER phrase is specified, the following actions 
  14104. take place when the INSPECT TALLYING statement is executed: 
  14105.  
  14106.   If ALL is specified, the count field is increased by 1 for each 
  14107.    non-overlapping occurrence in the inspected item of this tallying operand, 
  14108.    beginning at the leftmost character position and continuing to the 
  14109.    rightmost. 
  14110.  
  14111.   If LEADING is specified, the count field is increased by 1 for each 
  14112.    contiguous non-overlapping occurrence of this tallying operand in the 
  14113.    inspected item, provided that the leftmost such occurrence is at the point 
  14114.    where comparison began in the first comparison cycle for which this tallying 
  14115.    operand is eligible to participate. 
  14116.  
  14117.   If CHARACTERS is specified, the count field is increased by 1 for each 
  14118.    character (including the space character) in the inspected item. Thus, 
  14119.    execution of the INSPECT TALLYING statement increases the value in the count 
  14120.    field by the number of characters in the inspected item. 
  14121.  
  14122.  
  14123. ΓòÉΓòÉΓòÉ 12.31.8. REPLACING Phrase (Formats 2 and 3) ΓòÉΓòÉΓòÉ
  14124.  
  14125. The subject field and the substitution field must have the same length. The 
  14126. following replacement rules apply: 
  14127.  
  14128.   If the subject field is a figurative constant, it is considered to be a 
  14129.    1-character nonnumeric literal. Each character in the inspected item 
  14130.    equivalent to the figurative constant is replaced by the single-character 
  14131.    substitution field, which must be 1 character in length. 
  14132.  
  14133.   If the substitution field is a figurative constant, the substitution field 
  14134.    is considered to be the same length as the subject field. Each 
  14135.    non-overlapping occurrence of the subject field in the inspected item is 
  14136.    replaced by the substitution field. 
  14137.  
  14138.   When the subject and substitution fields are character-strings, each 
  14139.    non-overlapping occurrence of the subject field in the inspected item is 
  14140.    replaced by the character-string specified in the substitution field. 
  14141.  
  14142.   Once replacement has occurred in a given character position in the inspected 
  14143.    item, no further replacement for that character position is made in this 
  14144.    execution of the INSPECT statement. 
  14145.  
  14146.  When the CHARACTERS phrase is used, literal-3 or identifier-5 must be 1 
  14147.  character in length, and literal-2 or identifier-4 must be 1 character in 
  14148.  length. 
  14149.  
  14150.  When neither the BEFORE nor AFTER phrase is specified, the following actions 
  14151.  take place when the INSPECT REPLACING statement is executed: 
  14152.  
  14153.   If CHARACTERS is specified, the substitution field must be 1 character in 
  14154.    length. Each character in the inspected field is replaced by the 
  14155.    substitution field, beginning at the leftmost character and continuing to 
  14156.    the rightmost. 
  14157.  
  14158.   If ALL is specified, each non-overlapping occurrence of the subject field in 
  14159.    the inspected item is replaced by the substitution field, beginning at the 
  14160.    leftmost character and continuing to the rightmost. 
  14161.  
  14162.   If LEADING is specified, each contiguous non-overlapping occurrence of the 
  14163.    subject field in the inspected item is replaced by the substitution field, 
  14164.    provided that the leftmost such occurrence is at the point where comparison 
  14165.    began in the first comparison cycle for which this substitution field is 
  14166.    eligible to participate. 
  14167.  
  14168.   If FIRST is specified, the leftmost occurrence of the subject field in the 
  14169.    inspected item is replaced by the substitution field. 
  14170.  
  14171.  
  14172. ΓòÉΓòÉΓòÉ 12.31.9. BEFORE and AFTER Phrases (All Formats) ΓòÉΓòÉΓòÉ
  14173.  
  14174. No more than one BEFORE phrase and one AFTER phrase can be specified for any 
  14175. one ALL, LEADING, CHARACTERS, FIRST or CONVERTING phrase. When these phrases 
  14176. are specified, the preceding rules for counting and replacing are modified. 
  14177.  
  14178. When BEFORE is specified, counting and/or replacing of the inspected item 
  14179. begins at the leftmost character and continues until the first occurrence of 
  14180. the delimiter is encountered. If no delimiter is present in the inspected item, 
  14181. counting and/or replacing continues toward the rightmost character. 
  14182.  
  14183. When AFTER is specified, counting and/or replacing of the inspected item begins 
  14184. with the first character to the right of the delimiter and continues toward the 
  14185. rightmost character in the inspected item. If no delimiter is present in the 
  14186. inspected item, no counting or replacement takes place. 
  14187.  
  14188.  
  14189. ΓòÉΓòÉΓòÉ 12.31.10. CONVERTING Phrase (Format 4) ΓòÉΓòÉΓòÉ
  14190.  
  14191. A string of replacement values may be expressed by this phrase. The size of the 
  14192. receiving location (identifier-7 or literal-5) must be the same size as the 
  14193. sending location (identifier-6 or literal-4). When a figurative constant is 
  14194. used as literal-5, the size of the figurative constant is equal to the size of 
  14195. literal-4 or identifier-6. The same character must not appear more than once 
  14196. either in literal-4 or identifier-6. 
  14197.  
  14198. A Format 4 INSPECT statement is interpreted and executed as if a Format 2 
  14199. INSPECT statement had been written with a series of ALL phrases (one for each 
  14200. character of literal-4), specifying the same identifier-1. The effect is as if 
  14201. each single character of literal-4 were referenced as literal-1, and the 
  14202. corresponding single character of literal-5 referenced as literal-3. 
  14203. Correspondence between the characters of literal-4 and the characters of 
  14204. literal-5 is by ordinal position within the data item. 
  14205.  
  14206. If identifier-4, identifier-6, or identifier-7 occupies the same storage area 
  14207. as identifier-1, the result of the execution of this statement is undefined, 
  14208. even if they are defined by the same data description entry. 
  14209.  
  14210.  
  14211. ΓòÉΓòÉΓòÉ 12.31.11. INSPECT Statement Examples ΓòÉΓòÉΓòÉ
  14212.  
  14213. The following examples illustrate some uses of the INSPECT statement.  In all 
  14214. instances, the programmer has initialized the COUNTR field to zero before the 
  14215. INSPECT statement is executed. 
  14216.  
  14217. INSPECT ID-1
  14218.      REPLACING CHARACTERS BY ZERO.
  14219.  
  14220. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14221. Γöé ID-1 BEFORE     Γöé COUNTR AFTER    Γöé ID-1 AFTER     Γöé
  14222. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14223. Γöé 1234567       Γöé 0          Γöé 0000000       Γöé
  14224. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14225. Γöé HIJKLMN       Γöé 0          Γöé 0000000       Γöé
  14226. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14227.  
  14228. INSPECT ID-1
  14229.      TALLYING COUNTR FOR CHARACTERS
  14230.      REPLACING CHARACTERS BY SPACES.
  14231.  
  14232. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14233. Γöé ID-1 BEFORE     Γöé COUNTR AFTER    Γöé ID-1 AFTER     Γöé
  14234. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14235. Γöé 1234567       Γöé 7          Γöé           Γöé
  14236. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14237. Γöé HIJKLMN       Γöé 7          Γöé           Γöé
  14238. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14239.  
  14240. INSPECT ID-1
  14241.      REPLACING CHARACTERS BY ZEROS
  14242.           BEFORE INITIAL QUOTE.
  14243.  
  14244. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14245. Γöé ID-1 BEFORE     Γöé COUNTR AFTER    Γöé ID-1 AFTER     Γöé
  14246. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14247. Γöé 456"ABEL      Γöé 0          Γöé 000"ABEL      Γöé
  14248. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14249. Γöé ANDES"12      Γöé 0          Γöé 00000"12      Γöé
  14250. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14251. Γöé "TWAS BR      Γöé 0          Γöé "TWAS BR      Γöé
  14252. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14253.  
  14254. INSPECT ID-1
  14255.      TALLYING COUNTR FOR CHARACTERS AFTER INITIAL "S"
  14256.      REPLACING ALL "A" BY "O".
  14257.  
  14258. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14259. Γöé ID-1 BEFORE     Γöé COUNTR AFTER    Γöé ID-1 AFTER     Γöé
  14260. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14261. Γöé ANSELM       Γöé 3          Γöé ONSELM       Γöé
  14262. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14263. Γöé SACKET       Γöé 5          Γöé SOCKET       Γöé
  14264. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14265. Γöé PASSED       Γöé 3          Γöé POSSED       Γöé
  14266. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14267.  
  14268. INSPECT ID-1
  14269.      TALLYING COUNTR FOR LEADING "0"
  14270.      REPLACING FIRST "A" BY "2"
  14271.           AFTER INITIAL "C".
  14272.  
  14273. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14274. Γöé ID-1 BEFORE     Γöé COUNTR AFTER    Γöé ID-1 AFTER     Γöé
  14275. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14276. Γöé 00ACADEMY00     Γöé 2          Γöé 00AC2DEMY00     Γöé
  14277. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14278. Γöé 0000ALABAMA     Γöé 4          Γöé 0000ALABAMA     Γöé
  14279. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14280. Γöé CHATAM0000     Γöé 0          Γöé CH2THAM0000     Γöé
  14281. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14282.  
  14283. INSPECT ID-1
  14284.      CONVERTING "ABCD" TO "XYZX"
  14285.           AFTER QUOTE
  14286.           BEFORE "#".
  14287.  
  14288. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14289. Γöé ID-1 BEFORE         Γöé ID-1 AFTER          Γöé
  14290. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  14291. Γöé AC"AEBDFBCD#AB"D       Γöé AC"XEYXFYZX#AB"D       Γöé
  14292. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14293.  
  14294.  
  14295. ΓòÉΓòÉΓòÉ 12.32. MERGE Statement ΓòÉΓòÉΓòÉ
  14296.  
  14297. The MERGE statement combines two or more identically sequenced files (that is, 
  14298. files that have already been sorted according to an identical set of 
  14299. ascending/descending keys) on one or more keys and makes records available in 
  14300. merged order to an output procedure or output file. 
  14301.  
  14302. A MERGE statement may appear anywhere in the Procedure Division except in a 
  14303. Declarative Section. The maximum number of USING or GIVING files is 32. 
  14304.  
  14305. -----IBM Extension----- 
  14306.  
  14307. It is not necessary to sequence input files prior to a merge operation. 
  14308.  
  14309. ---End of IBM Extension--- 
  14310.  
  14311. ΓöîΓöÇΓöÇΓöÇ MERGE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14312. Γöé                                        Γöé
  14313. Γöé >>ΓöÇΓöÇMERGEΓöÇΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14314. Γöé                                        Γöé
  14315. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ           Γöé
  14316. Γöé   Γöé                  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé           Γöé
  14317. Γöé                            Γöé Γöé           Γöé
  14318. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇASCENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-1ΓöÇΓö┤ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14319. Γöé    ΓööΓöÇONΓöÇΓöÿ  ΓööΓöÇDESCENDINGΓöÇΓöÿ  ΓööΓöÇKEYΓöÇΓöÇΓöÿ                     Γöé
  14320. Γöé                                        Γöé
  14321. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14322. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENCEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-nameΓöÇΓöÿ             Γöé
  14323. Γöé    ΓööΓöÇCOLLATINGΓöÇΓöÿ       ΓööΓöÇISΓöÇΓöÿ                     Γöé
  14324. Γöé                                        Γöé
  14325. Γöé             ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                    Γöé
  14326. Γöé                    Γöé                    Γöé
  14327. Γöé >ΓöÇΓöÇUSINGΓöÇΓöÇfile-name-2ΓöÇΓöÇΓöÇΓöÇfile-name-3ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöñ OUTPUT PROCEDURE Phrase Γö£ΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  14328. Γöé                     Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé    Γöé
  14329. Γöé                     Γöé            Γöé   Γöé    Γöé
  14330. Γöé                     ΓööΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ    Γöé
  14331. Γöé                                        Γöé
  14332. Γöé OUTPUT PROCEDURE PHRASE:                           Γöé
  14333. Γöé Γö£ΓöÇΓöÇOUTPUT PROCEDUREΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇprocedure-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14334. Γöé            ΓööΓöÇISΓöÇΓöÿ                          Γöé
  14335. Γöé                                        Γöé
  14336. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  14337. Γöé   ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ                     Γöé
  14338. Γöé    ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                               Γöé
  14339. Γöé                                        Γöé
  14340. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14341.  
  14342. When the MERGE statement is executed, all records contained in file-name-2, 
  14343. file-name-3, . . . are accepted by the merge program and then merged according 
  14344. to the key(s) specified. 
  14345.  
  14346. Null-capable fields are supported, but null values are not. Null values result 
  14347. in a file status of 90. 
  14348.  
  14349. Related Information: 
  14350.  
  14351.   SORT-RETURN Special Register 
  14352.  
  14353.  
  14354. ΓòÉΓòÉΓòÉ 12.32.1. ASCENDING/DESCENDING KEY Phrase ΓòÉΓòÉΓòÉ
  14355.  
  14356. This phrase specifies that records are to be processed in an ascending or 
  14357. descending sequence (depending on the phrase specified), based on the specified 
  14358. merge keys. 
  14359.  
  14360. Data-name-1 specifies the KEY data item on which the merge is based. Each such 
  14361. data-name identifies a data item in a record associated with file-name-1. The 
  14362. data-names following the word KEY are listed from left to right in the MERGE 
  14363. statement in order of decreasing significance without regard to how they are 
  14364. divided into KEY phrases. The left-most data-name is the major key, the next 
  14365. data-name is the next most significant key, and so forth. 
  14366.  
  14367. The following rules apply: 
  14368.  
  14369.   A specific KEY data item must be physically located in the same position and 
  14370.    have the same data format in each input file; however, it need not have the 
  14371.    same data-name. 
  14372.  
  14373.   If file-name-1 has more than one record description, the KEY data items need 
  14374.    be described in only one of the record descriptions. 
  14375.  
  14376.   If file-name-1 contains variable-length records, all of the KEY data-items 
  14377.    must be contained within the first n character positions of the record, 
  14378.    where n equals the minimum record size specified for file-name-1. 
  14379.  
  14380.   KEY data items must not contain an OCCURS clause or be subordinate to an 
  14381.    item that contains an OCCURS clause. 
  14382.  
  14383.   KEY data items can be qualified, but they cannot be subscripted or indexed. 
  14384.  
  14385.    -----IBM Extension----- 
  14386.  
  14387.   KEY data items can be reference modified, but they cannot be subscripted or 
  14388.    indexed. 
  14389.  
  14390.    ---End of IBM Extension--- 
  14391.  
  14392.   The total length (in bytes) of the KEY data items must not exceed 2 000 
  14393.  
  14394.   Variable length fields can not be used in a MERGE key as a variable length 
  14395.    field. Variable length fields are converted into group items by ILE 
  14396.    COBOL/400. Since variable length fields are converted into group items, they 
  14397.    are compared as alphanumeric data items when used in a MERGE key. 
  14398.  
  14399.   Date, time, and timestamp fields can not be used as part of a MERGE key as 
  14400.    date, time, and timestamp fields.  In ILE COBOL/400, date, time, and 
  14401.    timestamp fields are converted to alphanumeric data items.  They are 
  14402.    compared as alphanumeric data items when used in a MERGE key. 
  14403.  
  14404.  The direction of the merge operation depends on the specification of the 
  14405.  ASCENDING or DESCENDING keywords as follows: 
  14406.  
  14407.   When ASCENDING is specified, the sequence is from the lowest key value to 
  14408.    the highest key value. 
  14409.  
  14410.   When DESCENDING is specified, the sequence is from the highest key value to 
  14411.    the lowest. 
  14412.  
  14413.   If the KEY data item is alphabetic, alphanumeric, alphanumeric-edited, or 
  14414.    numeric-edited, the sequence of key values depends on the collating sequence 
  14415.    used (see COLLATING SEQUENCE Phrase below). 
  14416.  
  14417.  The key comparisons are performed according to the rules for comparison of 
  14418.  operands in a relation condition (see Relation Condition). 
  14419.  
  14420.  
  14421. ΓòÉΓòÉΓòÉ 12.32.2. COLLATING SEQUENCE Phrase ΓòÉΓòÉΓòÉ
  14422.  
  14423. This phrase specifies the collating sequence to be used in nonnumeric 
  14424. comparisons for the KEY data items in this merge operation. 
  14425.  
  14426. When the COLLATING SEQUENCE phrase is omitted, the PROGRAM COLLATING SEQUENCE 
  14427. clause (if specified) in the OBJECT-COMPUTER paragraph specifies the collating 
  14428. sequence to be used. 
  14429.  
  14430. When both the COLLATING SEQUENCE phrase and the PROGRAM COLLATING SEQUENCE 
  14431. clause are omitted, the EBCDIC collating sequence is used. 
  14432.  
  14433.  
  14434. ΓòÉΓòÉΓòÉ 12.32.3. USING Phrase ΓòÉΓòÉΓòÉ
  14435.  
  14436.  file-name-2, file-name-3, ... 
  14437.            Specifies input files. 
  14438.  
  14439.  When the USING phrase is specified, all the records on file-name-2, 
  14440.  file-name-3,... (that is, the input files) are transferred automatically to 
  14441.  file-name-1. At the time the MERGE statement is executed, these files must not 
  14442.  be open; the compiler generates code that opens, reads and closes the input 
  14443.  files automatically. If EXCEPTION/ERROR procedures are specified for these 
  14444.  files, the COBOL compiler makes the necessary linkage to these procedures. 
  14445.  
  14446.  All input files must be described in an FD entry in the Data Division, and 
  14447.  their record descriptions must describe records of the same size as the record 
  14448.  described for the merge file. If the elementary items that make up these 
  14449.  records are not identical, input records must have an equal number of 
  14450.  character positions as the merge record. 
  14451.  
  14452.  The input files must have sequential, relative or indexed organization. 
  14453.  
  14454.  If file-name-1 contains variable length records, the size of the records 
  14455.  contained in the input files must be no less than the smallest record nor 
  14456.  greater than the largest record described for file-name-1. If file-name-1 
  14457.  contains fixed-length records, the size of the records contained in the input 
  14458.  files must be no greater than the largest record described for file-name-1. 
  14459.  
  14460.  
  14461. ΓòÉΓòÉΓòÉ 12.32.4. GIVING Phrase ΓòÉΓòÉΓòÉ
  14462.  
  14463.  file-name-4, ... 
  14464.            Specifies input files. 
  14465.  
  14466.  When the GIVING phrase is specified, all the merged records in file-name-1 are 
  14467.  automatically transferred to the output file (file-name-4). At the start of 
  14468.  execution of the MERGE statement, the file referenced by file-name-4 must not 
  14469.  be open. For each of the files referenced by file-name-4, the execution of the 
  14470.  MERGE statement causes the following actions to be taken: 
  14471.  
  14472.   1. The processing of the file is initiated. The initiation is performed as if 
  14473.      an OPEN statement with the OUTPUT phrase had been executed. 
  14474.  
  14475.   2. The merged logical records are returned and written onto the file. Each 
  14476.      record is written as if a WRITE statement without any optional phrases had 
  14477.      been executed. The records overwrite the previous contents, if any, of the 
  14478.      file. 
  14479.  
  14480.      -----IBM Extension----- 
  14481.  
  14482.      If file-name-1 is a logical database file, the records are added to the 
  14483.      end of the file. 
  14484.  
  14485.      ---End of IBM Extension--- 
  14486.  
  14487.      If the file referenced by file-name-4 is an INDEXED file then the 
  14488.      associated key data-name for that file must have an ASCENDING KEY phrase 
  14489.      in the merge statement. This same data-name must occupy the identical 
  14490.      character positions in its record as the data item associated with the 
  14491.      prime record key for the file. 
  14492.  
  14493.      For a relative file, the relative key data item for the first record 
  14494.      returned contains the value '1'; for the second record returned, the value 
  14495.      '2', and so on. After execution of the MERGE statement, the content of the 
  14496.      relative key data item indicates the last record returned to the file. 
  14497.  
  14498.   3. The processing of the file is terminated, as if a CLOSE statement without 
  14499.      optional phrases had been executed. 
  14500.  
  14501.  Note:   When duplicate keys are found when writing to an indexed file, the 
  14502.          MERGE will terminate and the merged data in all GIVING files will be 
  14503.          incomplete. 
  14504.  
  14505.  These implicit functions are performed such that any associated USE AFTER 
  14506.  EXCEPTION/ERROR procedures are executed; however, the execution of such a USE 
  14507.  procedure must not cause the execution of any statement manipulating the file 
  14508.  referenced by, or accessing the record area associated with, file-name-4. On 
  14509.  the first attempt to write beyond the externally defined boundaries of the 
  14510.  file, any USE AFTER STANDARD EXCEPTION/ERROR procedure specified for the file 
  14511.  is executed. If control is returned from that USE procedure or if no such USE 
  14512.  procedure is specified, the processing of the file is terminated. 
  14513.  
  14514.  The output file must be described in an FD entry in the Data Division, and its 
  14515.  record description(s) must describe records of the same size as the record 
  14516.  described for the merge file. If the elementary items that make up these 
  14517.  records are not identical, the output record must have an equal number of 
  14518.  character positions as the merge record. 
  14519.  
  14520.  The output file must have a sequential, relative or indexed organization. 
  14521.  
  14522.  The output file should be created without a keyed sequence access path. 
  14523.  Otherwise, the MERGE statement cannot override the collating sequence defined 
  14524.  in the data description specifications (DDS). 
  14525.  
  14526.  If the output files (file-name-4) contain variable-length records, the size of 
  14527.  the records contained in file-name-1 must be no less than the largest record 
  14528.  described in the output files. If the output files contain fixed-length 
  14529.  records, the size of the records contained in file-name-1 must be no greater 
  14530.  than the largest record described for the output files. 
  14531.  
  14532.  
  14533. ΓòÉΓòÉΓòÉ 12.32.5. OUTPUT PROCEDURE Phrase ΓòÉΓòÉΓòÉ
  14534.  
  14535. This phrase specifies the name of a procedure that is to select or modify 
  14536. output records from the merge operation. 
  14537.  
  14538. The OUTPUT PROCEDURE can consist of any procedure needed to select, modify, or 
  14539. copy the records that are made available one at a time by the RETURN statement 
  14540. in merged order from the file referenced by file-name-1. The range includes all 
  14541. statements that are executed as the result of a transfer of control by CALL, 
  14542. EXIT, GO TO, and PERFORM statements in the range of the output procedure. The 
  14543. range also includes all statements in declarative procedures that are executed 
  14544. as a result of the execution of statements in the range of the output 
  14545. procedure. The range of the output procedure must not cause the execution of 
  14546. any MERGE, RELEASE, or SORT statement. 
  14547.  
  14548. If an output procedure is specified, control passes to it after the file 
  14549. referenced by file-name-1 has been sequenced by the MERGE statement. 
  14550.  
  14551. Note:   The OUTPUT PROCEDURE phrase is similar to a basic PERFORM statement. 
  14552. For example, if you name a procedure in an OUTPUT PROCEDURE, that procedure is 
  14553. executed during the merging operation just as if it were named in a PERFORM 
  14554. statement. As with the PERFORM statement, execution of the procedure is 
  14555. terminated after the last statement completes execution. The last statement in 
  14556. an OUTPUT PROCEDURE can be the EXIT statement (see EXIT Statement). 
  14557.  
  14558.  
  14559. ΓòÉΓòÉΓòÉ 12.32.6. SORT-RETURN Special Register ΓòÉΓòÉΓòÉ
  14560.  
  14561. -----IBM Extension----- 
  14562.  
  14563. The SORT-RETURN special register is the name of a binary data item and is 
  14564. available to both sort and merge programs. 
  14565.  
  14566. The SORT-RETURN special register has the implicit definition: 
  14567.  
  14568. 01     SORT-RETURN GLOBAL PICTURE S9(4) USAGE BINARY VALUE ZERO.
  14569.  
  14570. When used in nested programs, the SORT-RETURN special register is implicitly 
  14571. defined as GLOBAL in the outermost COBOL program. 
  14572.  
  14573. The SORT-RETURN special register contains a return code of 0 (successful) or 16 
  14574. (unsuccessful) at the completion of a sort/merge operation. 
  14575.  
  14576. You can set the SORT-RETURN special register to 16 in an error declarative or 
  14577. input/output procedure to terminate a sort/merge operation before all records 
  14578. are processed. The operation is terminated before a record is RETURNed or 
  14579. RELEASEd. 
  14580.  
  14581. ---End of IBM Extension--- 
  14582.  
  14583.  
  14584. ΓòÉΓòÉΓòÉ 12.33. MOVE Statement ΓòÉΓòÉΓòÉ
  14585.  
  14586. The MOVE statement transfers data between areas of storage. 
  14587.  
  14588. The MOVE statement has two formats: 
  14589.  
  14590.   Format 1 - MOVE 
  14591.   Format 2 - MOVE CORRESPONDING 
  14592.  
  14593.  Related Information: 
  14594.  
  14595.   MOVE Statement Rules 
  14596.   Elementary Moves 
  14597.   Group Moves 
  14598.   WHEN-COMPILED Special Register 
  14599.  
  14600.  
  14601. ΓòÉΓòÉΓòÉ 12.33.1. MOVE Statement - Format 1 ΓòÉΓòÉΓòÉ
  14602.  
  14603. ΓöîΓöÇΓöÇΓöÇ MOVE STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14604. Γöé                                        Γöé
  14605. Γöé                 ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ               Γöé
  14606. Γöé                         Γöé               Γöé
  14607. Γöé >>ΓöÇΓöÇMOVEΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇTOΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓö┤ΓöÇΓöÇ><             Γöé
  14608. Γöé      ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  14609. Γöé                                        Γöé
  14610. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14611.  
  14612. In Format 1, all identifiers may be either group or elementary items. The data 
  14613. in the sending item is moved into the data item referenced by each identifier-2 
  14614. in the order in which identifier-2 is specified. See Elementary Moves and Group 
  14615. Moves. 
  14616.  
  14617.  
  14618. ΓòÉΓòÉΓòÉ 12.33.2. MOVE Statement - Format 2 ΓòÉΓòÉΓòÉ
  14619.  
  14620. ΓöîΓöÇΓöÇΓöÇ MOVE STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14621. Γöé                                        Γöé
  14622. Γöé >>ΓöÇΓöÇMOVEΓöÇΓöÇΓö¼ΓöÇCORRESPONDINGΓöÇΓö¼ΓöÇΓöÇidentifier-1ΓöÇΓöÇTOΓöÇΓöÇidentifier-2ΓöÇΓöÇ><        Γöé
  14623. Γöé      ΓööΓöÇCORRΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                          Γöé
  14624. Γöé                                        Γöé
  14625. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14626.  
  14627. In Format 2, identifier-1 and identifier-2 must be group items. Selected items 
  14628. in identifier-1 are moved to identifier-2, according to the rules for the 
  14629. CORRESPONDING Phrase. 
  14630.  
  14631.  
  14632. ΓòÉΓòÉΓòÉ 12.33.3. MOVE Statement Rules ΓòÉΓòÉΓòÉ
  14633.  
  14634. An index data item cannot be specified in a MOVE statement. 
  14635.  
  14636. -----IBM Extension----- 
  14637.  
  14638. A pointer data item (USAGE POINTER) or a procedure-pointer data item (USAGE 
  14639. PROCEDURE-POINTER) cannot be specified in a MOVE statement. To move an address 
  14640. into a pointer or procedure-pointer data item, use the SET statement. 
  14641.  
  14642. ---End of IBM Extension--- 
  14643.  
  14644. The evaluation of the length of the sending or receiving item may be affected 
  14645. by the DEPENDING ON phrase of the OCCURS clause (see OCCURS Clause). 
  14646.  
  14647. Any length evaluation, subscripting, or reference modification associated with 
  14648. the sending item (identifier-1 or literal-1) is evaluated only once, 
  14649. immediately before the data is moved to the first of the receiving items. Any 
  14650. length evaluation, subscripting, or reference modification associated with a 
  14651. receiving item (identifier-2) is evaluated immediately before the data is moved 
  14652. into it. 
  14653.  
  14654. For example, the result of the statement: 
  14655.  
  14656. MOVE A(B) TO B, C(B).
  14657.  
  14658. is equivalent to: 
  14659.  
  14660. MOVE A(B) TO TEMP.
  14661.  
  14662. MOVE TEMP TO B.
  14663.  
  14664. MOVE TEMP TO C(B).
  14665.  
  14666. where TEMP is an intermediate result item. The subscript B has changed in value 
  14667. between the time that the first move took place and the time that the final 
  14668. move to C(B) is executed. 
  14669.  
  14670.  
  14671. ΓòÉΓòÉΓòÉ 12.33.4. Elementary Moves ΓòÉΓòÉΓòÉ
  14672.  
  14673. An elementary move is one in which the receiving item is an elementary item, 
  14674. and the sending item is an elementary item or a literal. Any necessary 
  14675. conversion of data from one form of internal representation to another takes 
  14676. place during the move, along with any specified editing in, or de-editing 
  14677. implied by, the receiving item. 
  14678.  
  14679. De-editing is the logical removal of all editing characters from a 
  14680. numeric-edited data item in order to determine that item's unedited numeric 
  14681. value. 
  14682.  
  14683. The following rules outline the execution of valid elementary moves. When the 
  14684. receiving item is: 
  14685.  
  14686. Alphabetic: 
  14687.  
  14688.   Alignment and any necessary space filling occur as described under Alignment 
  14689.    Rules. 
  14690.  
  14691.   If the size of the sending item is greater than the size of the receiving 
  14692.    item, excess characters on the right are truncated after the receiving item 
  14693.    is filled. 
  14694.  
  14695.  Alphanumeric or Alphanumeric-edited: 
  14696.  
  14697.   Alignment and any necessary space filling take place, as described under 
  14698.    Alignment Rules. 
  14699.  
  14700.   If the size of the sending item is greater than the size of the receiving 
  14701.    item, excess characters on the right are truncated after the receiving item 
  14702.    is filled. 
  14703.  
  14704.   If the sending item has an operational sign, the absolute value is used. If 
  14705.    the operational sign occupies a separate character, that character is not 
  14706.    moved, and the size of the sending item is considered to be one less 
  14707.    character than the actual size. 
  14708.  
  14709.    -----IBM Extension----- 
  14710.  
  14711.   If the sending item is Boolean, the data is moved as if the sending item 
  14712.    were described as an alphanumeric item of length 1. 
  14713.  
  14714.    ---End of IBM Extension--- 
  14715.  
  14716.  Numeric or Numeric-edited: 
  14717.  
  14718.   Except where zeros are replaced because of editing requirements, alignment 
  14719.    by decimal point and any necessary zero filling take place, as described 
  14720.    under Alignment Rules. 
  14721.  
  14722.   If the receiving item is signed, the sign of the sending item is placed in 
  14723.    the receiving item, with any necessary sign conversion. If the sending item 
  14724.    is unsigned, a positive operational sign is generated for the receiving 
  14725.    item. 
  14726.  
  14727.   If the receiving item is unsigned, the absolute value of the sending item is 
  14728.    moved, and no operational sign is generated for the receiving item. 
  14729.  
  14730.   When the sending item is alphanumeric, the data is moved as if the sending 
  14731.    item were described as an unsigned integer. 
  14732.  
  14733.   De-editing allows the moving of a numeric-edited data item into a numeric or 
  14734.    numeric-edited receiver. The compiler accomplishes this by first 
  14735.    establishing the unedited value of the numeric-edited item (this value can 
  14736.    be signed), then moving the unedited numeric value to the receiving numeric 
  14737.    or numeric-edited data item. 
  14738.  
  14739.  -----IBM Extension----- 
  14740.  
  14741.  Boolean: 
  14742.  
  14743.   For a Boolean receiving item, only the first byte of the sending item is 
  14744.    moved. 
  14745.  
  14746.   If the sending item is alphanumeric, the first character of the sending item 
  14747.    is moved. The characters "0" and "1" are equivalent to the Boolean values 
  14748.    B"0" and B"1", respectively. 
  14749.  
  14750.   If the sending item is ZERO, it is treated as the Boolean literal B"0". 
  14751.  
  14752.  ---End of IBM Extension--- 
  14753.  
  14754.  Note: 
  14755.  
  14756.   1. If the receiving item is alphanumeric or numeric-edited, and the sending 
  14757.      item is a scaled integer (that is, has a P as the rightmost character in 
  14758.      its PICTURE character-string), the scaling positions are treated as 
  14759.      trailing zeros when the MOVE statement is executed. 
  14760.  
  14761.   2. If the receiving item is numeric and the sending item is alphanumeric 
  14762.      literal or ALL literal, then all characters of the literal must be numeric 
  14763.      characters. 
  14764.  
  14765.  
  14766. ΓòÉΓòÉΓòÉ 12.33.5. Group Moves ΓòÉΓòÉΓòÉ
  14767.  
  14768. A group move is one in which one or both of the sending and receiving items are 
  14769. group items. A group move is treated exactly as though it were an alphanumeric 
  14770. elementary move, except that there is no conversion of data from one form of 
  14771. internal representation to another. In a group move, the receiving item is 
  14772. filled without consideration for the individual elementary items contained 
  14773. within either the sending item or the receiving item. All group moves are 
  14774. valid. 
  14775.  
  14776. -----IBM Extension----- 
  14777.  
  14778. In the following discussion, on the MOVE statement and pointers, pointers 
  14779. refers to both the pointer data item (USAGE POINTER) and the procedure-pointer 
  14780. data item (USAGE PROCEDURE-POINTER). 
  14781.  
  14782. A pointer can be part of a group that is referred to in a MOVE statement. 
  14783.  
  14784. A pointer move occurs when all of the following conditions are met: 
  14785.  
  14786.   The sending or receiving item of a MOVE statement contains a pointer 
  14787.   Both items are at least 16 bytes long and properly aligned 
  14788.   Both are alphanumeric or group items 
  14789.  
  14790.  If the items being moved are 01-level items, or part of a 01-level structure, 
  14791.  they must be at the same offset relative to a 16-byte boundary. All 01-level 
  14792.  items in Working-storage are aligned on 16-byte boundaries. 
  14793.  
  14794.  For more information about pointer alignment, see Pointer Alignment. 
  14795.  
  14796.  A pointer can be part of a group that is referred to in a MOVE CORRESPONDING 
  14797.  statement; however, movement of the pointer will not take place. 
  14798.  
  14799.  ---End of IBM Extension--- 
  14800.  
  14801.  
  14802. ΓòÉΓòÉΓòÉ 12.33.6. WHEN-COMPILED Special Register ΓòÉΓòÉΓòÉ
  14803.  
  14804. -----IBM Extension----- 
  14805.  
  14806. This special register contains the date at the start of compilation. It 
  14807. consists of an alphanumeric data item with the implicit definition: 
  14808.  
  14809. 01     WHEN-COMPILED GLOBAL PICTURE X(16) USAGE DISPLAY
  14810. and format: 
  14811.  
  14812. MM/DD/YYhh.mm.ss (MONTH/DAY/YEARhour.minute.second)
  14813.  
  14814. For example, if compilation began at 2:04 PM on 15 December 1994, WHEN-COMPILED 
  14815. would contain the value 12/15/9414.04.00. 
  14816.  
  14817. The DATSEP or TIMSEP parameter of job-related commands (such as CHGJOB) 
  14818. specifies the date-separation or time-separation character used in the 
  14819. WHEN-COMPILED special register. The DATFMT parameter specifies the date format 
  14820. used in the WHEN-COMPILED special register. 
  14821.  
  14822. It is valid only as the sending item in a MOVE statement. 
  14823.  
  14824. The special register data can be reference-modified only when it is used as a 
  14825. sender data item. 
  14826.  
  14827. In nested programs, this special register is implicitly defined in the 
  14828. outermost program. 
  14829.  
  14830. ---End of IBM Extension--- 
  14831.  
  14832.  
  14833. ΓòÉΓòÉΓòÉ 12.34. MULTIPLY Statement ΓòÉΓòÉΓòÉ
  14834.  
  14835. The MULTIPLY statement multiplies numeric items and stores the result. 
  14836.  
  14837. The MULTIPLY statement has two formats: 
  14838.  
  14839.   Format 1 - MULTIPLY 
  14840.   Format 2 - MULTIPLY GIVING 
  14841.  
  14842.  Related Information: 
  14843.  
  14844.   MULTIPLY Statement Considerations 
  14845.  
  14846.  
  14847. ΓòÉΓòÉΓòÉ 12.34.1. MULTIPLY Statement - Format 1 ΓòÉΓòÉΓòÉ
  14848.  
  14849. ΓöîΓöÇΓöÇΓöÇ MULTIPLY STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14850. Γöé                                        Γöé
  14851. Γöé                   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  14852. Γöé                                 Γöé       Γöé
  14853. Γöé >>ΓöÇΓöÇMULTIPLYΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14854. Γöé        ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ            ΓööΓöÇROUNDEDΓöÇΓöÿ        Γöé
  14855. Γöé                                        Γöé
  14856. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14857. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  14858. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  14859. Γöé                                        Γöé
  14860. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14861. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  14862. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  14863. Γöé                                        Γöé
  14864. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  14865. Γöé   ΓööΓöÇEND-MULTIPLYΓöÇΓöÿ                              Γöé
  14866. Γöé                                        Γöé
  14867. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14868.  
  14869. In Format 1, the value of identifier-1 or literal-1 is saved. This value is 
  14870. multiplied by and stored in each identifier-2, in the left-to-right order in 
  14871. which identifier-2 is specified. 
  14872.  
  14873.  
  14874. ΓòÉΓòÉΓòÉ 12.34.2. MULTIPLY Statement - Format 2 ΓòÉΓòÉΓòÉ
  14875.  
  14876. ΓöîΓöÇΓöÇΓöÇ MULTIPLY STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14877. Γöé                                        Γöé
  14878. Γöé >>ΓöÇΓöÇMULTIPLYΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14879. Γöé        ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  14880. Γöé                                        Γöé
  14881. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  14882. Γöé                     Γöé                   Γöé
  14883. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14884. Γöé               ΓööΓöÇROUNDEDΓöÇΓöÿ                    Γöé
  14885. Γöé                                        Γöé
  14886. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14887. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  14888. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  14889. Γöé                                        Γöé
  14890. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  14891. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  14892. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  14893. Γöé                                        Γöé
  14894. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  14895. Γöé   ΓööΓöÇEND-MULTIPLYΓöÇΓöÿ                              Γöé
  14896. Γöé                                        Γöé
  14897. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14898.  
  14899. In Format 2, the value of identifier-1 or literal-1 is multiplied by the value 
  14900. of identifier-2 or literal-2. The product is then stored in each data item 
  14901. referenced by identifier-3. 
  14902.  
  14903.  
  14904. ΓòÉΓòÉΓòÉ 12.34.3. MULTIPLY Statement Considerations ΓòÉΓòÉΓòÉ
  14905.  
  14906. The composite of operands must not contain more than 18 digits. 
  14907.  
  14908. -----IBM Extension----- 
  14909.  
  14910. The composite of all operands in an arithmetic statement can have a maximum 
  14911. length of 30 digits. 
  14912.  
  14913. ---End of IBM Extension--- 
  14914.  
  14915. Note:   Intermediate results generated during the execution of a MULTIPLY 
  14916.         statement are system-specific and can affect program portability. 
  14917.  
  14918.  
  14919. ΓòÉΓòÉΓòÉ 12.35. OPEN Statement ΓòÉΓòÉΓòÉ
  14920.  
  14921. The OPEN statement initiates the processing of files and checks or writes 
  14922. labels. 
  14923.  
  14924. The OPEN statement varies depending on the type of file. 
  14925.  
  14926. The OPEN statement has three formats: 
  14927.  
  14928.   Format 1 - Sequential Files 
  14929.   Format 2 - Indexed and Relative Files 
  14930.    -----IBM Extension----- 
  14931.   Format 3 - TRANSACTION Files 
  14932.    ---End of IBM Extension--- 
  14933.  
  14934.  Related Information: 
  14935.  
  14936.   OPEN Statement Considerations 
  14937.   OPEN Statement Programming Notes 
  14938.  
  14939.  
  14940. ΓòÉΓòÉΓòÉ 12.35.1. OPEN Statement - Format 1 - Sequential ΓòÉΓòÉΓòÉ
  14941.  
  14942. ΓöîΓöÇΓöÇΓöÇ OPEN STATEMENT - FORMAT 1 - SEQUENTIAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14943. Γöé                                        Γöé
  14944. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ     Γöé
  14945. Γöé      Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé     Γöé
  14946. Γöé                                 Γöé   Γöé     Γöé
  14947. Γöé >>ΓöÇΓöÇOPENΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇINPUTΓöÇΓöÇΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><   Γöé
  14948. Γöé       Γöé            Γö£ΓöÇREVERSEDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ   Γöé      Γöé
  14949. Γöé       Γöé            ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇNO  REWINDΓöÇΓöÿ   Γöé      Γöé
  14950. Γöé       Γöé             ΓööΓöÇWITHΓöÇΓöÿ          Γöé      Γöé
  14951. Γöé       Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé      Γöé
  14952. Γöé       Γöé                          Γöé Γöé      Γöé
  14953. Γöé       Γö£ΓöÇOUTPUTΓöÇΓöÇΓöÇΓöÇfile-name-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöñ      Γöé
  14954. Γöé       Γöé             ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇNO  REWINDΓöÇΓöÿ  Γöé      Γöé
  14955. Γöé       Γöé              ΓööΓöÇWITHΓöÇΓöÿ          Γöé      Γöé
  14956. Γöé       Γöé    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                Γöé      Γöé
  14957. Γöé       Γöé           Γöé                Γöé      Γöé
  14958. Γöé       Γö£ΓöÇI-OΓöÇΓöÇΓöÇΓöÇΓöÇfile-name-3ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ      Γöé
  14959. Γöé       Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ               Γöé      Γöé
  14960. Γöé       Γöé            Γöé               Γöé      Γöé
  14961. Γöé       ΓööΓöÇEXTENDΓöÇΓöÇΓöÇΓöÇfile-name-4ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  14962. Γöé                                        Γöé
  14963. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14964.  
  14965.  
  14966. ΓòÉΓòÉΓòÉ 12.35.2. OPEN Statement - Format 2 - Indexed and Relative ΓòÉΓòÉΓòÉ
  14967.  
  14968. ΓöîΓöÇΓöÇΓöÇ OPEN STATEMENT - FORMAT 2 - INDEXED AND RELATIVE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14969. Γöé                                        Γöé
  14970. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  14971. Γöé      Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   Γöé                   Γöé
  14972. Γöé                   Γöé   Γöé                   Γöé
  14973. Γöé >>ΓöÇΓöÇOPENΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇINPUTΓöÇΓöÇΓöÇΓöÇfile-name-1ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><                 Γöé
  14974. Γöé       Γöé     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                    Γöé
  14975. Γöé       Γöé            Γöé Γöé                    Γöé
  14976. Γöé       Γö£ΓöÇOUTPUTΓöÇΓöÇΓöÇΓöÇfile-name-2ΓöÇΓö┤ΓöÇΓöñ                    Γöé
  14977. Γöé       Γöé    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ  Γöé                    Γöé
  14978. Γöé       Γöé           Γöé  Γöé                    Γöé
  14979. Γöé       ΓööΓöÇI-OΓöÇΓöÇΓöÇΓöÇΓöÇfile-name-3ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÿ                    Γöé
  14980. Γöé                                        Γöé
  14981. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  14982.  
  14983. For relative files only, the OPEN statement is not allowed for logical file 
  14984. members: 
  14985.  
  14986.   That are based on more than one physical file 
  14987.   That contain select or omit logic 
  14988.  
  14989.  
  14990. ΓòÉΓòÉΓòÉ 12.35.3. OPEN Statement - Format 3 - TRANSACTION ΓòÉΓòÉΓòÉ
  14991.  
  14992. -----IBM Extension----- 
  14993.  
  14994. ΓöîΓöÇΓöÇΓöÇ OPEN STATEMENT - FORMAT 3 - TRANSACTION ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  14995. Γöé                                        Γöé
  14996. Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                        Γöé
  14997. Γöé                Γöé                        Γöé
  14998. Γöé >>ΓöÇΓöÇOPENΓöÇΓöÇI-OΓöÇΓöÇΓöÇΓöÇΓöÇfile-name-3ΓöÇΓö┤ΓöÇΓöÇ><                      Γöé
  14999. Γöé                                        Γöé
  15000. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15001.  
  15002. The OPEN statement can cause a program device to be implicitly acquired for a 
  15003. TRANSACTION file. For a further discussion about the acquiring of program 
  15004. devices, see the ACQUIRE Statement. 
  15005.  
  15006. ---End of IBM Extension--- 
  15007.  
  15008.  
  15009. ΓòÉΓòÉΓòÉ 12.35.4. OPEN Statement Considerations ΓòÉΓòÉΓòÉ
  15010.  
  15011. The successful execution of an OPEN statement determines the availability of 
  15012. the file and results in that file being in an open mode. The file is 
  15013. unavailable if the OPEN operation fails. A file is available if it is 
  15014. physically present and is recognized by the input-output control system. OPEN 
  15015. Statement Programming Notes shows the results of opening available and 
  15016. unavailable files. 
  15017.  
  15018. Related Information: 
  15019.  
  15020.   Special Considerations for Device Type DATABASE 
  15021.  
  15022.  
  15023. ΓòÉΓòÉΓòÉ 12.35.4.1. Special Considerations for Device Type DATABASE ΓòÉΓòÉΓòÉ
  15024.  
  15025. -----IBM Extension----- 
  15026.  
  15027. The file may be placed under commitment control. 
  15028.  
  15029. ---End of IBM Extension--- 
  15030.  
  15031. If the file contains null-capable fields, a file status of 0P is set. COBOL I-O 
  15032. statements do not support records that contain null fields. However, records in 
  15033. a null-capable file that do not contain null fields may be processed. 
  15034.  
  15035.  
  15036. ΓòÉΓòÉΓòÉ 12.35.5. INPUT Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15037.  
  15038. The file is opened for input operations. The file position indicator is set to 
  15039. the first record in the file.  If no records exist in the file, the file 
  15040. position indicator is set so that processing of the first sequential READ 
  15041. statement results in an AT END condition. 
  15042.  
  15043. If SELECT OPTIONAL is specified in the file-control entry, OPEN statement 
  15044. processing causes the program to check for the presence or absence of this file 
  15045. at run time.  If the file is absent, the first READ statement for this file 
  15046. causes the AT END condition to occur. 
  15047.  
  15048. Under the OPTION(*NOBLK) option, the compiler generates code to block output 
  15049. records and unblock input records if the following conditions are satisfied: 
  15050.  
  15051.   The file access is sequential. 
  15052.  
  15053.   The organization of the file is sequential and the file is open only for 
  15054.    input or output. 
  15055.  
  15056.   The file is assigned to DISK, DATABASE, DISKETTE, or TAPEFILE. 
  15057.  
  15058.  The BLOCK CONTAINS clause does not control the blocking factor for any files 
  15059.  except tape files. The BLOCK CONTAINS clause controls the blocking factor for 
  15060.  all files. 
  15061.  
  15062.  Related Information: 
  15063.  
  15064.   Special Considerations for Device Types DATABASE, TAPEFILE, and DISKETTE 
  15065.   Special Considerations for Device Types DISK and DATABASE 
  15066.  
  15067.  
  15068. ΓòÉΓòÉΓòÉ 12.35.5.1. Special Considerations for Device Types DATABASE, TAPEFILE, and DISKETTE ΓòÉΓòÉΓòÉ
  15069.  
  15070. If SELECT OPTIONAL is specified in the file-control entry and OPTION(*CRTF) is 
  15071. specified in the CRTCBLMOD or CRTBNDCBL command, this combination is not valid. 
  15072.  
  15073.  
  15074. ΓòÉΓòÉΓòÉ 12.35.5.2. Special Considerations for Device Types DISK and DATABASE ΓòÉΓòÉΓòÉ
  15075.  
  15076. -----IBM Extension----- 
  15077.  
  15078. The first record to be made available to the program can be specified at run 
  15079. time by using the POSITION parameter on the OVRDBF CL command. 
  15080.  
  15081. ---End of IBM Extension--- 
  15082.  
  15083.  
  15084. ΓòÉΓòÉΓòÉ 12.35.6. OUTPUT Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15085.  
  15086. The file is opened to allow only output operations.  When the file is 
  15087. successfully opened, it contains no records. 
  15088.  
  15089. Under OPTION(*NOBLK), the compiler generates code to block output records and 
  15090. unblock input records if the following conditions are satisfied: 
  15091.  
  15092.   The file access is sequential. 
  15093.  
  15094.   The organization of the file is sequential and the file is open only for 
  15095.    input or output. 
  15096.  
  15097.   The file is assigned to DISK, DATABASE, DISKETTE, or TAPEFILE. 
  15098.  
  15099.  The BLOCK CONTAINS clause does not control the blocking factor for any files 
  15100.  except tape files. 
  15101.  
  15102.  Device type FORMATFILE and PRINTER can only be opened for output. 
  15103.  
  15104.  Related Information: 
  15105.  
  15106.   Special Considerations for Device Type DISK 
  15107.   Special Considerations for Device Types DISK, DATABASE, and FORMATFILE 
  15108.  
  15109.  
  15110. ΓòÉΓòÉΓòÉ 12.35.6.1. Special Considerations for Device Type DISK ΓòÉΓòÉΓòÉ
  15111.  
  15112. The default in the CRTCBLMOD or CRTBNDCBL command is OPTION(*NOCRTF). If the 
  15113. file is unavailable, it will not be created by the OPEN operation. For dynamic 
  15114. file creation, specify OPTION(*CRTF) in the CRTCBLMOD or CRTBNDCBL command. 
  15115.  
  15116. Note:   The maximum record length for a file that can be created dynamically is 
  15117.         32 766. 
  15118.  
  15119.  
  15120. ΓòÉΓòÉΓòÉ 12.35.6.2. Special Considerations for Device Types DISK, DATABASE, and FORMATFILE ΓòÉΓòÉΓòÉ
  15121.  
  15122. -----IBM Extension----- 
  15123.  
  15124. Only a physical file is cleared when opened for OUTPUT. When the file is 
  15125. successfully opened, it contains no records.  If an attempt is made to open a 
  15126. logical file for OUTPUT, the file is opened but no records are deleted. The 
  15127. file is treated as though the EXTEND phrase had been specified. To clear a 
  15128. logical file, all the members on which the logical file is based should be 
  15129. cleared. 
  15130.  
  15131. ---End of IBM Extension--- 
  15132.  
  15133.  
  15134. ΓòÉΓòÉΓòÉ 12.35.7. I-O Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15135.  
  15136. Only device types DISK and DATABASE can be opened for I-O. 
  15137.  
  15138. The file is opened for both input and output operations.  The file position 
  15139. indicator is set to the first record in the file.  If no records exist in the 
  15140. file, the file position indicator is set so that processing of the first 
  15141. sequential READ statement results in an AT END condition. 
  15142.  
  15143. -----IBM Extension----- 
  15144.  
  15145. The first record to be made available to the program can be specified at run 
  15146. time by using the POSITION parameter on the OVRDBF CL command. 
  15147.  
  15148. ---End of IBM Extension--- 
  15149.  
  15150. Related Information: 
  15151.  
  15152.   Special Considerations for Device Type DISK 
  15153.  
  15154.  
  15155. ΓòÉΓòÉΓòÉ 12.35.7.1. Special Considerations for Device Type DISK ΓòÉΓòÉΓòÉ
  15156.  
  15157. If the OPTIONAL phrase is used in the SELECT clause for the file, and 
  15158. OPTION(*NOCRTF) is specified in the CRTCBLMOD or CRTBNDCBL command, a 
  15159. compile-time error will occur. If the OPTIONAL phrase is used, and if 
  15160. OPTION(*CRTF) is specified in the CRTCBLMOD or CRTBNDCBL command, the file will 
  15161. be created by the OPEN operation if it is unavailable. For dynamic file 
  15162. creation, specify OPTION(*CRTF) on the CRTCBLMOD or CRTBNDCBL command. If the 
  15163. OPTIONAL phrase is not specified, file status 90 will be returned. 
  15164.  
  15165. Note:   The maximum record length for a file that can be created dynamically is 
  15166. 32 766. 
  15167.  
  15168.  
  15169. ΓòÉΓòÉΓòÉ 12.35.8. NO REWIND Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15170.  
  15171. This phrase applies only to device type TAPEFILE. 
  15172.  
  15173. The OPEN statement does not reposition the file.  The tape must be positioned 
  15174. at the beginning of the desired file before processing of the OPEN statement. 
  15175.  
  15176. If the concept of reels has no meaning for the storage medium (for example, a 
  15177. direct access device), the REVERSED and NO REWIND phrases do not apply. When 
  15178. the phrases are used in this situation, a file status of 07 is set. 
  15179.  
  15180. -----IBM Extension----- 
  15181.  
  15182. The system keeps track of the current position on the tape and automatically 
  15183. positions the tape to the proper place.  When processing a multifile tape 
  15184. volume, all CLOSE statements should specify the NO REWIND phrase.  When the 
  15185. next file on the volume is opened, the system determines which direction the 
  15186. tape should be moved to most efficiently get to the desired file. 
  15187.  
  15188. ---End of IBM Extension--- 
  15189.  
  15190.  
  15191. ΓòÉΓòÉΓòÉ 12.35.9. REVERSED Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15192.  
  15193. This phrase applies only to device type TAPEFILE. 
  15194.  
  15195. OPEN statement processing positions the file at its end.  Subsequent READ 
  15196. statements make the data records available in reverse order, starting with the 
  15197. last record.  REVERSED can only be specified for input files. 
  15198.  
  15199. If the concept of reels has no meaning for the storage medium (for example, a 
  15200. direct access device), the REVERSED and NO REWIND phrases do not apply. When 
  15201. the phrases are used in this situation, a file status of 07 is set. 
  15202.  
  15203.  
  15204. ΓòÉΓòÉΓòÉ 12.35.10. EXTEND Phrase (Sequential Files) ΓòÉΓòÉΓòÉ
  15205.  
  15206. Device types TAPEFILE, DISK, and DATABASE may be opened as EXTEND. 
  15207.  
  15208. The EXTEND phrase permits opening the file for output operations. OPEN EXTEND 
  15209. statement processing prepares the file for the addition of records.  These 
  15210. additional records immediately follow the last record in the file.  Subsequent 
  15211. WRITE statements add records as if the file had been opened for OUTPUT. The 
  15212. EXTEND phrase can be specified when a file is being created. 
  15213.  
  15214. Related Information: 
  15215.  
  15216.   Special Considerations for Device Type DISK 
  15217.  
  15218.  
  15219. ΓòÉΓòÉΓòÉ 12.35.10.1. Special Considerations for Device Type DISK ΓòÉΓòÉΓòÉ
  15220.  
  15221. If the OPTIONAL phrase is used in the SELECT clause for the file, and 
  15222. OPTION(*NOCRTF) is specified in the CRTCBLMOD or CRTBNDCBL command, a 
  15223. compile-time error will occur. If the OPTIONAL phrase is used, and if 
  15224. OPTION(*CRTF) is specified in the CRTCBLMOD or CRTBNDCBL command, the file is 
  15225. created by the OPEN operation if it is unavailable (and the authority of the 
  15226. file is inherited from the job profile). For dynamic file creation, specify 
  15227. OPTION(*CRTF) on the CRTCBLMOD or CRTBNDCBL command. If the OPTIONAL phrase is 
  15228. not specified, file status 90 will be returned. 
  15229.  
  15230. Note:   The maximum record length for a file that can be created dynamically is 
  15231. 32 766. 
  15232.  
  15233.  
  15234. ΓòÉΓòÉΓòÉ 12.35.11. INPUT Phrase (Indexed and Relative Files) ΓòÉΓòÉΓòÉ
  15235.  
  15236. The file is opened for input operations. The file position indicator is set to 
  15237. the first record in the file.  If no records exist in the file, the file 
  15238. position indicator is set so that processing of the first sequential READ 
  15239. statement results in an AT END condition. 
  15240.  
  15241. Related Information: 
  15242.  
  15243.   Special Considerations for Sequential Access Mode 
  15244.   Special Considerations for Dynamic Access Mode 
  15245.  
  15246.  
  15247. ΓòÉΓòÉΓòÉ 12.35.11.1. Special Considerations for Sequential Access Mode ΓòÉΓòÉΓòÉ
  15248.  
  15249. -----IBM Extension----- 
  15250.  
  15251. The first record to be made available to the program can be specified at run 
  15252. time by using the POSITION parameter on the OVRDBF CL command. 
  15253.  
  15254. ---End of IBM Extension--- 
  15255.  
  15256. Under OPTION(*NOBLK), the compiler generates code to block output records and 
  15257. unblock input records if the following conditions are satisfied: 
  15258.  
  15259.   The file access is sequential. 
  15260.  
  15261.   The organization of the file is indexed and the file is open only for input 
  15262.    or output; or the organization of the file is relative, and the file is open 
  15263.    only for input. 
  15264.  
  15265.   The file is assigned to DISK or DATABASE 
  15266.  
  15267.   No START statements are specified for the file. 
  15268.  
  15269.  The BLOCK CONTAINS clause does not control the blocking factor. 
  15270.  
  15271.  START statements are allowed if you specify both OPTION(*BLK) and the BLOCK 
  15272.  CONTAINS clause. The BLOCK CONTAINS clause controls the blocking factor for 
  15273.  all files. 
  15274.  
  15275.  
  15276. ΓòÉΓòÉΓòÉ 12.35.11.2. Special Considerations for Dynamic Access Mode ΓòÉΓòÉΓòÉ
  15277.  
  15278. -----IBM Extension----- 
  15279.  
  15280. The first record to be made available to the program can be specified at run 
  15281. time by using the POSITION parameter on the OVRDBF CL command. 
  15282.  
  15283. ---End of IBM Extension--- 
  15284.  
  15285. Also, under OPTION(*BLK), the BLOCK CONTAINS clause causes the compiler to 
  15286. generate code that blocks output records and unblocks input records if the 
  15287. following conditions are satisfied: 
  15288.  
  15289.   The file access is dynamic. 
  15290.  
  15291.   The organization of the file is indexed and the file is open only for input 
  15292.    or output; or the organization of the file is relative, and the file is open 
  15293.    only for input. 
  15294.  
  15295.   The file is assigned to DISK or DATABASE. 
  15296.  
  15297.  If the BLOCK CONTAINS clause specifies a record size of zero, the system 
  15298.  default blocking factor applies. 
  15299.  
  15300.  
  15301. ΓòÉΓòÉΓòÉ 12.35.12. OUTPUT Phrase (Indexed and Relative Files) ΓòÉΓòÉΓòÉ
  15302.  
  15303. -----IBM Extension----- 
  15304.  
  15305. Only a physical file is cleared when opened for OUTPUT. When the file is 
  15306. successfully opened, it contains no records.  If an attempt is made to open a 
  15307. logical file for OUTPUT, the file is opened but no records are deleted. To 
  15308. clear a logical file, all the members on which the logical file is based should 
  15309. be cleared. 
  15310.  
  15311. ---End of IBM Extension--- 
  15312.  
  15313. Related Information: 
  15314.  
  15315.   Special Considerations for Device Type DISK 
  15316.   Special Considerations for Indexed Files - Sequential Access 
  15317.   Special Considerations for Indexed Files - Dynamic Access 
  15318.  
  15319.  
  15320. ΓòÉΓòÉΓòÉ 12.35.12.1. Special Considerations for Device Type DISK ΓòÉΓòÉΓòÉ
  15321.  
  15322. If the file is unavailable, it will not be created by the OPEN operation if 
  15323. OPTION(*NOCRTF) is specified in the CRTCBLMOD or CRTBNDCBL command. For dynamic 
  15324. file creation, specify OPTION(*CRTF) in the CRTCBLMOD or CRTBNDCBL command. 
  15325. (*NOCRTF is the default unless otherwise specified.) 
  15326.  
  15327. Note:   The maximum record length for a file that can be created dynamically is 
  15328.         32 766. 
  15329.  
  15330.  
  15331. ΓòÉΓòÉΓòÉ 12.35.12.2. Special Considerations for Indexed Files - Sequential Access ΓòÉΓòÉΓòÉ
  15332.  
  15333. Under OPTION(*NOBLK), the compiler generates code to block output records and 
  15334. unblock input records if the following conditions are satisfied: 
  15335.  
  15336.   The file access is sequential. 
  15337.  
  15338.   The organization of the file is indexed and the file is open only for input 
  15339.    or output. 
  15340.  
  15341.   The file is assigned to DISK or DATABASE 
  15342.  
  15343.   No START statements are specified for the file. 
  15344.  
  15345.  The BLOCK CONTAINS clause does not control the blocking factor. 
  15346.  
  15347.  If you specify both OPTION(*BLK) and the BLOCK CONTAINS clause, the blocking 
  15348.  factor applies. 
  15349.  
  15350.  
  15351. ΓòÉΓòÉΓòÉ 12.35.12.3. Special Considerations for Indexed Files - Dynamic Access ΓòÉΓòÉΓòÉ
  15352.  
  15353. Under OPTION(*BLK), the BLOCK CONTAINS clause causes the compiler to generate 
  15354. code that blocks output records and unblocks input records if the following 
  15355. conditions are satisfied: 
  15356.  
  15357.   The file access is dynamic. 
  15358.  
  15359.   The organization of the file is indexed and the file is open only for input 
  15360.    or output. 
  15361.  
  15362.   The file is assigned to DISK or DATABASE. 
  15363.  
  15364.  If the BLOCK CONTAINS clause specifies a record size of zero, the system 
  15365.  default blocking factor applies. 
  15366.  
  15367.  
  15368. ΓòÉΓòÉΓòÉ 12.35.13. I-O Phrase (Indexed and Relative Files) ΓòÉΓòÉΓòÉ
  15369.  
  15370. The file is opened for both input and output operations.  The file position 
  15371. indicator is set to the first record in the file.  If no records exist in the 
  15372. file, the file position indicator is set so that processing of the first 
  15373. sequential READ statement results in an AT END condition. 
  15374.  
  15375. Related Information: 
  15376.  
  15377.   Special Considerations for Sequential or Dynamic Access Modes 
  15378.  
  15379.  
  15380. ΓòÉΓòÉΓòÉ 12.35.13.1. Special Considerations for Sequential or Dynamic Access Modes ΓòÉΓòÉΓòÉ
  15381.  
  15382. -----IBM Extension----- 
  15383.  
  15384. The first record to be made available to the program can be specified at run 
  15385. time by using the POSITION parameter on the OVRDBF CL command. 
  15386.  
  15387. ---End of IBM Extension--- 
  15388.  
  15389.  
  15390. ΓòÉΓòÉΓòÉ 12.35.14. OPEN Statement Programming Notes ΓòÉΓòÉΓòÉ
  15391.  
  15392. The successful execution of an OPEN statement determines the availability of 
  15393. the files and results in that file being in open mode. 
  15394.  
  15395.   1. The successful execution of the OPEN statement makes the associated record 
  15396.      area available to the program; it does not obtain or release the first 
  15397.      data record. 
  15398.  
  15399.   2. An OPEN statement must be successfully executed prior to the execution of 
  15400.      any of the permissible input-output statements, except a SORT or MERGE 
  15401.      statement with the USING or GIVING phrase. 
  15402.  
  15403.   3. The READ statement is executed on a file which is open for INPUT or I-O. 
  15404.  
  15405.   4. The WRITE statement is executed on a file which is open for OUTPUT or 
  15406.      EXTEND (sequential files only). The WRITE statement is also executed on an 
  15407.      indexed or relative file which is open for I-O in random or dynamic access 
  15408.      mode, and on a TRANSACTION file open for I-O. 
  15409.  
  15410.   5. The REWRITE statement is executed on a file which is open for I-O. 
  15411.  
  15412.   6. The START statement is executed on an indexed or relative file which is 
  15413.      open for INPUT or I-O. 
  15414.  
  15415.   7. The DELETE statement is executed on an indexed or relative file which is 
  15416.      open for I-O. 
  15417.  
  15418.   8. A file may be opened for INPUT, OUTPUT, I-O, or EXTEND (sequential files 
  15419.      only) in the same program. After the first OPEN statement execution for a 
  15420.      given file, each subsequent OPEN statement execution must be preceded by a 
  15421.      successful CLOSE file statement execution without the REEL or UNIT phrase 
  15422.      (for sequential files only), or the LOCK phrase. 
  15423.  
  15424.   9. If the FILE STATUS clause is specified in the FILE-CONTROL entry, the 
  15425.      associated status key is updated when the OPEN statement is executed. For 
  15426.      more information about the status key, refer to Common Processing 
  15427.      Facilities. 
  15428.  
  15429.  10. If an OPEN statement is issued for a file already in the open status, the 
  15430.      EXCEPTION/ERROR procedure (if specified) for this file is executed and 
  15431.      file status 41 is returned. 
  15432.  
  15433.  
  15434. ΓòÉΓòÉΓòÉ 12.36. PERFORM Statement ΓòÉΓòÉΓòÉ
  15435.  
  15436. The PERFORM statement transfers control explicitly to one or more procedures 
  15437. and implicitly returns control to the next executable statement after execution 
  15438. of the specified procedure(s) or imperative statements is completed. 
  15439.  
  15440. The PERFORM statement can be: 
  15441.  
  15442.  An out-of-line PERFORM statement 
  15443.            Procedure-name-1 is specified. 
  15444.  
  15445.  An in-line PERFORM statement 
  15446.            Procedure-name-1 is omitted. 
  15447.  
  15448.            An in-line PERFORM must be delimited by the END-PERFORM phrase. 
  15449.  
  15450.  The in-line and out-of-line formats cannot be combined. For example, if 
  15451.  procedure-name-1 is specified, the imperative-statement and the END-PERFORM 
  15452.  phrase must not be specified. 
  15453.  
  15454.  There are four PERFORM statement formats: 
  15455.  
  15456.   Format 1 - Basic PERFORM 
  15457.   Format 2 - PERFORM with TIMES Phrase 
  15458.   Format 3 - PERFORM with UNTIL Phrase 
  15459.   Format 4 - PERFORM with VARYING Phrase 
  15460.  
  15461.  Related Information: 
  15462.  
  15463.   Nested PERFORM Statements 
  15464.  
  15465.  
  15466. ΓòÉΓòÉΓòÉ 12.36.1. Basic PERFORM Statement ΓòÉΓòÉΓòÉ
  15467.  
  15468. The procedure(s) referenced in the basic PERFORM statement are executed once, 
  15469. and control then passes to the next executable statement following the PERFORM 
  15470. statement. 
  15471.  
  15472. ΓöîΓöÇΓöÇΓöÇ PERFORM STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15473. Γöé                                        Γöé
  15474. Γöé >>ΓöÇΓöÇPERFORMΓöÇΓöÇΓö¼ΓöÇprocedure-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  15475. Γöé        Γöé          ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ Γöé     Γöé
  15476. Γöé        Γöé           ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé     Γöé
  15477. Γöé        ΓööΓöÇimperative-statementΓöÇΓöÇEND-PERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé
  15478. Γöé                                        Γöé
  15479. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15480.  
  15481.  
  15482. ΓòÉΓòÉΓòÉ 12.36.1.1. In-line PERFORM Statement ΓòÉΓòÉΓòÉ
  15483.  
  15484. An in-line PERFORM statement functions according to the same general rules as 
  15485. an otherwise identical out-of-line PERFORM statement, except that statements 
  15486. contained within the in-line PERFORM are executed in place of the statements 
  15487. contained within the range of procedure-name-1 (through procedure-name-2, if 
  15488. specified). Unless specifically qualified by the word in-line or out-of-line, 
  15489. all the rules that apply to the out-of-line PERFORM statement also apply to the 
  15490. in-line PERFORM. 
  15491.  
  15492.  
  15493. ΓòÉΓòÉΓòÉ 12.36.1.2. Out-of-line PERFORM Statement ΓòÉΓòÉΓòÉ
  15494.  
  15495. Whenever an out-of-line PERFORM statement is executed, control is transferred 
  15496. to the first statement of the procedure named procedure-name-1. Control is 
  15497. always returned to the statement following the PERFORM statement. The point 
  15498. from which this control is returned is determined as follows: 
  15499.  
  15500.   If procedure-name-1 is a paragraph name and procedure-name-2 is not 
  15501.    specified, the return is made after the execution of the last statement of 
  15502.    the procedure-name-1 paragraph. 
  15503.  
  15504.   If procedure-name-1 is a section name and procedure-name-2 is not specified, 
  15505.    the return is made after the execution of the last statement of the last 
  15506.    paragraph in the procedure-name-1 section. 
  15507.  
  15508.   If procedure-name-2 is specified and it is a paragraph name, the return is 
  15509.    made after the execution of the last statement of the procedure-name-2 
  15510.    paragraph. 
  15511.  
  15512.   If procedure-name-2 is specified and it is a section name, the return is 
  15513.    made after the execution of the last statement of the last paragraph in the 
  15514.    procedure-name-2 section. 
  15515.  
  15516.  The only necessary relationship between procedure-name-1 and procedure-name-2 
  15517.  is that a consecutive sequence of operations is executed, beginning at the 
  15518.  procedure named by procedure-name-1 and ending with the execution of the 
  15519.  procedure named by procedure-name-2. 
  15520.  
  15521.  
  15522. ΓòÉΓòÉΓòÉ 12.36.1.3. Nested PERFORM Statements ΓòÉΓòÉΓòÉ
  15523.  
  15524. PERFORM statements may be specified within the performed procedure. If there 
  15525. are two or more logical paths to the return point, then procedure-name-2 may 
  15526. name a paragraph that consists only of an EXIT statement; all the paths to the 
  15527. return point must then lead to this paragraph. 
  15528.  
  15529. When both procedure-name-1 and procedure-name-2 are specified, GO TO and 
  15530. PERFORM statements can appear within the sequence of statements contained in 
  15531. these paragraphs or sections.  A GO TO statement should not refer to a 
  15532. procedure-name outside the range of procedure-name-1 through procedure-name-2. 
  15533. If this is done, results are unpredictable and are not diagnosed. 
  15534.  
  15535. When only procedure-name-1 is specified, PERFORM and GO TO statements can 
  15536. appear within the procedure. A GO TO statement should not refer to a 
  15537. procedure-name outside the range of procedure-name-1.  If this is done, results 
  15538. are unpredictable and are not diagnosed. 
  15539.  
  15540. When the performed procedures include another PERFORM statement, the sequence 
  15541. of procedures associated with the embedded PERFORM statement must be totally 
  15542. included in or totally excluded from the performed procedures of the first 
  15543. PERFORM statement. That is, an active PERFORM statement whose execution point 
  15544. begins within the range of performed procedures of another active PERFORM 
  15545. statement must not allow control to pass through the exit point of the other 
  15546. active PERFORM statement. In addition, two or more such active PERFORM 
  15547. statements must not have a common exit. 
  15548.  
  15549. -----IBM Extension----- 
  15550.  
  15551. Two or more active PERFORM statements can have a common exit point. 
  15552.  
  15553. ---End of IBM Extension--- 
  15554.  
  15555. When control passes to the sequence of procedures by means other than a PERFORM 
  15556. statement, control passes through the exit point to the next executable 
  15557. statement, as if no PERFORM statement referred to these procedures. 
  15558.  
  15559.  
  15560. ΓòÉΓòÉΓòÉ 12.36.2. PERFORM with TIMES Phrase ΓòÉΓòÉΓòÉ
  15561.  
  15562. The procedure(s) referred to in the TIMES phrase PERFORM statement are executed 
  15563. the number of times specified by the value in identifier-1 or integer-1. 
  15564. Control then passes to the next executable statement following the PERFORM 
  15565. statement. 
  15566.  
  15567. ΓöîΓöÇΓöÇΓöÇ PERFORM STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15568. Γöé                                        Γöé
  15569. Γöé >>ΓöÇΓöÇPERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15570. Γöé                                        Γöé
  15571. Γöé >ΓöÇΓöÇΓö¼ΓöÇprocedure-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ phrase 1 Γö£ΓöÇΓö¼ΓöÇΓöÇ>< Γöé
  15572. Γöé   Γöé          ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ        Γöé   Γöé
  15573. Γöé   Γöé           ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé   Γöé
  15574. Γöé   ΓööΓöÇΓöñ phrase 1 Γö£ΓöÇΓöÇimperative-statementΓöÇΓöÇEND-PERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé
  15575. Γöé                                        Γöé
  15576. Γöé PHRASE-1:                                   Γöé
  15577. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÇTIMESΓöÇΓöÇΓöñ                         Γöé
  15578. Γöé   ΓööΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  15579. Γöé                                        Γöé
  15580. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15581.  
  15582.  
  15583. ΓòÉΓòÉΓòÉ 12.36.3. PERFORM with UNTIL Phrase ΓòÉΓòÉΓòÉ
  15584.  
  15585. In the UNTIL phrase format, the procedure(s) referred to are performed until 
  15586. the condition specified by the UNTIL phrase is true. Control is then passed to 
  15587. the next executable statement following the PERFORM statement. 
  15588.  
  15589. ΓöîΓöÇΓöÇΓöÇ PERFORM STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15590. Γöé                                        Γöé
  15591. Γöé >>ΓöÇΓöÇPERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15592. Γöé                                        Γöé
  15593. Γöé >ΓöÇΓöÇΓö¼ΓöÇprocedure-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ phrase 2 Γö£ΓöÇΓö¼ΓöÇΓöÇ>< Γöé
  15594. Γöé   Γöé          ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ        Γöé   Γöé
  15595. Γöé   Γöé           ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé   Γöé
  15596. Γöé   ΓööΓöÇΓöñ phrase 2 Γö£ΓöÇΓöÇimperative-statementΓöÇΓöÇEND-PERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé
  15597. Γöé                                        Γöé
  15598. Γöé PHRASE 2:                                   Γöé
  15599. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇUNTILΓöÇΓöÇcondition-1ΓöÇΓöÇΓöñ           Γöé
  15600. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTESTΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÿ                       Γöé
  15601. Γöé    ΓööΓöÇWITHΓöÇΓöÿ     ΓööΓöÇAFTERΓöÇΓöÇΓöÿ                        Γöé
  15602. Γöé                                        Γöé
  15603. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15604.  
  15605.  
  15606. ΓòÉΓòÉΓòÉ 12.36.4. PERFORM with VARYING Phrase ΓòÉΓòÉΓòÉ
  15607.  
  15608. The VARYING phrase increases or decreases the value of one or more identifiers 
  15609. or index-names, according to certain rules. (See Varying Phrase Rules.) 
  15610.  
  15611. The Format 4 VARYING phrase PERFORM statement can serially search an entire 
  15612. 7-dimensional table. 
  15613.  
  15614. ΓöîΓöÇΓöÇΓöÇ PERFORM STATEMENT - FORMAT 4 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15615. Γöé                                        Γöé
  15616. Γöé >>ΓöÇΓöÇPERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15617. Γöé                                        Γöé
  15618. Γöé >ΓöÇΓöÇΓö¼ΓöÇprocedure-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ phrase 3 Γö£ΓöÇΓö¼ΓöÇΓöÇ>< Γöé
  15619. Γöé   Γöé          ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ        Γöé   Γöé
  15620. Γöé   Γöé           ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé   Γöé
  15621. Γöé   ΓööΓöÇΓöñ phrase 3 Γö£ΓöÇΓöÇimperative-statement-1ΓöÇΓöÇEND-PERFORMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γöé
  15622. Γöé                                        Γöé
  15623. Γöé PHRASE 3:                                   Γöé
  15624. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇFROMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15625. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇTESTΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÿ      ΓööΓöÇindex-name-1ΓöÇΓöÿ         Γöé
  15626. Γöé    ΓööΓöÇWITHΓöÇΓöÿ     ΓööΓöÇAFTERΓöÇΓöÇΓöÿ                        Γöé
  15627. Γöé                                        Γöé
  15628. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÇUNTILΓöÇΓöÇcondition-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15629. Γöé   Γö£ΓöÇindex-name-2ΓöÇΓöñ    ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  15630. Γöé   ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  15631. Γöé                                        Γöé
  15632. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                          Γöé
  15633. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                            Γöé
  15634. Γöé   Γöé         Γöé Γöé                            Γöé
  15635. Γöé   ΓööΓöÇΓöÇΓöÇΓöñ phrase 4 Γö£ΓöÇΓö┤ΓöÇΓöÿ                            Γöé
  15636. Γöé                                        Γöé
  15637. Γöé PHRASE 4:                                   Γöé
  15638. Γöé Γö£ΓöÇΓöÇAFTERΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇFROMΓöÇΓöÇΓö¼ΓöÇidentifier-6ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15639. Γöé      ΓööΓöÇindex-name-3ΓöÇΓöÿ     Γö£ΓöÇindex-name-4ΓöÇΓöñ              Γöé
  15640. Γöé                  ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ              Γöé
  15641. Γöé                                        Γöé
  15642. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-7ΓöÇΓö¼ΓöÇΓöÇUNTILΓöÇΓöÇcondition-2ΓöÇΓöÇΓöñ                  Γöé
  15643. Γöé   ΓööΓöÇliteral-4ΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  15644. Γöé                                        Γöé
  15645. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15646.  
  15647. Related Information: 
  15648.  
  15649.   VARYING Phrase Rules 
  15650.   Varying One Identifier Example 
  15651.   Varying Two Identifiers Example 
  15652.   Varying Three Identifiers Example 
  15653.   Varying More Than Three Identifiers Example 
  15654.  
  15655.  
  15656. ΓòÉΓòÉΓòÉ 12.36.4.1. Varying Identifiers ΓòÉΓòÉΓòÉ
  15657.  
  15658. The way in which operands are increased or decreased depends on the number of 
  15659. variables specified. In the following discussion, every reference to 
  15660. identifier-n refers equally to index-name-n (except when identifier-n is the 
  15661. object of the BY phrase). 
  15662.  
  15663. If identifier-2 or identifier-5 is subscripted, the subscripts are evaluated 
  15664. each time the content of the data item referenced by the identifier is set or 
  15665. augmented. If identifier-3, identifier-4, identifier-6, or identifier-7 is 
  15666. subscripted, the subscripts are evaluated each time the content of the data 
  15667. item referenced by the identifier is used in a setting or an augmenting 
  15668. operation. 
  15669.  
  15670.  
  15671. ΓòÉΓòÉΓòÉ 12.36.4.2. Varying One Identifier ΓòÉΓòÉΓòÉ
  15672.  
  15673. Example: 
  15674.  
  15675. PERFORM procedure-name-1 THROUGH procedure-name-2
  15676.        VARYING identifier-2 FROM identifier-3
  15677.              BY identifier-4 UNTIL condition-1
  15678.  
  15679.   1. Identifier-2 is set equal to its starting value, identifier-3 (or 
  15680.      literal-1). 
  15681.  
  15682.   2. Condition-1 is evaluated as follows: 
  15683.  
  15684.      a) If it is false, steps 3 through 5 are executed. 
  15685.  
  15686.      b) If it is true, control passes directly to the statement following the 
  15687.         PERFORM statement. 
  15688.  
  15689.   3. Procedure-1 and everything up to and including procedure-2 (if specified) 
  15690.      is executed once. 
  15691.  
  15692.   4. Identifier-2 is augmented by identifier-4 (or literal-2), and condition-1 
  15693.      is evaluated again. 
  15694.  
  15695.   5. Steps 2 through 4 are repeated until condition-1 is true. 
  15696.  At the end of PERFORM statement execution identifier-2 has a value that 
  15697.  exceeds the last-used setting by the increment/decrement value (unless 
  15698.  condition-1 was true at the beginning of PERFORM statement execution, in which 
  15699.  case, identifier-2 contains the current value of identifier-3). 
  15700.  
  15701.  
  15702. ΓòÉΓòÉΓòÉ 12.36.4.3. Varying Two Identifiers ΓòÉΓòÉΓòÉ
  15703.  
  15704. Example: 
  15705.  
  15706. PERFORM procedure-name-1 THROUGH procedure-name-2
  15707.       VARYING identifier-2 FROM identifier-3
  15708.             BY identifier-4 UNTIL condition-1
  15709.          AFTER identifier-5 FROM identifier-6
  15710.             BY identifier-7 UNTIL condition-2
  15711.  
  15712.   1. identifier-2 and identifier-5 are set to their initial values, 
  15713.      identifier-3 and identifier-6, respectively. 
  15714.  
  15715.   2. condition-1 is evaluated as follows: 
  15716.  
  15717.      a) If it is false, steps 3 through 7 are executed. 
  15718.  
  15719.      b) If it is true, control passes directly to the statement following the 
  15720.         PERFORM statement. 
  15721.  
  15722.   3. condition-2 is evaluated as follows: 
  15723.  
  15724.      a) If it is false, steps 4 through 6 are executed. 
  15725.  
  15726.      b) If it is true, identifier-2 is augmented by identifier-4, identifier-5 
  15727.         is set to the current value of identifier-6, and step 2 is repeated. 
  15728.  
  15729.   4. procedure-name-1 and everything up to and including procedure-name-2 (if 
  15730.      specified) are executed once. 
  15731.  
  15732.   5. identifier-5 is augmented by identifier-7. 
  15733.  
  15734.   6. Steps 3 through 5 are repeated until condition-2 is true. 
  15735.  
  15736.   7. Steps 2 through 6 are repeated until condition-1 is true. 
  15737.  
  15738.  At the end of PERFORM statement execution: 
  15739.  
  15740.   identifier-5 contains the current value of identifier-6. 
  15741.  
  15742.   identifier-2 has a value that exceeds the last-used setting by the 
  15743.    increment/decrement value (unless condition-1 was true at the beginning of 
  15744.    PERFORM statement execution, in which case, identifier-2 contains the 
  15745.    current value of identifier-3). 
  15746.  
  15747.  
  15748. ΓòÉΓòÉΓòÉ 12.36.4.4. Varying Three Identifiers ΓòÉΓòÉΓòÉ
  15749.  
  15750. Example: 
  15751.  
  15752. PERFORM procedure-name-1 THROUGH procedure-name-2
  15753.       VARYING identifier-2 FROM identifier-3
  15754.             BY identifier-4 UNTIL condition-1
  15755.           AFTER identifier-5 FROM identifier-6
  15756.             BY identifier-7 UNTIL condition-2
  15757.           AFTER identifier-8 FROM identifier-9
  15758.             BY identifier-10 UNTIL condition-3
  15759.  
  15760. The actions are the same as those for two identifiers, except that identifier-8 
  15761. goes through the complete cycle each time identifier-5 is augmented by 
  15762. identifier-7, which, in turn, goes through a complete cycle each time 
  15763. identifier-2 is varied. 
  15764.  
  15765. At the end of PERFORM statement execution: 
  15766.  
  15767.   identifier-5 and identifier-8 contain the current values of identifier-6 and 
  15768.    identifier-9, respectively. 
  15769.  
  15770.   identifier-2 has a value exceeding its last-used setting by one 
  15771.    increment/decrement value (unless condition-1 was true at the beginning of 
  15772.    PERFORM statement execution, in which case, identifier-2 contains the 
  15773.    current value of identifier-3). 
  15774.  
  15775.  
  15776. ΓòÉΓòÉΓòÉ 12.36.4.5. Varying More Than Three Identifiers ΓòÉΓòÉΓòÉ
  15777.  
  15778. In the VARYING phrase, you may extend the examples above by adding up to four 
  15779. more AFTER phrases, for a total of six AFTER phrases.     . 
  15780.  
  15781.  
  15782. ΓòÉΓòÉΓòÉ 12.36.4.6. Varying Phrase Rules ΓòÉΓòÉΓòÉ
  15783.  
  15784. No matter how many variables are specified, the following rules apply: 
  15785.  
  15786.   1. In the VARYING/AFTER phrases, when an index-name is specified: 
  15787.  
  15788.      a) The index-name is initialized and incremented or decremented according 
  15789.         to the rules under INDEXED BY Phrase. (See also SET Statement.) 
  15790.  
  15791.      b) In the associated FROM phrase, an identifier must be described as an 
  15792.         integer and have a positive value; a literal must be a positive 
  15793.         integer. 
  15794.  
  15795.      c) In the associated BY phrase, an identifier must be described as an 
  15796.         integer; a literal must be a nonzero integer. 
  15797.  
  15798.   2. In the FROM phrase, when an index-name is specified: 
  15799.  
  15800.      a) In the associated VARYING/AFTER phrase, an identifier must be described 
  15801.         as an integer. It is initialized, as described in the SET statement. 
  15802.  
  15803.      b) In the associated BY phrase, an identifier must be described as an 
  15804.         integer and have a nonzero value; a literal must be a nonzero integer. 
  15805.  
  15806.   3. In the BY phrase, identifiers and literals must have nonzero values. 
  15807.  
  15808.   4. Changing the values of identifiers and/or index-names in the VARYING, 
  15809.      FROM, and BY phrases during execution changes the number of times the 
  15810.      procedures are executed. 
  15811.  
  15812.   5. The way in which operands are incremented or decremented depends on the 
  15813.      number of variables specified. 
  15814.  
  15815.  
  15816. ΓòÉΓòÉΓòÉ 12.37. READ Statement ΓòÉΓòÉΓòÉ
  15817.  
  15818. The READ statement makes a record available to the program: 
  15819.  
  15820.   For sequential access, the READ statement makes the next record from a file 
  15821.    available to the object program. 
  15822.   For random access, the READ statement makes a specified record from a 
  15823.    direct-access file available to the object program. 
  15824.  
  15825.  When the READ statement is executed, the associated file must be open in INPUT 
  15826.  or I-O mode. Execution of the READ statement depends on the file organization. 
  15827.  File organization can be: 
  15828.  
  15829.   Sequential 
  15830.   Relative 
  15831.   Indexed 
  15832.  
  15833.  The READ statement has five formats: 
  15834.  
  15835.   Format 1 - Sequential Retrieval/Sequential Access 
  15836.   Format 2 - Sequential Retrieval/Dynamic Access 
  15837.   Format 3 - Random Retrieval 
  15838.    -----IBM Extension----- 
  15839.   Format 4 - Transaction (Nonsubfile) 
  15840.   Format 5 - Transaction (Subfile) 
  15841.    ---End of IBM Extension--- 
  15842.  
  15843.  If the FILE STATUS clause is specified in the file-control entry, the 
  15844.  associated status key is updated when the READ statement is processed. 
  15845.  
  15846.  Following the unsuccessful processing of any READ statement, the contents of 
  15847.  the associated record area and the position of the file position indicator are 
  15848.  undefined. 
  15849.  
  15850.  Related Information: 
  15851.  
  15852.   Sequential Access Mode 
  15853.   Dynamic Access Mode 
  15854.   Random Access Mode 
  15855.   Special Considerations for Device Types DISK and DATABASE 
  15856.   Multiple Record Processing 
  15857.   Multivolume Files 
  15858.  
  15859.  
  15860. ΓòÉΓòÉΓòÉ 12.37.1. Special Considerations for Device Types DISK and DATABASE ΓòÉΓòÉΓòÉ
  15861.  
  15862. Null-capable fields are supported when the READ statement is performed on a 
  15863. file which is found on a DISK or DATABASE device. However, null values are not 
  15864. supported. If any of these fields contain the null value, the READ operation 
  15865. fails and returns a file status of 90. 
  15866.  
  15867.  
  15868. ΓòÉΓòÉΓòÉ 12.37.2. Sequential Access Mode ΓòÉΓòÉΓòÉ
  15869.  
  15870. Format 1 must be used for all files in sequential access mode. 
  15871.  
  15872. Execution of a Format 1 READ statement retrieves the next record from the file. 
  15873. The next record accessed is determined by the file organization. 
  15874.  
  15875.  
  15876. ΓòÉΓòÉΓòÉ 12.37.3. Dynamic Access Mode ΓòÉΓòÉΓòÉ
  15877.  
  15878. For files with indexed or relative organization, dynamic access mode may be 
  15879. specified in the FILE-CONTROL entry. In dynamic access mode, either sequential 
  15880. or random record retrieval can be used, depending on the format used. 
  15881.  
  15882. Format 2 with the NEXT phrase must be specified for sequential retrieval. All 
  15883. other rules for sequential access apply. 
  15884.  
  15885. Format 3 must be specified for random retrieval. All other rules for random 
  15886. access apply. 
  15887.  
  15888.  
  15889. ΓòÉΓòÉΓòÉ 12.37.4. Random Access Mode ΓòÉΓòÉΓòÉ
  15890.  
  15891. Format 3 must be specified for indexed and relative files in random access 
  15892. mode, and also for files in the dynamic access mode when record retrieval is 
  15893. random. 
  15894.  
  15895. Execution of the READ statement depends on the file organization, as explained 
  15896. in following sections. 
  15897.  
  15898.  
  15899. ΓòÉΓòÉΓòÉ 12.37.5. READ Statement - Format 1 - Sequential Retrieval/Sequential Access ΓòÉΓòÉΓòÉ
  15900.  
  15901. ΓöîΓöÇΓöÇΓöÇ READ STATEMENT - FORMAT 1 - SEQUENTIAL RETRIEVAL/ACCESS ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15902. Γöé                                        Γöé
  15903. Γöé >>ΓöÇΓöÇREADΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15904. Γöé            ΓööΓöÇNEXTΓöÇΓöÿ  ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ       Γöé
  15905. Γöé                                        Γöé
  15906. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15907. Γöé   Γöé          (1) Γöé  Γöé    (1)               Γöé    Γöé
  15908. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇNO LOCKΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ    Γöé
  15909. Γöé    ΓööΓöÇWITHΓöÇΓöÿ              ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  15910. Γöé                                        Γöé
  15911. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15912. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ                 Γöé
  15913. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  15914. Γöé                                        Γöé
  15915. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  15916. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  15917. Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                              Γöé
  15918. Γöé                                        Γöé
  15919. Γöé NOTE:                                     Γöé
  15920. Γöé (1)  IBM Extension                              Γöé
  15921. Γöé                                        Γöé
  15922. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15923.  
  15924.  
  15925. ΓòÉΓòÉΓòÉ 12.37.6. READ Statement - Format 2 - Sequential Retrieval/Dynamic Access ΓòÉΓòÉΓòÉ
  15926.  
  15927. ΓöîΓöÇΓöÇΓöÇ READ - FORMAT 2 - SEQUENTIAL RET./DYNAMIC ACCESS ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15928. Γöé                                        Γöé
  15929. Γöé >>ΓöÇΓöÇREADΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇNEXTΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15930. Γöé            Γöé    (1)Γöé  ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ     Γöé
  15931. Γöé            Γö£ΓöÇFIRSTΓöÇΓöÇΓöÇΓöÇΓöñ                       Γöé
  15932. Γöé            Γöé    (1) Γöé                       Γöé
  15933. Γöé            Γö£ΓöÇLASTΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                       Γöé
  15934. Γöé            Γöé    (1)Γöé                       Γöé
  15935. Γöé            ΓööΓöÇPRIORΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  15936. Γöé                                        Γöé
  15937. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15938. Γöé   Γöé          (1) Γöé  Γöé    (1)               Γöé    Γöé
  15939. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇNO LOCKΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ    Γöé
  15940. Γöé    ΓööΓöÇWITHΓöÇΓöÿ              ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ      Γöé
  15941. Γöé                                        Γöé
  15942. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15943. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ                 Γöé
  15944. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  15945. Γöé                                        Γöé
  15946. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  15947. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  15948. Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                              Γöé
  15949. Γöé                                        Γöé
  15950. Γöé NOTE:                                     Γöé
  15951. Γöé (1)  IBM Extension                              Γöé
  15952. Γöé                                        Γöé
  15953. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15954.  
  15955.  
  15956. ΓòÉΓòÉΓòÉ 12.37.7. READ Statement - Format 3 - Random Retrieval ΓòÉΓòÉΓòÉ
  15957.  
  15958. ΓöîΓöÇΓöÇΓöÇ READ STATEMENT - FORMAT 3 - RANDOM RETRIEVAL ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15959. Γöé                                        Γöé
  15960. Γöé >>ΓöÇΓöÇREADΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15961. Γöé            ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ            Γöé
  15962. Γöé                                        Γöé
  15963. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15964. Γöé   Γöé          (1) Γöé  Γöé   (2)            Γöé         Γöé
  15965. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇNO LOCKΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇKEYΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇdata-name-1ΓöÇΓöÿ         Γöé
  15966. Γöé    ΓööΓöÇWITHΓöÇΓöÿ             ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ                Γöé
  15967. Γöé                                        Γöé
  15968. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15969. Γöé   Γöé    (1)               Γöé                 Γöé
  15970. Γöé   ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                 Γöé
  15971. Γöé         ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  15972. Γöé                                        Γöé
  15973. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  15974. Γöé   ΓööΓöÇINVALIDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇimperative-statement-1ΓöÇΓöÿ                Γöé
  15975. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                             Γöé
  15976. Γöé                                        Γöé
  15977. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  15978. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  15979. Γöé          ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  15980. Γöé                                        Γöé
  15981. Γöé NOTES:                                    Γöé
  15982. Γöé (1)  IBM Extension                              Γöé
  15983. Γöé                                        Γöé
  15984. Γöé (2)  Syntax checked only                           Γöé
  15985. Γöé                                        Γöé
  15986. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15987.  
  15988.  
  15989. ΓòÉΓòÉΓòÉ 12.37.8. INTO Phrase ΓòÉΓòÉΓòÉ
  15990.  
  15991. The INTO identifier phrase makes a READ statement equivalent to: 
  15992.  
  15993.   READ file-name RECORD 
  15994.   MOVE record-name TO identifier 
  15995.  
  15996.  After successful processing of the READ statement, the current record becomes 
  15997.  available both in the record-name and identifier. 
  15998.  
  15999.  When the INTO identifier phrase is specified, the current record is moved from 
  16000.  the input area to the identifier area according to the rules for the MOVE 
  16001.  statement without the CORRESPONDING phrase. Any subscripting, indexing, or 
  16002.  reference modification associated with the identifier is evaluated after the 
  16003.  record has been read and immediately before it is transferred to the 
  16004.  identifier. (See also INTO/FROM Identifier Phrase.) 
  16005.  
  16006.  The INTO phrase may be specified in a READ statement if: 
  16007.  
  16008.   Only one record description is subordinate to the file description entry, 
  16009.    or, 
  16010.  
  16011.   All record-names associated with file-name, and the data item referenced by 
  16012.    identifier-1, describe a group item or an elementary alphanumeric item. 
  16013.  
  16014.  When using the INTO identifier phrase with variable length records, the amount 
  16015.  of data moved to the receiver is equal to the length of the variable length 
  16016.  record being read. 
  16017.  
  16018.  
  16019. ΓòÉΓòÉΓòÉ 12.37.9. identifier-1 ΓòÉΓòÉΓòÉ
  16020.  
  16021. Identifier-1 is the receiving field. The current record is moved from the 
  16022. record area to that specified by identifier-1 according to the rules of the 
  16023. MOVE statement without the CORRESPONDING phrase. The following usage notes 
  16024. apply: 
  16025.  
  16026.   The size of the current record depends on the rules specified in the RECORD 
  16027.    clause 
  16028.   If the file description entry contains a RECORD IS VARYING clause, the move 
  16029.    is a group move 
  16030.   The implied MOVE statement occurs only if the execution of the READ 
  16031.    statement is successful 
  16032.   Subscripting or reference modification associated with identifier-1 applies 
  16033.    after reading the record and immediately before it is moved to the data item 
  16034.   The record is available in both the record area and the data item referenced 
  16035.    by identifier-1 
  16036.   The INTO phrase is allowed in a READ statement only if 
  16037.  
  16038.     - Only one record description is subordinate to the file description entry, 
  16039.       or 
  16040.     - All record names associated with file-name-1, and the item referenced by 
  16041.       identifier-1, describe a group item or an elementary alphanumeric item. 
  16042.  
  16043.   The record areas associated with file-name-1 and identifier-1 must not be 
  16044.    the same storage area 
  16045.  
  16046.  
  16047. ΓòÉΓòÉΓòÉ 12.37.10. NO LOCK Phrase ΓòÉΓòÉΓòÉ
  16048.  
  16049. -----IBM Extension----- 
  16050.  
  16051. The NO LOCK phrase prevents the READ operation from obtaining record locks on 
  16052. files that you open in I-O (update) mode. A READ statement bearing this phrase 
  16053. also releases records that have been locked by a previous READ operation. 
  16054.  
  16055. If you use this phrase for a file that is not open in I-O mode, you will 
  16056. receive an error message at compilation time. 
  16057.  
  16058. ---End of IBM Extension--- 
  16059.  
  16060.  
  16061. ΓòÉΓòÉΓòÉ 12.37.11. FORMAT Phrase ΓòÉΓòÉΓòÉ
  16062.  
  16063. -----IBM Extension----- 
  16064.  
  16065. The FORMAT phrase applies only when the READ statement is performed against an 
  16066. indexed file for which the ASSIGN specified DATABASE as the file device type. 
  16067.  
  16068. The value specified in the FORMAT phrase contains the name of the record format 
  16069. to use for this I-O operation.  The system uses this to specify or select which 
  16070. record format to operate on. 
  16071.  
  16072. Identifier-2, if specified, must be an alphanumeric data item of 10 characters 
  16073. or less. 
  16074.  
  16075. Literal-1, if specified,  must be an uppercase character-string of 10 
  16076. characters or less. 
  16077.  
  16078. If the FORMAT phrase is not specified, the first format defined is used when 
  16079. accessing indexed files in random access mode. 
  16080.  
  16081. A value of all blanks is treated as though the FORMAT phrase were not 
  16082. specified.  If the value is not valid for the file, a FILE STATUS of 9K is 
  16083. returned and a USE procedure is invoked, if applicable for the file. 
  16084.  
  16085. When the file is read in sequential access mode, the next record in the keyed 
  16086. sequence access path that has the requested format is made available.  If 
  16087. omitted, the next record in the keyed sequence access path is made available. 
  16088.  
  16089. When the file is read in random access mode, the key as defined for the 
  16090. specified format is used to get a record of that format.  If a record of that 
  16091. format is not found, an INVALID KEY condition is raised. This occurs even when 
  16092. there are records that have the defined key, but that have a different record 
  16093. format. 
  16094.  
  16095. If the format is omitted, the common key for the file is used to get the first 
  16096. record of any format that has that common key value. The common key for a file 
  16097. consists of the key fields common to all formats of a file for records residing 
  16098. on the database. The common key for a file is the leftmost key fields that are 
  16099. common across all record formats in the file.  The common key is built from the 
  16100. data in the record description area using the first record format defined in 
  16101. the program for the file. 
  16102.  
  16103. When the file is read in dynamic access mode, the next record made available is 
  16104. determined as follows: 
  16105.  
  16106. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16107. Γöé             Γöé           FORMAT Phrase          Γöé
  16108. Γöé             Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16109. Γöé             Γöé     Specified     Γöé     Omitted     Γöé
  16110. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16111. Γöé NEXT           Γöé  The next record in the  Γöé  The next record in the Γöé
  16112. Γöé             Γöé  keyed sequence access  Γöé  keyed sequence access  Γöé
  16113. Γöé             Γöé  path having the speci-  Γöé  path is made available Γöé
  16114. Γöé             Γöé   fied format is made  Γöé   regardless of its   Γöé
  16115. Γöé             Γöé     available.     Γöé     format.     Γöé
  16116. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16117. Γöé PRIOR          Γöé  The record in the keyed Γöé The record in the keyed Γöé
  16118. Γöé             Γöé  sequence access path  Γöé  sequence access path  Γöé
  16119. Γöé             Γöé  preceding the record  Γöé  preceding the record  Γöé
  16120. Γöé             Γöé  identified by the file  Γöé  identified by the file Γöé
  16121. Γöé             Γöé   position indicator   Γöé  position indicator is  Γöé
  16122. Γöé             Γöé  having the specified  Γöé  made available regard- Γöé
  16123. Γöé             Γöé  format is made avail-  Γöé  less of its format.  Γöé
  16124. Γöé             Γöé      able.      Γöé             Γöé
  16125. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16126. Γöé FIRST          Γöé  The first record in the Γöé The first record in the Γöé
  16127. Γöé             Γöé  keyed sequence access  Γöé  keyed sequence access  Γöé
  16128. Γöé             Γöé  path having the speci-  Γöé  path is made available Γöé
  16129. Γöé             Γöé   fied format is made  Γöé   regardless of its   Γöé
  16130. Γöé             Γöé     available.     Γöé     format.     Γöé
  16131. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16132. Γöé LAST           Γöé  The last record in the  Γöé  The last record in the Γöé
  16133. Γöé             Γöé  keyed sequence access  Γöé  keyed sequence access  Γöé
  16134. Γöé             Γöé  path having the speci-  Γöé  path is made available Γöé
  16135. Γöé             Γöé   fied format is made  Γöé   regardless of its   Γöé
  16136. Γöé             Γöé     available.     Γöé     format.     Γöé
  16137. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16138. Γöé None of the above    Γöé  The key as defined for  Γöé  The common key for the Γöé
  16139. Γöé             Γöé  the specified format is Γöé file is used to get the Γöé
  16140. Γöé             Γöé  used to get a record of Γöé  first record of any  Γöé
  16141. Γöé             Γöé   that format.  If a   Γöé  format that has that  Γöé
  16142. Γöé             Γöé record of that format is Γöé  common key value.  The Γöé
  16143. Γöé             Γöé  not found, an INVALID  Γöé  common key for a file  Γöé
  16144. Γöé             Γöé KEY condition is raised. Γöé  consists of the key  Γöé
  16145. Γöé             Γöé  This occurs even when  Γöé  fields common to all  Γöé
  16146. Γöé             Γöé  there are records that  Γöé  formats of a file for  Γöé
  16147. Γöé             Γöé  have the defined key,  Γöé records residing on the Γöé
  16148. Γöé             Γöé  but that have a dif-  Γöé  database.  The common  Γöé
  16149. Γöé             Γöé  ferent record format.  Γöé key for a file consists Γöé
  16150. Γöé             Γöé              Γöé  of the leftmost key  Γöé
  16151. Γöé             Γöé              Γöé  fields that are common Γöé
  16152. Γöé             Γöé              Γöé   across all record   Γöé
  16153. Γöé             Γöé              Γöé  formats in the file.  Γöé
  16154. Γöé             Γöé              Γöé The common key is built Γöé
  16155. Γöé             Γöé              Γöé  from the data in the  Γöé
  16156. Γöé             Γöé              Γöé record description area Γöé
  16157. Γöé             Γöé              Γöé  using the first record Γöé
  16158. Γöé             Γöé              Γöé  format defined in the  Γöé
  16159. Γöé             Γöé              Γöé  program for the file.  Γöé
  16160. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16161.  
  16162. ---End of IBM Extension--- 
  16163.  
  16164.  
  16165. ΓòÉΓòÉΓòÉ 12.37.12. AT END Phrase ΓòÉΓòÉΓòÉ
  16166.  
  16167. The AT END phrase applies only when a file is read in sequential access mode or 
  16168. dynamic access mode. 
  16169.  
  16170. If a next record does not exist in the file when a sequential read is 
  16171. processed, an AT END condition occurs (the high order digit of the file status 
  16172. is 1), and READ statement processing is unsuccessful. The following actions 
  16173. take place: 
  16174.  
  16175.   1. If the FILE STATUS clause is specified, the status key is updated to 
  16176.      indicate an AT END condition. 
  16177.  
  16178.   2. If the AT END phrase is specified, control is transferred to the AT END 
  16179.      imperative statement.  Any EXCEPTION/ERROR procedure for this file is not 
  16180.      run. 
  16181.  
  16182.   3. If the AT END phrase is not specified, any EXCEPTION/ERROR procedure for 
  16183.      this file is run. Return from that procedure is to the next executable 
  16184.      statement following the end of the READ statement. 
  16185.  
  16186.  Note:   A sequential read can be a read on a file with sequential access, or, 
  16187.  a read NEXT, FIRST, LAST, or PRIOR, on a file with dynamic access. READ FIRST 
  16188.  and READ LAST will only result in an AT END condition if there are no records 
  16189.  in the file. 
  16190.  
  16191.  When the AT END condition occurs, execution of the READ statement is 
  16192.  unsuccessful. The contents of the associated record area are undefined and the 
  16193.  file position indicator is set to indicate that no valid next record has been 
  16194.  established. 
  16195.  
  16196.  If a sequential READ operation is attempted after an AT END condition has been 
  16197.  raised without an intervening successful START or random READ, it will produce 
  16198.  a file status of 46 and the AT END phrase will not be executed. A READ FIRST 
  16199.  or READ LAST operation will always result in an AT END condition if the file 
  16200.  remains empty. 
  16201.  
  16202.  A READ PRIOR after an AT END condition will also result in a file status of 
  16203.  46. Neither the AT END phrase nor the NOT AT END phrase will be executed. 
  16204.  
  16205.  If an AT END condition does not occur during the execution of a READ 
  16206.  statement, the AT END phrase is ignored, if specified, and the following 
  16207.  actions occur: 
  16208.  
  16209.   1. The file position indicator is set and the I-O status associated with 
  16210.      file-name-1 is updated. 
  16211.  
  16212.   2. If an exception condition which is not an AT END condition exists, control 
  16213.      is transferred according to rules of the USE statement following the 
  16214.      execution of any USE AFTER EXCEPTION procedure applicable to file-name-1. 
  16215.  
  16216.   3. If no exception condition exists, the record is made available in the 
  16217.      record area and any implicit move resulting from the presence of an INTO 
  16218.      phrase is executed.  Control is transferred to the end of the READ 
  16219.      statement or to imperative-statement-2, if specified.  In the latter case, 
  16220.      execution continues according to the rules for each statement specified in 
  16221.      imperative-statement-2.  If a procedure branching or conditional statement 
  16222.      which causes explicit transfer of control is executed, control is 
  16223.      transferred in accordance with the rules for that statement; otherwise, 
  16224.      upon completion of the execution of imperative-statement-2, control is 
  16225.      transferred to the end of the READ statement. 
  16226.  
  16227.  Following the unsuccessful execution of a READ statement, the contents of the 
  16228.  associated record area are undefined and the file position indicator is set to 
  16229.  indicate that no valid next record has been established. 
  16230.  
  16231.  The AT END phrase must be specified if no explicit or implicit EXCEPTION/ERROR 
  16232.  procedure is specified for the file. 
  16233.  
  16234.  When a sequential file is being read and the AT END condition is recognized, a 
  16235.  successful CLOSE statement, followed by a successful OPEN statement must be 
  16236.  processed for this file before processing a READ statement. 
  16237.  
  16238.  When a relative or indexed file is being read and the AT END condition is 
  16239.  recognized, a sequential access READ statement for this file, other than a 
  16240.  READ FIRST or READ LAST statement where permitted, must not be processed 
  16241.  without first processing one of the following: 
  16242.  
  16243.   A successful CLOSE statement followed by a successful OPEN statement. 
  16244.   A successful START statement for this file. 
  16245.   A successful random access READ statement for this file. 
  16246.   A successful READ file-name FIRST or READ file-name LAST where permitted. 
  16247.  
  16248.  
  16249. ΓòÉΓòÉΓòÉ 12.37.13. Sequential Files ΓòÉΓòÉΓòÉ
  16250.  
  16251. Sequential files can be read from the following device types: 
  16252.  
  16253.   TAPEFILE 
  16254.   DISKETTE 
  16255.   DISK 
  16256.   DATABASE 
  16257.  
  16258.  Sequential files can only be read in sequential access mode. 
  16259.  
  16260.  The record that is made available by the READ statement is determined as 
  16261.  follows: 
  16262.  
  16263.   If the file position indicator was set by the processing of an OPEN 
  16264.    statement, the record pointed to is made available. 
  16265.  
  16266.   If the file position indicator was set by the processing of a previous READ 
  16267.    statement, the pointer is updated to point to the next existing record in 
  16268.    the file.  That record is then made available. 
  16269.  
  16270.  If SELECT OPTIONAL is specified in the file-control entry for this file and 
  16271.  the file is not available when this program runs, processing of the first READ 
  16272.  statement causes an AT END condition. Since the file is not available, the 
  16273.  standard system end-of-file processing is not done when the file is closed. 
  16274.  
  16275.  Related Information: 
  16276.  
  16277.   Special Considerations for Device Types TAPEFILE and DISKETTE 
  16278.  
  16279.  
  16280. ΓòÉΓòÉΓòÉ 12.37.14. Special Considerations for Device Types TAPEFILE and DISKETTE ΓòÉΓòÉΓòÉ
  16281.  
  16282. If end of volume is recognized during processing of a READ statement and 
  16283. logical end of file has not been reached, the following actions are taken in 
  16284. the order listed: 
  16285.  
  16286.   1. The standard ending volume label procedure is processed. 
  16287.   2. A volume switch occurs. 
  16288.   3. The standard beginning volume label procedure is run. 
  16289.   4. The first data record of the next volume is made available. 
  16290.  
  16291.  The program receives no indication that the above actions occurred during the 
  16292.  read operation. 
  16293.  
  16294.  
  16295. ΓòÉΓòÉΓòÉ 12.37.15. Relative Files ΓòÉΓòÉΓòÉ
  16296.  
  16297. Relative files can be read from the following device types: 
  16298.  
  16299.   DISK 
  16300.   DATABASE 
  16301.  
  16302.  Relative files can be read in sequential, random, or dynamic access modes. 
  16303.  
  16304.  When a relative file is read in sequential access mode, the record that is 
  16305.  made available by the READ statement is determined as follows: 
  16306.  
  16307.   If the file position indicator was set by the processing of a START or OPEN 
  16308.    statement, the record pointed to is made available if it is still accessible 
  16309.    through the path indicated by the file position indicator.  If the record is 
  16310.    no longer accessible (due, for example, to deletion of the record), the 
  16311.    current record pointer is updated to indicate the next existing record in 
  16312.    the file.  That record is then made available. 
  16313.  
  16314.   If the file position indicator was set by the processing of a previous READ 
  16315.    statement, the file position indicator is updated to point to the next 
  16316.    existing record in the file.  That record is then made available. 
  16317.  
  16318.  If the RELATIVE KEY phrase is specified for this file, READ statement 
  16319.  processing updates the RELATIVE KEY data item to indicate the relative record 
  16320.  number of the record being made available. 
  16321.  
  16322.  When a relative file is read in random access mode, the record with the 
  16323.  relative record number contained in the RELATIVE KEY data item is made 
  16324.  available.  If the file does not contain such a record, the INVALID KEY 
  16325.  condition exists, and READ statement processing is unsuccessful. 
  16326.  
  16327.  
  16328. ΓòÉΓòÉΓòÉ 12.37.16. Indexed Files ΓòÉΓòÉΓòÉ
  16329.  
  16330. Indexed files can be read from the following device types: 
  16331.  
  16332.   DISK 
  16333.   DATABASE 
  16334.  
  16335.  Indexed files can be read in sequential, random, or dynamic access modes. 
  16336.  
  16337.  When an indexed file is read in sequential access mode, the record made 
  16338.  available by the READ statement is determined as follows: 
  16339.  
  16340.   If the file position indicator was set by the processing of a START or OPEN 
  16341.    statement, the record pointed to is made available if it is still accessible 
  16342.    through the path indicated by the current record pointer.  If the record is 
  16343.    no longer accessible (due, for example, to deletion of the record), the file 
  16344.    position indicator is updated to indicate the next existing record in the 
  16345.    file.  That record is then made available. 
  16346.  
  16347.   If the file position indicator was set by the processing of a previous READ 
  16348.    statement, the file position indicator is updated to point to the next 
  16349.    existing record in the file.  That record is then made available. 
  16350.  
  16351.    -----IBM Extension----- 
  16352.  
  16353.    For a file that allows duplicate keys (the DUPLICATES phrase is specified in 
  16354.    the file-control entry), the records with duplicate key values are made 
  16355.    available in the order specified when the file was created.  The system 
  16356.    options are first-in first-out (FIFO), last-in first-out (LIFO), and no 
  16357.    specific sequence (if neither LIFO not FIFO is specified). 
  16358.  
  16359.    ---End of IBM Extension--- 
  16360.  
  16361.  When an indexed file is read in random access mode, the record in the file 
  16362.  with a key value equal to that of the RECORD KEY data item is then made 
  16363.  available. If the file does not contain such a record, the INVALID KEY 
  16364.  condition exists, and READ statement processing is unsuccessful. If the FORMAT 
  16365.  phrase is not specified on the I-O statement when indexed files are read in 
  16366.  random access mode, the first format defined in the file is used. Note that if 
  16367.  externally described keys are being used and no format is specified, the first 
  16368.  format included in the program is the one used to build the key. This format 
  16369.  may not necessarily be the first format in the file. 
  16370.  
  16371.  -----IBM Extension----- 
  16372.  
  16373.  For a file that allows duplicate keys (the DUPLICATES phrase is specified in 
  16374.  the file-control entry), the first record with the specified key value is made 
  16375.  available.  The first record is determined by the order specified when the 
  16376.  file was created. The system options are first-in first-out (FIFO), last-in 
  16377.  first-out (LIFO), and no specific sequence (if neither LIFO not FIFO is 
  16378.  specified). 
  16379.  
  16380.  ---End of IBM Extension--- 
  16381.  
  16382.  To enable file status 02 for DUPLICATE KEY checking, you need: 
  16383.  
  16384.   The WITH DUPLICATES phrase in the SELECT clause 
  16385.  
  16386.   OPEN I-O or OPEN INPUT 
  16387.  
  16388.   The *DUPKEYCHK option of the OPTION parameter, or the DUPKEYCHK option of 
  16389.    the PROCESS statement. 
  16390.  
  16391.  
  16392. ΓòÉΓòÉΓòÉ 12.37.17. Multiple Record Processing ΓòÉΓòÉΓòÉ
  16393.  
  16394. If more than one record description entry is associated with file-name-1, these 
  16395. records automatically share the same storage area; that is, they are implicitly 
  16396. redefined. After a READ statement is executed, only those data items within the 
  16397. range of the current record are replaced; data items stored beyond that range 
  16398. are undefined. READ Statement with Multiple Record Description illustrates this 
  16399. concept. If the range of the current record exceeds the record description 
  16400. entries for file-name, the record is truncated on the right to the maximum 
  16401. size. In either of these cases, the READ statement is successful and an I-O 
  16402. status is set indicating a record length conflict has occurred. 
  16403.  
  16404. The FD entry is:
  16405.  
  16406. FD  INPUT-FILE LABEL RECORDS OMITTED.
  16407. 01  RECORD-1  PICTURE X(30).
  16408. 01  RECORD-2  PICTURE X(20).
  16409. Contents of input area when READ statement is executed:
  16410.  
  16411.    ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16412.    ABCDEFGHIJKLMNOPQRSTUVWXYZ1234
  16413.    ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16414.  Contents of record being read in (RECORD-2): 
  16415.  
  16416.    ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16417.    01234567890123456789
  16418.    ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16419.  Contents of input area after READ is executed: 
  16420. 01234567890123456789?????????? 
  16421.  
  16422.              Γöé     Γöé
  16423.              Γöé     Γöé
  16424.              ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16425.              (these characters in input area undefined) 
  16426.  
  16427. READ Statement with Multiple Record Description 
  16428.  
  16429.  
  16430. ΓòÉΓòÉΓòÉ 12.37.18. Multivolume Files ΓòÉΓòÉΓòÉ
  16431.  
  16432. If end-of-volume is recognized during execution of a READ statement, and 
  16433. logical end-of-file has not been reached, the following actions are taken: 
  16434.  
  16435.   The system-defined ending volume label procedure 
  16436.   A volume switch 
  16437.   The system-defined beginning volume label procedure 
  16438.   The first data record of the next volume is made available. 
  16439.  
  16440.  
  16441. ΓòÉΓòÉΓòÉ 12.37.19. READ Statement - Format 4 - Transaction (Nonsubfile) ΓòÉΓòÉΓòÉ
  16442.  
  16443. -----IBM Extension----- 
  16444.  
  16445. ΓöîΓöÇΓöÇΓöÇ READ STATEMENT - FORMAT 4 - TRANSACTION (NONSUBFILE) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16446. Γöé                                        Γöé
  16447. Γöé >>ΓöÇΓöÇREADΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16448. Γöé            ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ            Γöé
  16449. Γöé                                        Γöé
  16450. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16451. Γöé   ΓööΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                   Γöé
  16452. Γöé       ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  16453. Γöé                                        Γöé
  16454. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16455. Γöé   ΓööΓöÇTERMINALΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÿ                  Γöé
  16456. Γöé        ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  16457. Γöé                                        Γöé
  16458. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16459. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÿ                 Γöé
  16460. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ                        Γöé
  16461. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ                        Γöé
  16462. Γöé                                        Γöé
  16463. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16464. Γöé   ΓööΓöÇNO DATAΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ                    Γöé
  16465. Γöé                                        Γöé
  16466. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16467. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ                 Γöé
  16468. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  16469. Γöé                                        Γöé
  16470. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  16471. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-3ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  16472. Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                              Γöé
  16473. Γöé                                        Γöé
  16474. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16475.  
  16476. Format 4 is used only to read a format that is not a subfile record. The 
  16477. RELATIVEKEY data item, if specified in the FILE-CONTROL entry, is not used. 
  16478. The Format 4 READ statement is not valid for a subfile record; however, a 
  16479. Format 4 READ statement for the subfile control record format must be used to 
  16480. put those subfile records that were updated on a display into the subfile. 
  16481.  
  16482. If the data is available, it is returned in the record area. The names of the 
  16483. record format and the program device are returned in the I-O-FEEDBACK area and 
  16484. in the CONTROL-AREA. 
  16485.  
  16486. The READ statement is valid only when there are acquired devices for the file. 
  16487. If a READ is executed and there are no acquired devices, the file status is set 
  16488. to 92 (logic error). 
  16489.  
  16490. The manner in which the Format 4 READ statement functions depends on whether: 
  16491.  
  16492.   The READ is for a single device file or a multiple device file 
  16493.  
  16494.   A specific program device has been requested through the TERMINAL phrase 
  16495.  
  16496.   A specific record format has been requested through the FORMAT phrase 
  16497.  
  16498.   The NO DATA phrase has been specified 
  16499.  
  16500.  ---End of IBM Extension--- 
  16501.  
  16502.  
  16503. ΓòÉΓòÉΓòÉ 12.37.20. READ Statement - Format 5 - Transaction (Subfile) ΓòÉΓòÉΓòÉ
  16504.  
  16505. -----IBM Extension----- 
  16506.  
  16507. ΓöîΓöÇΓöÇΓöÇ READ - FORMAT 5A - TRANSACTION (SUBFILE SEQUENTIAL) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16508. Γöé                                        Γöé
  16509. Γöé >>ΓöÇΓöÇREAD SUBFILEΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇMODIFIEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16510. Γöé                ΓööΓöÇNEXTΓöÇΓöÿ       ΓööΓöÇRECORDΓöÇΓöÿ          Γöé
  16511. Γöé                                        Γöé
  16512. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16513. Γöé   ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ  ΓööΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ       Γöé
  16514. Γöé                   ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  16515. Γöé                                        Γöé
  16516. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16517. Γöé   ΓööΓöÇTERMINALΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÿ                  Γöé
  16518. Γöé        ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  16519. Γöé                                        Γöé
  16520. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16521. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÿ                 Γöé
  16522. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ                        Γöé
  16523. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ                        Γöé
  16524. Γöé                                        Γöé
  16525. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16526. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-3ΓöÇΓöÿ                 Γöé
  16527. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  16528. Γöé                                        Γöé
  16529. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  16530. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-4ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  16531. Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                              Γöé
  16532. Γöé                                        Γöé
  16533. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16534.  
  16535. Format 5a is used to read a format that is a subfile record, in sequential 
  16536. access mode. The NEXT MODIFIED phrase must be specified to access subfile 
  16537. records sequentially. The AT END phrase can only be specified with the NEXT 
  16538. MODIFIED phrase. 
  16539.  
  16540. ΓöîΓöÇΓöÇΓöÇ READ - FORMAT 5B - TRANSACTION (SUBFILE RANDOM) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16541. Γöé                                        Γöé
  16542. Γöé >>ΓöÇΓöÇREAD SUBFILEΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16543. Γöé                ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ        Γöé
  16544. Γöé                                        Γöé
  16545. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16546. Γöé   ΓööΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                   Γöé
  16547. Γöé       ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  16548. Γöé                                        Γöé
  16549. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16550. Γöé   ΓööΓöÇTERMINALΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÿ                  Γöé
  16551. Γöé        ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  16552. Γöé                                        Γöé
  16553. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16554. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÿ                 Γöé
  16555. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ                        Γöé
  16556. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ                        Γöé
  16557. Γöé                                        Γöé
  16558. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16559. Γöé   ΓööΓöÇINVALIDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇimperative-statement-1ΓöÇΓöÿ                Γöé
  16560. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                             Γöé
  16561. Γöé                                        Γöé
  16562. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><     Γöé
  16563. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-READΓöÇΓöÿ       Γöé
  16564. Γöé          ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  16565. Γöé                                        Γöé
  16566. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16567.  
  16568. Format 5b is used to read a format that is a subfile record, in random access 
  16569. mode. The INVALID KEY phrase can only be used for random access of subfile 
  16570. records. The NEXT MODIFIED phrase must not be used to randomly access subfile 
  16571. records. 
  16572.  
  16573. Format 5a or 5b cannot be used for communications devices. If the subfile 
  16574. format of the READ statement is used for a communications device, the READ 
  16575. fails and a file status of 90 is set. 
  16576.  
  16577. ---End of IBM Extension--- 
  16578.  
  16579.  
  16580. ΓòÉΓòÉΓòÉ 12.37.21. NEXT MODIFIED Phrase ΓòÉΓòÉΓòÉ
  16581.  
  16582. -----IBM Extension----- 
  16583.  
  16584. When NEXT MODIFIED is not specified, the data record made available is the 
  16585. record in the subfile with a relative record number that corresponds to the 
  16586. value of the RELATIVE KEY data item. 
  16587.  
  16588. When the NEXT MODIFIED phrase is not specified, and if the RELATIVE KEY data 
  16589. item contains a value other than the relative record number of a record in the 
  16590. subfile, the INVALID KEY condition exists and the execution of the READ 
  16591. statement is unsuccessful. 
  16592.  
  16593. When the NEXT MODIFIED phrase is specified, the record made available is the 
  16594. first record in the subfile that has been modified (has the Modified Data Tag 
  16595. on). 
  16596.  
  16597. The search for the next modified record begins: 
  16598.  
  16599.   At the beginning of the subfile if: 
  16600.  
  16601.     - An I-O operation has been performed for the subfile control record. 
  16602.     - The I-O operation cleared, initialized, or displayed the subfile. 
  16603.  
  16604.   For all other cases, with the record following the record that was read by a 
  16605.    previous read operation. 
  16606.  
  16607.  The value of the RELATIVE KEY data item is updated to reflect the relative 
  16608.  record number of the record made available to the program. 
  16609.  
  16610.  If NEXT MODIFIED is specified and there is no user-modified record in the 
  16611.  subfile with a relative record number greater than the relative record number 
  16612.  contained in the RELATIVE KEY data item, the AT END condition exists, the file 
  16613.  status is set to 12, and the value of the RELATIVE KEY data item is set to the 
  16614.  key of the last record in the subfile. Imperative-statement-2, or any 
  16615.  applicable USE AFTER ERROR/EXCEPTION procedure, if any, is then executed. 
  16616.  
  16617.  ---End of IBM Extension--- 
  16618.  
  16619.  
  16620. ΓòÉΓòÉΓòÉ 12.37.22. FORMAT Phrase ΓòÉΓòÉΓòÉ
  16621.  
  16622. -----IBM Extension----- 
  16623.  
  16624. When a format-name is not specified, the format used is the last record format 
  16625. written to the display device that contains input fields, input/output fields, 
  16626. or hidden fields.  If no such format exists for the display file, the format 
  16627. used is the record format of the last WRITE operation to the display device. 
  16628.  
  16629. If the FORMAT phrase is specified, literal-1 or the contents of identifier-2 
  16630. must specify a format which is active for the appropriate program device. The 
  16631. READ statement reads a data record of the specified format. 
  16632.  
  16633. The FORMAT phrase must always be specified for multiple format files to ensure 
  16634. correct results. 
  16635.  
  16636. ---End of IBM Extension--- 
  16637.  
  16638.  
  16639. ΓòÉΓòÉΓòÉ 12.38. RELEASE Statement ΓòÉΓòÉΓòÉ
  16640.  
  16641. The RELEASE statement transfers records from an input/output area to the 
  16642. initial phase of a sorting operation. 
  16643.  
  16644. The RELEASE statement can only be used within the range of an input procedure 
  16645. associated with a SORT statement. 
  16646.  
  16647. ΓöîΓöÇΓöÇΓöÇ RELEASE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16648. Γöé                                        Γöé
  16649. Γöé >>ΓöÇΓöÇRELEASEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  16650. Γöé               ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ              Γöé
  16651. Γöé                                        Γöé
  16652. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16653.  
  16654. Within an INPUT PROCEDURE, at least one RELEASE statement must be specified. 
  16655.  
  16656. When the RELEASE statement is executed, the current contents of record-name-1 
  16657. are placed in the sort file; that is, made available to the initial phase of 
  16658. the sorting operation. 
  16659.  
  16660. Record-name-1 and identifier-1 must not refer to the same storage area. 
  16661.  
  16662. If the RELEASE statement is executed without specifying the SD entry for 
  16663. file-name-1 in a SAME RECORD AREA clause, the information in record-name-1 is 
  16664. no longer available. 
  16665.  
  16666. If the SD entry is specified in a SAME RECORD AREA clause, record-name-1 is 
  16667. still available as a record of the other files named in that clause. 
  16668.  
  16669. When FROM identifier-1 is specified, the information is still available in 
  16670. identifier-1. 
  16671.  
  16672. When control passes from the INPUT PROCEDURE, the sort file consists of all 
  16673. those records placed in it by execution of RELEASE statements. 
  16674.  
  16675.  
  16676. ΓòÉΓòÉΓòÉ 12.39. RETURN Statement ΓòÉΓòÉΓòÉ
  16677.  
  16678. The RETURN statement transfers records from the final phase of a sort or merge 
  16679. operation to an OUTPUT PROCEDURE. 
  16680.  
  16681. The RETURN statement can be used only within the range of an output procedure 
  16682. associated with a SORT or MERGE statement. 
  16683.  
  16684. ΓöîΓöÇΓöÇΓöÇ RETURN STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16685. Γöé                                        Γöé
  16686. Γöé >>ΓöÇΓöÇRETURNΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16687. Γöé              ΓööΓöÇRECORDΓöÇΓöÿ  ΓööΓöÇINTOΓöÇΓöÇidentifier-1ΓöÇΓöÿ          Γöé
  16688. Γöé                                        Γöé
  16689. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16690. Γöé   ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                  Γöé
  16691. Γöé                                        Γöé
  16692. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><    Γöé
  16693. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-RETURNΓöÇΓöÿ      Γöé
  16694. Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                              Γöé
  16695. Γöé                                        Γöé
  16696. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16697.  
  16698. Within an OUTPUT PROCEDURE, at least one RETURN statement must be specified. 
  16699.  
  16700. When the RETURN statement is executed, the next record from file-name-1 is made 
  16701. available for processing by the OUTPUT PROCEDURE. 
  16702.  
  16703. The record areas associated with file-name-1 and identifier-1 must not be the 
  16704. same storage area. 
  16705.  
  16706. The record is available in both the record area and the data-item referenced by 
  16707. identifier-1. 
  16708.  
  16709.  
  16710. ΓòÉΓòÉΓòÉ 12.39.1. file-name-1 ΓòÉΓòÉΓòÉ
  16711.  
  16712. Must be described in a Data Division SD entry. 
  16713.  
  16714. If more than one record description is associated with file-name-1, these 
  16715. records automatically share the same storage; that is, the area is implicitly 
  16716. redefined. After RETURN statement execution, only the contents of the current 
  16717. record are available; if any data items lie beyond the length of the current 
  16718. record, their contents are undefined. 
  16719.  
  16720.  
  16721. ΓòÉΓòÉΓòÉ 12.39.2. INTO identifier-1 ΓòÉΓòÉΓòÉ
  16722.  
  16723. The RETURN INTO statement is equivalent to the statements: 
  16724.  
  16725. RETURN file-name-1
  16726. MOVE record-name TO identifier-1
  16727.  
  16728. Moving takes place according to the rules for the MOVE statement without the 
  16729. CORRESPONDING phrase. 
  16730.  
  16731. The size of the current record is determined by rules specified for the RECORD 
  16732. clause.  If the file description entry contains a RECORD IS VARYING clause, the 
  16733. implied MOVE is a group move.  However, the implied MOVE does not occur when 
  16734. the RETURN statement is unsuccessful. 
  16735.  
  16736. Any subscripting, indexing, or reference modification associated with 
  16737. identifier-1 is evaluated after the record has been returned and immediately 
  16738. before it is moved to identifier-1. 
  16739.  
  16740. The INTO phrase may be specified in a RETURN statement if one or both of the 
  16741. following are true: 
  16742.  
  16743.   If only one record description is subordinate to the sort-merge file 
  16744.    description entry, and/or 
  16745.  
  16746.   If all record-names associated with file-name-1 and the data item referenced 
  16747.    by identifier-1 describe a group item, a numeric-edited item, or an 
  16748.    elementary alphanumeric item. 
  16749.  
  16750.  
  16751. ΓòÉΓòÉΓòÉ 12.39.3. AT END Phrases ΓòÉΓòÉΓòÉ
  16752.  
  16753. The imperative-statement specified on the AT END phrase executes after all 
  16754. records have been returned from file-name-1. No more RETURN statements may be 
  16755. executed as part of the current output procedure. 
  16756.  
  16757. If an at end condition does not occur during the execution of a RETURN 
  16758. statement, then after the record is made available and after executing any 
  16759. implicit move resulting from the presence of an INTO phrase, control is 
  16760. transferred to the imperative statement specified by the NOT AT END phrase, 
  16761. otherwise control is passed to the end of the RETURN statement. 
  16762.  
  16763.  
  16764. ΓòÉΓòÉΓòÉ 12.39.4. END-RETURN Phrase ΓòÉΓòÉΓòÉ
  16765.  
  16766. This explicit scope terminator serves to delimit the scope of the RETURN 
  16767. statement. END-RETURN permits a conditional RETURN statement to be nested in 
  16768. another conditional statement. END-RETURN may also be used with an imperative 
  16769. RETURN statement. 
  16770.  
  16771. For more information, see Delimited Scope Statements. 
  16772.  
  16773.  
  16774. ΓòÉΓòÉΓòÉ 12.40. REWRITE Statement ΓòÉΓòÉΓòÉ
  16775.  
  16776. The REWRITE statement logically replaces an existing record in a direct-access 
  16777. file. 
  16778.  
  16779. When the REWRITE statement is executed, the associated direct-access file must 
  16780. be open in I-O mode. 
  16781.  
  16782. The REWRITE statement has two formats: 
  16783.  
  16784.   Format 1 - REWRITE 
  16785.    -----IBM Extension----- 
  16786.   Format 2 - REWRITE (Transaction - Subfile) 
  16787.    ---End of IBM Extension--- 
  16788.  
  16789.  -----IBM Extension----- 
  16790.  
  16791.  The action of this statement can be inhibited at program run time by the 
  16792.  inhibit write (INHWRT) parameter of the Override with database file (OVRDBF) 
  16793.  CL command.  When this parameter is specified, nonzero file status codes are 
  16794.  not set for data dependent errors.  Duplicate key and data conversion errors 
  16795.  are examples of data dependent errors. 
  16796.  
  16797.  ---End of IBM Extension--- 
  16798.  
  16799.  Related Information: 
  16800.  
  16801.   REWRITE Statement Considerations 
  16802.   Reusing a Logical Record 
  16803.   Sequential Files 
  16804.   Indexed Files 
  16805.   Relative Files 
  16806.  
  16807.  
  16808. ΓòÉΓòÉΓòÉ 12.40.1. REWRITE Statement ΓòÉΓòÉΓòÉ
  16809.  
  16810. ΓöîΓöÇΓöÇΓöÇ REWRITE STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16811. Γöé                                        Γöé
  16812. Γöé >>ΓöÇΓöÇREWRITEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16813. Γöé               ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ              Γöé
  16814. Γöé                                        Γöé
  16815. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16816. Γöé   Γöé    (1)               Γöé                 Γöé
  16817. Γöé   ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                 Γöé
  16818. Γöé         ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  16819. Γöé                                        Γöé
  16820. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  16821. Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  16822. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  16823. Γöé                                        Γöé
  16824. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  16825. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-REWRITEΓöÇΓöÿ    Γöé
  16826. Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  16827. Γöé                                        Γöé
  16828. Γöé NOTE:                                     Γöé
  16829. Γöé (1)  IBM Extension                              Γöé
  16830. Γöé                                        Γöé
  16831. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16832.  
  16833.  
  16834. ΓòÉΓòÉΓòÉ 12.40.2. FROM Phrase ΓòÉΓòÉΓòÉ
  16835.  
  16836. This phrase has the following effect: 
  16837.  
  16838. MOVE identifier-1 TO record-name-1.
  16839. REWRITE record-name-1.
  16840.  
  16841. After successful processing of the REWRITE statement, the current record is no 
  16842. longer available in record-name-1, but is still available in identifier-1. Both 
  16843. record-name-1 and identifier-1 cannot refer to the same storage area. 
  16844.  
  16845.  
  16846. ΓòÉΓòÉΓòÉ 12.40.3. INVALID KEY Phrase ΓòÉΓòÉΓòÉ
  16847.  
  16848. This phrase is valid in indexed organization files, and relative organization 
  16849. files with random or dynamic access. It is processed when the record specified 
  16850. by the key field in the record area is not found. 
  16851.  
  16852. When an INVALID KEY condition exists, the updating operation does not take 
  16853. place. The data in record-name is unaffected. This phrase transfers control to 
  16854. the corresponding imperative-statement, as appropriate. 
  16855.  
  16856. The INVALID KEY phrase must be specified if no applicable EXCEPTION/ERROR 
  16857. procedure is specified for record-name-1. 
  16858.  
  16859. An INVALID KEY condition exists when: 
  16860.  
  16861.   The access mode is sequential, and the value contained in the prime RECORD 
  16862.    KEY of the record to be replaced does not equal the value of the prime 
  16863.    RECORD KEY data item of the last-retrieved record from the file, or 
  16864.  
  16865.   The value contained in the prime RECORD KEY does not equal that of any 
  16866.    record in the file. 
  16867.  
  16868.  The INVALID KEY phrase must be specified for files in which an applicable USE 
  16869.  procedure is not specified. 
  16870.  
  16871.  See "Invalid Key Condition" under Common Processing Facilities for more 
  16872.  information. 
  16873.  
  16874.  For sequentially accessed indexed files on device type DISK, this phrase is 
  16875.  processed when the value contained in the RECORD KEY of the record to be 
  16876.  replaced does not equal the RECORD KEY data item of the last retrieved record 
  16877.  from the file. 
  16878.  
  16879.  
  16880. ΓòÉΓòÉΓòÉ 12.40.4. NOT INVALID KEY Phrase ΓòÉΓòÉΓòÉ
  16881.  
  16882. This phrase is valid for indexed organization files, and relative organization 
  16883. files with random or dynamic access. After the successful completion of a 
  16884. REWRITE statement with the NOT INVALID KEY phrase, control transfers to the 
  16885. imperative statement associated with the phrase. 
  16886.  
  16887.  
  16888. ΓòÉΓòÉΓòÉ 12.40.5. FORMAT Phrase ΓòÉΓòÉΓòÉ
  16889.  
  16890. This phrase applies when the REWRITE statement is performed against an indexed 
  16891. file for which the ASSIGN specified DATABASE as the file device type. It is 
  16892. optional when processing a file that has one record format. 
  16893.  
  16894. -----IBM Extension----- 
  16895.  
  16896. The value specified in the FORMAT phrase contains the name of the record format 
  16897. to use for this I-O operation. The system uses this to specify or select which 
  16898. record format to operate on. 
  16899.  
  16900. Identifier-2, if specified, must be an alphanumeric data item of 10 characters 
  16901. or less. 
  16902.  
  16903. Literal-1, if specified, must be an uppercase character-string of 10 characters 
  16904. or less. 
  16905.  
  16906. If the FORMAT phrase is not specified, the first format defined is used when 
  16907. accessing indexed files in Random Access Mode. 
  16908.  
  16909. A value of all blanks is treated as though the FORMAT phrase were not 
  16910. specified.  If the value is not valid for the file, a FILE STATUS of 9K is 
  16911. returned and a USE procedure is invoked, if applicable for the file. 
  16912.  
  16913. ---End of IBM Extension--- 
  16914.  
  16915.  
  16916. ΓòÉΓòÉΓòÉ 12.40.6. REWRITE Statement Considerations ΓòÉΓòÉΓòÉ
  16917.  
  16918. For relative organization files, random or dynamic access modes, the record to 
  16919. be replaced is specified by the value in the RELATIVE KEY data item.  If the 
  16920. file does not contain such a record, an INVALID KEY condition exists. 
  16921.  
  16922. For indexed organization files, sequential access mode, the value of the RECORD 
  16923. KEY data-item must not have been changed since the record was last read. 
  16924.  
  16925. For indexed organization files, random or dynamic access modes, the record to 
  16926. be replaced is specified by the value in the RECORD KEY data item. If the file 
  16927. does not contain such a record, an INVALID KEY condition exists. 
  16928.  
  16929. -----IBM Extension----- 
  16930.  
  16931. When EXTERNALLY-DESCRIBED-KEY is specified for the file, the key field in the 
  16932. record area for the format specified by the FORMAT phrase (or, if not 
  16933. specified, the first format defined in the program for the file), is used to 
  16934. find the record to be replaced. 
  16935.  
  16936. If the DUPLICATES phrase was specified for the file, the last input/output 
  16937. statement processed for this file before the REWRITE statement must have been a 
  16938. successfully processed READ statement without the NO LOCK phrase. The record 
  16939. read by that statement is the one that is replaced.  In this case, the FORMAT 
  16940. phrase is not used in determining the record to be replaced. 
  16941.  
  16942. The READ statement is required to ensure that the proper record is replaced 
  16943. when there are duplicates. If a successful READ operation did not occur before 
  16944. the REWRITE operation: 
  16945.  
  16946.   The file status key, if defined, is set to 94. 
  16947.   The EXCEPTION/ERROR procedure, if any, is run. 
  16948.   The REWRITE statement is not processed. 
  16949.  
  16950.  If the last input/output statement was a successfully processed READ statement 
  16951.  with the NO LOCK phrase: 
  16952.  
  16953.   The file status key, if defined, is set to 9S. 
  16954.   The EXCEPTION/ERROR procedure, if any, is run. 
  16955.   The REWRITE statement is not processed. 
  16956.  
  16957.  The value of the RECORD KEY data item should not have changed since the record 
  16958.  was read. By default, if it has changed: 
  16959.  
  16960.   The file status key, if defined, is set to 21. 
  16961.   An INVALID KEY condition exists. 
  16962.   The REWRITE operation does not occur. 
  16963.  
  16964.  Note:   The only way to rewrite one of a sequence of records with duplicate 
  16965.  keys is to sequentially read each of the duplicate records and rewrite the 
  16966.  desired one. 
  16967.  
  16968.  ---End of IBM Extension--- 
  16969.  
  16970.  
  16971. ΓòÉΓòÉΓòÉ 12.40.6.1. Reusing a Record ΓòÉΓòÉΓòÉ
  16972.  
  16973. After successful execution of a REWRITE statement, the record is no longer 
  16974. available in record-name-1 unless the associated file is named in a SAME RECORD 
  16975. AREA clause (in which case, the record is also available as a record of the 
  16976. other files named in the SAME RECORD AREA clause). 
  16977.  
  16978. The file position indicator is not affected by execution of the REWRITE 
  16979. statement. 
  16980.  
  16981. If the FILE STATUS clause is specified in the FILE-CONTROL entry, the 
  16982. associated status key is updated when the REWRITE statement is executed. 
  16983.  
  16984.  
  16985. ΓòÉΓòÉΓòÉ 12.40.6.2. Sequential Files ΓòÉΓòÉΓòÉ
  16986.  
  16987. For files in the sequential access mode, the last prior input/output statement 
  16988. executed for this file must be a successfully executed READ statement. When the 
  16989. REWRITE statement is executed, the record retrieved by that READ statement is 
  16990. logically replaced. 
  16991.  
  16992. The number of character positions in record-name-1 must equal the number of 
  16993. character positions in the record being replaced. 
  16994.  
  16995. The INVALID KEY and NOT INVALID KEY phrases must not be specified for a file 
  16996. with sequential organization. An EXCEPTION/ERROR procedure may be specified. 
  16997.  
  16998.  
  16999. ΓòÉΓòÉΓòÉ 12.40.6.3. Indexed Files ΓòÉΓòÉΓòÉ
  17000.  
  17001. The number of character positions in record-name-1 can be different from the 
  17002. number of character positions in the record being replaced. 
  17003.  
  17004. When the access mode is sequential, the record to be replaced is specified by 
  17005. the value contained in the prime RECORD KEY. When the REWRITE statement is 
  17006. executed, this value must equal the value of the prime record key data item in 
  17007. the last record read from this file. 
  17008.  
  17009. The INVALID KEY phrase must be specified if an applicable USE AFTER STANDARD 
  17010. EXCEPTION procedure is not specified for the associated file-name. 
  17011.  
  17012. When the access mode is random or dynamic, the record to be replaced is 
  17013. specified by the value contained in the prime RECORD KEY. If the FORMAT phrase 
  17014. is not specified on the I-O statement when indexed files are read in random 
  17015. access mode, the first format defined is used. 
  17016.  
  17017. If an invalid key condition exists, the execution of the REWRITE statement is 
  17018. unsuccessful, the updating operation does not take place, and the data in 
  17019. record-name-1 is unaffected. (See INVALID KEY Condition.) 
  17020.  
  17021.  
  17022. ΓòÉΓòÉΓòÉ 12.40.6.4. Relative Files ΓòÉΓòÉΓòÉ
  17023.  
  17024. The number of character positions in record-name-1 can be different from the 
  17025. number of character positions in the record being replaced. 
  17026.  
  17027. For relative files in sequential access mode, the INVALID KEY and NOT INVALID 
  17028. KEY phrases must not be specified. An EXCEPTION/ERROR procedure may be 
  17029. specified. 
  17030.  
  17031. The INVALID KEY phrase must be specified in the REWRITE statement for relative 
  17032. files in the random or dynamic access mode, and for which an appropriate USE 
  17033. AFTER STANDARD EXCEPTION procedure is not specified. 
  17034.  
  17035. When the access mode is random or dynamic, the record to be replaced is 
  17036. specified in the RELATIVE KEY data item. If the file does not contain the 
  17037. record specified, an invalid key condition exists, and, if specified, the 
  17038. INVALID KEY imperative-statement is executed. (See INVALID KEY Condition.) The 
  17039. updating operation does not take place, and the data in record-name is 
  17040. unaffected. 
  17041.  
  17042.  
  17043. ΓòÉΓòÉΓòÉ 12.40.7. Transaction (Subfile) Format ΓòÉΓòÉΓòÉ
  17044.  
  17045. -----IBM Extension----- 
  17046.  
  17047. The REWRITE statement is used to replace a subfile record that already exists 
  17048. in the subfile. 
  17049.  
  17050. ΓöîΓöÇΓöÇΓöÇ REWRITE STATEMENT - FORMAT 2 - TRANSACTION (SUBFILE) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17051. Γöé                                        Γöé
  17052. Γöé >>ΓöÇΓöÇREWRITE SUBFILEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17053. Γöé                   ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ          Γöé
  17054. Γöé                                        Γöé
  17055. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17056. Γöé   ΓööΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                   Γöé
  17057. Γöé       ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  17058. Γöé                                        Γöé
  17059. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17060. Γöé   ΓööΓöÇTERMINALΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇΓöÿ                  Γöé
  17061. Γöé        ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  17062. Γöé                                        Γöé
  17063. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17064. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÿ                 Γöé
  17065. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ                        Γöé
  17066. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ                        Γöé
  17067. Γöé                                        Γöé
  17068. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17069. Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  17070. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  17071. Γöé                                        Γöé
  17072. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  17073. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-REWRITEΓöÇΓöÿ    Γöé
  17074. Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  17075. Γöé                                        Γöé
  17076. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17077.  
  17078. The number of character positions in the record referenced by record-name-1 
  17079. must be equal to the number of character positions in the record being 
  17080. replaced.  A successful read operation on the record must be done prior to the 
  17081. rewrite operation.  The record replaced in the subfile is that record accessed 
  17082. by the previous read operation. 
  17083.  
  17084. ---End of IBM Extension--- 
  17085.  
  17086.  
  17087. ΓòÉΓòÉΓòÉ 12.41. ROLLBACK Statement ΓòÉΓòÉΓòÉ
  17088.  
  17089. -----IBM Extension----- 
  17090.  
  17091. The ROLLBACK statement provides a way to cancel one or more changes to database 
  17092. records when the changes should not remain permanent. 
  17093.  
  17094. ΓöîΓöÇΓöÇΓöÇ ROLLBACK STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17095. Γöé                                        Γöé
  17096. Γöé >>ΓöÇΓöÇROLLBACKΓöÇΓöÇ><                               Γöé
  17097. Γöé                                        Γöé
  17098. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17099.  
  17100. When the ROLLBACK statement is executed, any changes made to files under 
  17101. commitment control since the last commitment boundary are removed from the 
  17102. database. Note that when a file is cleared while being opened for OUTPUT, 
  17103. execution of a ROLLBACK statement does not restore cleared records to the file. 
  17104.  
  17105. A commitment boundary is the previous occurrence of a ROLLBACK or COMMIT 
  17106. statement.  If no COMMIT or ROLLBACK has been issued, the commitment boundary 
  17107. is the first OPEN of a file under commitment control. Removal of changes takes 
  17108. place for all files under commitment control and not just for files under 
  17109. commitment control in the COBOL program that issues the ROLLBACK. 
  17110.  
  17111. Once the ROLLBACK is successfully executed, all record locks held for files 
  17112. under commitment control are released and the records become available to other 
  17113. jobs. Commitment control can be scoped at the job level or the activation group 
  17114. level. (Commitment control is scoped at the activation group level by default.) 
  17115.  
  17116. The ROLLBACK has no effect on files not under commitment control.  If a 
  17117. ROLLBACK is executed and there are no files under commitment control, the 
  17118. ROLLBACK is ignored. 
  17119.  
  17120. A file under commitment control can be opened or closed without affecting the 
  17121. status of changes made since the last commitment boundary.  A COMMIT must still 
  17122. be issued to make the changes permanent.  A ROLLBACK, when executed, leaves 
  17123. files in the same open or closed state as before execution. 
  17124.  
  17125. The ROLLBACK statement does not: 
  17126.  
  17127.   modify the I-O-FEEDBACK area for any file 
  17128.  
  17129.   set a file status value for any file. 
  17130.  
  17131.  For the ROLLBACK statement, the following considerations apply: 
  17132.  
  17133.   The ROLLBACK statement sets the file position indicator to its position at 
  17134.    the previous commitment boundary.  This is important to remember if you are 
  17135.    doing sequential processing. 
  17136.  
  17137.   If no COMMIT statement has been issued since the file was opened, the 
  17138.    ROLLBACK statement sets the file position indicator to its position at the 
  17139.    OPEN. 
  17140.  
  17141.   The file position indicator is undefined after a ROLLBACK if the file is 
  17142.    closed with uncommitted changes. 
  17143.  
  17144.  If commitment control is scoped at the job level, an implicit ROLLBACK of 
  17145.  uncommitted records is automatically done for all files under commitment 
  17146.  control at the end of every job. Any uncommitted changes to the database are 
  17147.  cancelled. 
  17148.  
  17149.  If commitment control is scoped at the activation group level, an implicit 
  17150.  commit occurs when the activation group ends normally. If the activation group 
  17151.  ends abnormally, an implicit ROLLBACK occurs. 
  17152.  
  17153.  ---End of IBM Extension--- 
  17154.  
  17155.  
  17156. ΓòÉΓòÉΓòÉ 12.42. SEARCH Statement ΓòÉΓòÉΓòÉ
  17157.  
  17158. The SEARCH statement searches a table for an element that satisfies the 
  17159. specified condition, and adjusts the associated index to indicate that element. 
  17160.  
  17161. The SEARCH statement has two formats: 
  17162.  
  17163.   Format 1 - Serial Search 
  17164.   Format 2 - Binary Search 
  17165.  
  17166.  Related Information: 
  17167.  
  17168.   SEARCH Statement Considerations 
  17169.   Coding Example 
  17170.  
  17171.  
  17172. ΓòÉΓòÉΓòÉ 12.42.1. SEARCH Statement - Format 1 - Serial Search ΓòÉΓòÉΓòÉ
  17173.  
  17174. ΓöîΓöÇΓöÇΓöÇ SEARCH STATEMENT - FORMAT 1 - SERIAL SEARCH ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17175. Γöé                                        Γöé
  17176. Γöé >>ΓöÇΓöÇSEARCHΓöÇΓöÇidentifier-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17177. Γöé              ΓööΓöÇVARYINGΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÿ            Γöé
  17178. Γöé                    ΓööΓöÇindex-name-1ΓöÇΓöÿ             Γöé
  17179. Γöé                                        Γöé
  17180. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17181. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ                 Γöé
  17182. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  17183. Γöé                                        Γöé
  17184. Γöé    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ            Γöé
  17185. Γöé                            Γöé            Γöé
  17186. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇWHENΓöÇΓöÇcondition-1ΓöÇΓöÇΓö¼ΓöÇimperative-statement-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  17187. Γöé   Γöé            ΓööΓöÇNEXT SENTENCEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé     Γöé
  17188. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé     Γöé
  17189. Γöé   Γöé                       Γöé         Γöé     Γöé
  17190. Γöé   ΓööΓöÇΓöÇΓöÇWHENΓöÇΓöÇcondition-1ΓöÇΓöÇimperative-statement-2ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ     Γöé
  17191. Γöé                           ΓööΓöÇEND-SEARCHΓöÇΓöÿ      Γöé
  17192. Γöé                                        Γöé
  17193. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17194.  
  17195. Related Information: 
  17196.  
  17197.   Execution of a Serial Search 
  17198.  
  17199.  
  17200. ΓòÉΓòÉΓòÉ 12.42.2. SEARCH Statement - Format 2 - Binary Search ΓòÉΓòÉΓòÉ
  17201.  
  17202. ΓöîΓöÇΓöÇΓöÇ SEARCH STATEMENT - FORMAT 2 - BINARY SEARCH ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17203. Γöé                                        Γöé
  17204. Γöé >>ΓöÇΓöÇSEARCH ALLΓöÇΓöÇidentifier-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇ> Γöé
  17205. Γöé                ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇENDΓöÇΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ   Γöé
  17206. Γöé                 ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ                   Γöé
  17207. Γöé                                        Γöé
  17208. Γöé                  ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ     Γöé
  17209. Γöé                                   Γöé     Γöé
  17210. Γöé >ΓöÇΓöÇWHENΓöÇΓöÇΓö¼ΓöÇΓöñ equal phrase 1 Γö£ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17211. Γöé      ΓööΓöÇcondition-name-1ΓöÇΓö┤ΓöÇΓöÿ   ΓööΓöÇANDΓöÇΓöÇΓö¼ΓöÇΓöñ equal phrase 2 Γö£ΓöÇΓö¼ΓöÇΓöÿ      Γöé
  17212. Γöé                      ΓööΓöÇcondition-name-2ΓöÇΓö┤ΓöÇΓöÿ       Γöé
  17213. Γöé                                        Γöé
  17214. Γöé >ΓöÇΓöÇΓö¼ΓöÇimperative-statement-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇ><               Γöé
  17215. Γöé   Γöé             ΓööΓöÇEND-SEARCHΓöÇΓöÿ Γöé                 Γöé
  17216. Γöé   ΓööΓöÇNEXT SENTENCEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                 Γöé
  17217. Γöé                                        Γöé
  17218. Γöé EQUAL PHRASE 1:                                Γöé
  17219. Γöé Γö£ΓöÇΓöÇdata-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ   Γöé
  17220. Γöé         ΓööΓöÇISΓöÇΓöÿ  Γöé     ΓööΓöÇTOΓöÇΓöÿ Γöé  Γö£ΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ    Γöé
  17221. Γöé             ΓööΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇarithmetic-expression-1ΓöÇΓöÿ    Γöé
  17222. Γöé                                        Γöé
  17223. Γöé EQUAL PHRASE 2:                                Γöé
  17224. Γöé Γö£ΓöÇΓöÇdata-name-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ   Γöé
  17225. Γöé         ΓööΓöÇISΓöÇΓöÿ  Γöé     ΓööΓöÇTOΓöÇΓöÿ Γöé  Γö£ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ    Γöé
  17226. Γöé             ΓööΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇarithmetic-expression-2ΓöÇΓöÿ    Γöé
  17227. Γöé                                        Γöé
  17228. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17229.  
  17230. Related Information: 
  17231.  
  17232.   Execution of a Binary Search 
  17233.  
  17234.  
  17235. ΓòÉΓòÉΓòÉ 12.42.3. identifier-1 ΓòÉΓòÉΓòÉ
  17236.  
  17237. Can be a data item subordinate to a data item that contains an OCCURS clause; 
  17238. that is, it can be a part of a multi-dimensional table. In this case, the data 
  17239. description entry must specify an INDEXED BY phrase for each dimension of the 
  17240. table. 
  17241.  
  17242. Identifier-1 can be an index data item. 
  17243.  
  17244. Identifier-1 must refer to all occurrences within the table element; that is, 
  17245. it must not be subscripted or reference modified. 
  17246.  
  17247. The Data Division description of identifier-1 must contain an OCCURS clause 
  17248. with the INDEXED BY phrase. 
  17249.  
  17250. SEARCH statement execution modifies only the value in the index-name associated 
  17251. with identifier-1 and, if present, of index-name-1 or identifier-2 Therefore, 
  17252. to search an entire two- to seven-dimensional table, it is necessary to execute 
  17253. a SEARCH statement for each dimension. Before each execution, SET statements 
  17254. must be executed to reinitialize the associated index-names. 
  17255.  
  17256.  
  17257. ΓòÉΓòÉΓòÉ 12.42.4. AT END/WHEN Phrases ΓòÉΓòÉΓòÉ
  17258.  
  17259. After imperative-statement-1 or imperative-statement-2 is executed, control 
  17260. passes to the end of the SEARCH statement, unless imperative-statement-1 or 
  17261. imperative-statement-2 ends with a GO TO statement. 
  17262.  
  17263. Condition-1, condition-2 may be any condition described under Conditional 
  17264. Expressions. 
  17265.  
  17266.  
  17267. ΓòÉΓòÉΓòÉ 12.42.5. NEXT SENTENCE Phrase ΓòÉΓòÉΓòÉ
  17268.  
  17269. This phrase causes the transfer of control to an implicit CONTINUE statement 
  17270. immediately preceding the next separator period. If the NEXT SENTENCE phrase is 
  17271. specified, the END-SEARCH phrase must not be specified. 
  17272.  
  17273.  
  17274. ΓòÉΓòÉΓòÉ 12.42.6. END-SEARCH Phrase ΓòÉΓòÉΓòÉ
  17275.  
  17276. This explicit scope terminator serves to delimit the scope of the SEARCH 
  17277. statement. END-SEARCH permits a conditional SEARCH statement to be nested in 
  17278. another conditional statement. If the END-SEARCH phrase is specified, the NEXT 
  17279. SENTENCE phrase must not be specified. 
  17280.  
  17281. For more information, see Delimited Scope Statements. 
  17282.  
  17283.  
  17284. ΓòÉΓòÉΓòÉ 12.42.7. Serial Search ΓòÉΓòÉΓòÉ
  17285.  
  17286. The Format 1 SEARCH statement executes a serial search beginning at the current 
  17287. index setting. When the search begins, if the value of the index-name 
  17288. associated with identifier-1 is not greater than the highest possible 
  17289. occurrence number, the following actions take place: 
  17290.  
  17291.   The condition(s) in the WHEN phrase are evaluated in the order in which they 
  17292.    are written. 
  17293.  
  17294.   If none of the conditions is satisfied, the index-name for identifier-1 is 
  17295.    increased to correspond to the next table element, and step 1 is repeated. 
  17296.  
  17297.   If upon evaluation, one of the WHEN conditions is satisfied, the search is 
  17298.    terminated immediately, and the imperative-statement associated with that 
  17299.    condition is executed.  The index-name points to the table element that 
  17300.    satisfied the condition. If NEXT SENTENCE is specified, control passes to 
  17301.    the statement following the closest period. 
  17302.  
  17303.   If the end of the table is reached (that is, the incremented index-name 
  17304.    value is greater than the highest possible occurrence number) without the 
  17305.    WHEN condition being satisfied, the search is terminated, as described in 
  17306.    the next paragraph. 
  17307.  
  17308.  If, when the search begins, the value of the index-name associated with 
  17309.  identifier-1 is greater than the highest possible occurrence number, the 
  17310.  search immediately ends, and, if specified, the AT END imperative-statement is 
  17311.  executed. If the AT END phrase is omitted, control passes to the next 
  17312.  statement after the SEARCH statement. 
  17313.  
  17314.  
  17315. ΓòÉΓòÉΓòÉ 12.42.7.1. index-name-1 ΓòÉΓòÉΓòÉ
  17316.  
  17317. One of the following actions applies: 
  17318.  
  17319.   If index-name-1 is an index for identifier-1, this index is used for the 
  17320.    search. Otherwise, the first (or only) index-name is used. 
  17321.  
  17322.   If index-name-1 is an index for another table element, then the first (or 
  17323.    only) index-name for identifier-1 is used for the search; the occurrence 
  17324.    number represented by index-name-1 is increased by the same amount as the 
  17325.    search index-name and at the same time. 
  17326.  
  17327.  When the VARYING index-name-1 phrase is omitted, the first (or only) 
  17328.  index-name for identifier-1 is used for the search. 
  17329.  
  17330.  
  17331. ΓòÉΓòÉΓòÉ 12.42.7.2. identifier-2 ΓòÉΓòÉΓòÉ
  17332.  
  17333. Must be either an index data item or an elementary integer item. During the 
  17334. search, one of the following actions applies: 
  17335.  
  17336.   If identifier-2 is an index data item, then, whenever the search index is 
  17337.    increased, the specified index data item is simultaneously increased by the 
  17338.    same amount. 
  17339.  
  17340.   If identifier-2 is an integer data item, then, whenever the search index is 
  17341.    increased, the specified data item is simultaneously increased by 1. 
  17342.  
  17343.  
  17344. ΓòÉΓòÉΓòÉ 12.42.8. Binary Search ΓòÉΓòÉΓòÉ
  17345.  
  17346. The Format 2 SEARCH ALL statement executes a binary search. The search index 
  17347. need not be initialized by SET statements, because its setting is varied during 
  17348. the search operation so that its value is at no time less than the value of the 
  17349. first table element, nor ever greater than the value of the last table element. 
  17350. The index used is always that associated with the first index-name specified in 
  17351. the OCCURS clause. 
  17352.  
  17353.  
  17354. ΓòÉΓòÉΓòÉ 12.42.8.1. identifier-1 ΓòÉΓòÉΓòÉ
  17355.  
  17356. Can be a data item subordinate to a data item that contains an OCCURS clause; 
  17357. that is, it can be a part of a two- to seven-dimensional table. In this case, 
  17358. the data description entry must specify an INDEXED BY phrase for each dimension 
  17359. of the table. 
  17360.  
  17361. Before the search takes place, the values of all indexes should be set for 
  17362. higher dimensions of the table to define a specific table of identifier-1 
  17363. elements. 
  17364.  
  17365. Identifier-1 must refer to all occurrences within the table element; that is, 
  17366. it must not be subscripted or indexed. 
  17367.  
  17368. Identifier-1 cannot be a pointer data item or a procedure-pointer data item. 
  17369.  
  17370. The Data Division description of identifier-1 must contain an OCCURS clause 
  17371. with the INDEXED BY option. For Format-2, the Data Division description must 
  17372. also contain the KEY IS phrase in its OCCURS clause. 
  17373.  
  17374.  
  17375. ΓòÉΓòÉΓòÉ 12.42.8.2. WHEN Phrase ΓòÉΓòÉΓòÉ
  17376.  
  17377. If the WHEN phrase cannot be satisfied for any setting of the index within this 
  17378. range, the search is unsuccessful. 
  17379.  
  17380. If the WHEN option can be satisfied, control passes to imperative-statement-2, 
  17381. and the index contains the value indicating the occurrence that allowed the 
  17382. WHEN condition(s) to be satisfied. 
  17383.  
  17384. The results of a SEARCH ALL operation are predictable only when: 
  17385.  
  17386.   The data in the table is ordered according to the ASCENDING/DESCENDING KEY 
  17387.    phrase 
  17388.  
  17389.   The contents of the ASCENDING/DESCENDING keys specified in the WHEN clause 
  17390.    provide a unique table reference. 
  17391.  
  17392.  
  17393. ΓòÉΓòÉΓòÉ 12.42.8.3. Search Statement Considerations ΓòÉΓòÉΓòÉ
  17394.  
  17395. Index data items cannot be used as subscripts, because of the restrictions on 
  17396. direct reference to them. 
  17397.  
  17398. The use of a direct indexing reference together with a relative indexing 
  17399. reference for the same index-name allows reference to two different occurrences 
  17400. of a table element for comparison purposes. 
  17401.  
  17402. When the object of the VARYING option is an index-name for another table 
  17403. element, one Format 1 SEARCH statement steps through two table elements at 
  17404. once. 
  17405.  
  17406. To ensure correct execution of a SEARCH statement for a variable-length table, 
  17407. make sure the object of the OCCURS DEPENDING ON clause (data-name-1) contains a 
  17408. value that specifies the current length of the table. 
  17409.  
  17410. The scope of a SEARCH statement may be terminated by any of the following: 
  17411.  
  17412.   An END-SEARCH phrase at the same level of nesting 
  17413.   A separator period 
  17414.   An ELSE or END-IF phrase associated with a previous IF statement. 
  17415.  
  17416.  
  17417. ΓòÉΓòÉΓòÉ 12.42.8.4. SEARCH Example ΓòÉΓòÉΓòÉ
  17418.  
  17419. The following example searches an inventory table for items that match those 
  17420. from input data.  The key is ITEM-NUMBER. 
  17421.  
  17422. .. 1 ... ... 2 ... ... 3 ... ... 4 ... ... 5 ... ... 6 ... ... 7
  17423.  
  17424.  DATA DIVISION.
  17425.  FILE SECTION.
  17426.  FD  SALES-DATA
  17427.      BLOCK CONTAINS 1 RECORDS
  17428.      RECORD CONTAINS 80 CHARACTERS
  17429.      LABEL RECORDS STANDARD
  17430.      DATA RECORD IS SALES-REPORTS.
  17431.  01  SALES-REPORTS          PIC X(80).
  17432.  FD  PRINTED-REPORT
  17433.      BLOCK CONTAINS 1 RECORDS
  17434.      RECORD CONTAINS 132 CHARACTERS
  17435.      LABEL RECORDS OMITTED
  17436.      DATA RECORD IS PRINTER-OUTPUT.
  17437.  01  PRINTER-OUTPUT         PIC X(132).
  17438.  FD  INVENTORY-DATA
  17439.      BLOCK CONTAINS 1 RECORDS
  17440.      RECORD CONTAINS 40 CHARACTERS
  17441.      LABEL RECORDS STANDARD
  17442.      DATA RECORD IS INVENTORY-RECORD.
  17443.  01  INVENTORY-RECORD.
  17444.      03  I-NUMBER           PIC 9(4).
  17445.      03  INV-ID             PIC X(26).
  17446.      03  I-COST             PIC 9(8)V99.
  17447.  WORKING-STORAGE SECTION.
  17448.  01  EOF-SW                 PIC X      VALUE "N".
  17449.  01  EOF-SW2                PIC X      VALUE "N".
  17450.  01  SUB1                   PIC 99.
  17451.  01  RECORDS-NOT-FOUND      PIC 9(5)    VALUE ZEROS.
  17452.  01  TOTAL-COSTS            PIC 9(10)   VALUE ZEROS.
  17453.  01  HOLD-INPUT-DATA.
  17454.      03  INVENTORY-NUMBER  PIC 9999.
  17455.      03  PURCHASE-COST     PIC 9(4)V99.
  17456.      03  PURCHASE-DATE     PIC 9(6).
  17457.      03  FILLER            PIC X(64).
  17458.  01  PRINTER-SPECS.
  17459.      03  PRINT-LINE.
  17460.          05  OUTPUT-ITEM-NUMBER        PIC ZZZ9.
  17461.          05  FILLER                    PIC X(48) VALUE SPACES.
  17462.          05  TOTAL-COSTS-0             PIC $(8).99.
  17463.  01  PRODUCT-TABLE.
  17464.      05  INVENTORY-NUMBERS  OCCURS 50 TIMES
  17465.                             ASCENDING KEY ITEM-NUMBER
  17466.                             INDEXED BY INDEX-1.
  17467.              07  ITEM-NUMBER            PIC 9(4).
  17468.              07  ITEM-DESCRIPTION       PIC X(26).
  17469.              07  ITEM-COST              PIC 9(8)V99.
  17470.  
  17471. .. 1  ... ... 2 ... ... 3 ... ... 4 ... ... 5 ... ... 6 ... ...7
  17472.  
  17473.  PROCEDURE DIVISION.
  17474.  100-START-IT.
  17475.      OPEN INPUT SALES-DATA INVENTORY-DATA OUTPUT PRINTED-REPORT.
  17476.      MOVE HIGH-VALUES TO PRODUCT-TABLE.
  17477.      PERFORM READ-INVENTORY-DATA.
  17478.  LOAD-TABLE-ROUTINE.
  17479.      PERFORM LOAD-IT VARYING SUB1 FROM 1 BY 1 UNTIL SUB1 > 50
  17480.                      OR EOF-SW2 = "Y".
  17481.      PERFORM 110-READ-IT.
  17482.  200-MAIN-ROUTINE.
  17483.      PERFORM PROCESS-DATA UNTIL EOF-SW = "Y".
  17484.      MOVE TOTAL-COSTS TO TOTAL-COSTS-0.
  17485.      PERFORM WRITE-REPORT THRU WRITE-REPORT-EXIT.
  17486.      DISPLAY "RECORDS NOT FOUND - " RECORDS-NOT-FOUND
  17487.        UPON MYTUBE.
  17488.      STOP RUN.
  17489.  PROCESS-DATA.
  17490.      SEARCH ALL INVENTORY-NUMBERS
  17491.        AT END PERFORM KEY-NOT-FOUND THRU NOT-FOUND-EXIT
  17492.        WHEN ITEM-NUMBER (INDEX-1) = INVENTORY-NUMBER
  17493.           MOVE ITEM-NUMBER (INDEX-1) TO OUTPUT-ITEM-NUMBER
  17494.           MOVE ITEM-COST (INDEX-1) TO TOTAL-COSTS-0
  17495.           ADD ITEM-COST (INDEX-1) TO TOTAL-COSTS
  17496.           PERFORM WRITE-REPORT THRU WRITE-REPORT-EXIT.
  17497.      PERFORM 110-READ-IT.
  17498.  KEY-NOT-FOUND.
  17499.      ADD 1 TO RECORDS-NOT-FOUND.
  17500.  NOT-FOUND-EXIT.
  17501.      EXIT.
  17502.  LOAD-IT.
  17503.      MOVE INVENTORY-RECORD TO INVENTORY-NUMBERS (SUB1).
  17504.      PERFORM READ-INVENTORY-DATA.
  17505.  WRITE-REPORT.
  17506.      WRITE PRINTER-OUTPUT FROM PRINTER-SPECS.
  17507.  WRITE-REPORT-EXIT.
  17508.      EXIT.
  17509.  READ-INVENTORY-DATA.
  17510.      READ INVENTORY-DATA
  17511.        AT END MOVE "Y" TO EOF-SW2.
  17512.  110-READ-IT.
  17513.      READ SALES-DATA INTO HOLD-INPUT-DATA
  17514.        AT END MOVE "Y" TO EOF-SW.
  17515.  
  17516.  
  17517. ΓòÉΓòÉΓòÉ 12.43. SET Statement ΓòÉΓòÉΓòÉ
  17518.  
  17519. The SET statement can be used to: 
  17520.  
  17521.   Initialize the values of index-names or identifiers used to reference table 
  17522.    elements 
  17523.  
  17524.   Increment or decrement an index-name 
  17525.  
  17526.   Set the status of an external switch to ON or OFF 
  17527.  
  17528.   Move data to make conditional variable conditions true 
  17529.  
  17530.    -----IBM Extension----- 
  17531.  
  17532.   Set pointer and procedure-pointer data items and the ADDRESS OF special 
  17533.    register 
  17534.  
  17535.    ---End of IBM Extension--- 
  17536.  
  17537.  When the sending and receiving fields in a SET statement share part of their 
  17538.  storage (that is, the operands overlap), the result of the execution of such a 
  17539.  SET statement is undefined. 
  17540.  
  17541.  The SET statement has six formats: 
  17542.  
  17543.   Format 1 - TO Phrase 
  17544.   Format 2 - UP BY/DOWN BY Phrase 
  17545.   Format 3 - ON/OFF Phrase 
  17546.   Format 4 - TRUE Phrase 
  17547.    -----IBM Extension----- 
  17548.   Format 5 - Pointer Data Item 
  17549.   Format 6 - Procedure-pointer Data Item 
  17550.    ---End of IBM Extension--- 
  17551.  
  17552.  
  17553. ΓòÉΓòÉΓòÉ 12.43.1. Format 1 - Initializing Index-names, Identifiers ΓòÉΓòÉΓòÉ
  17554.  
  17555. When Format 1 of the SET statement is executed, the current value of the 
  17556. receiving field is replaced by the value of the sending field (with 
  17557. conversion). 
  17558.  
  17559. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17560. Γöé                                        Γöé
  17561. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                         Γöé
  17562. Γöé                Γöé                         Γöé
  17563. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇindex-name-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇTOΓöÇΓöÇΓö¼ΓöÇindex-name-2ΓöÇΓö¼ΓöÇΓöÇ><            Γöé
  17564. Γöé       ΓööΓöÇidentifier-1ΓöÇΓöÿ     Γö£ΓöÇidentifier-2ΓöÇΓöñ              Γöé
  17565. Γöé                   ΓööΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÿ              Γöé
  17566. Γöé                                        Γöé
  17567. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17568.  
  17569. Execution of the Format 1 SET statement depends upon the type of receiving 
  17570. field, as follows: 
  17571.  
  17572.   Index-name receiving fields (index-name-1, and so on) are usually converted 
  17573.    to a displacement value representing the occurrence number indicated by the 
  17574.    sending field.  To be valid, the resulting index-name value must correspond 
  17575.    to an occurrence number in its associated table element.  For the one 
  17576.    exception, when the sending field is an index data item, the value in the 
  17577.    index data item is placed in the index-name without change. 
  17578.  
  17579.   Index data item receiving fields (identifier-1, and so on) are set equal to 
  17580.    the contents of the sending field (which must be either an index-name or an 
  17581.    index data item); no conversion takes place.  A numeric integer or literal 
  17582.    sending field must not be specified. 
  17583.  
  17584.   Integer data item receiving fields (identifier-1, and so on) are are set to 
  17585.    the occurrence number associated with the sending field, which must be an 
  17586.    index-name.  An integer data item, an index data item, or a literal sending 
  17587.    field must not be specified. 
  17588.  
  17589.  Sending and Receiving Fields for Format 1 SET Statement shows valid 
  17590.  combinations of sending and receiving fields in a Format 1 SET statement. 
  17591.  
  17592.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17593.   Γöé      Sending and Receiving Fields for Format 1 SET Statement       Γöé
  17594.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17595.   Γöé                Γöé         RECEIVING FIELD        Γöé
  17596.   Γöé SENDING FIELD         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17597.   Γöé                Γöé  INDEX-NAME  Γöé  INDEX DATA  Γöé INTEGER DATA Γöé
  17598.   Γöé                Γöé        Γöé    ITEM   Γöé   ITEM   Γöé
  17599.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17600.   Γöé Index-name           Γöé   Valid   Γöé   Valid(*)  Γöé   Valid   Γöé
  17601.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17602.   Γöé Index Data Item        Γöé   Valid(*)  Γöé   Valid(*)  Γöé    -    Γöé
  17603.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17604.   Γöé Integer Data Item       Γöé   Valid   Γöé    -    Γöé    -    Γöé
  17605.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17606.   Γöé Integer Literal        Γöé   Valid   Γöé    -    Γöé    -    Γöé
  17607.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17608.   Γöé (*)No conversion takes place                         Γöé
  17609.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17610.  
  17611.  Receiving fields are acted upon in the left-to-right order in which they are 
  17612.  specified. Any subscripting or indexing associated with an identifier's 
  17613.  receiving field is evaluated immediately before the field is acted upon. 
  17614.  
  17615.  The value used for the sending field is the value at the beginning of SET 
  17616.  statement execution. 
  17617.  
  17618.  The value for an index-name after execution of a SEARCH or PERFORM statement 
  17619.  may be undefined; therefore, a Format 1 SET statement should reinitialize such 
  17620.  index-names before other table-handling operations are attempted. 
  17621.  
  17622.  
  17623. ΓòÉΓòÉΓòÉ 12.43.2. Format 2 - Adjusting Index Values ΓòÉΓòÉΓòÉ
  17624.  
  17625. When Format 2 of the SET statement is executed, the value of the receiving 
  17626. field is increased (UP BY) or decreased (DOWN BY) by a value that corresponds 
  17627. to the value in the sending field. 
  17628.  
  17629. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17630. Γöé                                        Γöé
  17631. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                           Γöé
  17632. Γöé              Γöé                           Γöé
  17633. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇindex-name-3ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇUP BYΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÇ><         Γöé
  17634. Γöé               ΓööΓöÇDOWN BYΓöÇΓöÿ  ΓööΓöÇinteger-2ΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  17635. Γöé                                        Γöé
  17636. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17637.  
  17638. When Format 2 of the SET statement is executed, the contents of the receiving 
  17639. field are increased (UP BY) or decreased (DOWN BY) by a value that corresponds 
  17640. to the number of occurrences represented by the value of identifier-3 or 
  17641. integer-2. Receiving fields are acted upon in the left-to-right order in which 
  17642. they are specified. The value of the incrementing or decrementing field at the 
  17643. beginning of SET statement execution is used for all receiving fields. 
  17644.  
  17645.  
  17646. ΓòÉΓòÉΓòÉ 12.43.3. Format 3 - Setting External Switches ΓòÉΓòÉΓòÉ
  17647.  
  17648. When Format 3 of the SET statement is executed, the status of each external 
  17649. switch associated with the specified mnemonic-name is turned ON or OFF. 
  17650.  
  17651. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17652. Γöé                                        Γöé
  17653. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                 Γöé
  17654. Γöé      Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ        Γöé                 Γöé
  17655. Γöé                Γöé        Γöé                 Γöé
  17656. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇmnemonic-name-1ΓöÇΓö┤ΓöÇΓöÇTOΓöÇΓöÇΓö¼ΓöÇONΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><               Γöé
  17657. Γöé                   ΓööΓöÇOFFΓöÇΓöÿ                  Γöé
  17658. Γöé                                        Γöé
  17659. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17660.  
  17661.  
  17662. ΓòÉΓòÉΓòÉ 12.43.4. Format 4 - Condition-names ΓòÉΓòÉΓòÉ
  17663.  
  17664. When Format 4 of the SET statement is executed, the value associated with a 
  17665. condition-name is placed in its conditional variable. 
  17666.  
  17667. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 4 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17668. Γöé                                        Γöé
  17669. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                         Γöé
  17670. Γöé                Γöé                         Γöé
  17671. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇcondition-name-1ΓöÇΓö┤ΓöÇΓöÇTO TRUEΓöÇΓöÇ><                  Γöé
  17672. Γöé                                        Γöé
  17673. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17674. If more than one literal is specified in the VALUE clause of condition-name-1, 
  17675. its associated conditional variable is set to the first literal. 
  17676.  
  17677. If multiple condition-names are specified, the results are the same as if a 
  17678. separate SET statement had been written for each condition-name in the same 
  17679. order in which the condition-names are specified. 
  17680.  
  17681.  
  17682. ΓòÉΓòÉΓòÉ 12.43.5. Format 5 - Pointer Data Item ΓòÉΓòÉΓòÉ
  17683.  
  17684. -----IBM Extension----- 
  17685.  
  17686. When Format 5 of the SET statement is executed, the current value of the 
  17687. receiving field is replaced by the address value contained in the sending 
  17688. field. 
  17689.  
  17690. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 5 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17691. Γöé                                        Γöé
  17692. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                  Γöé
  17693. Γöé                       Γöé                  Γöé
  17694. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17695. Γöé       ΓööΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇidentifier-5ΓöÇΓöÿ                   Γöé
  17696. Γöé                                        Γöé
  17697. Γöé >ΓöÇΓöÇTOΓöÇΓöÇΓö¼ΓöÇidentifier-6ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                   Γöé
  17698. Γöé     Γö£ΓöÇADDRESS OFΓöÇΓöÇΓöÇΓöÇidentifier-7ΓöÇΓöñ                     Γöé
  17699. Γöé     Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                     Γöé
  17700. Γöé     ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  17701. Γöé                                        Γöé
  17702. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17703.  
  17704. ---End of IBM Extension--- 
  17705.  
  17706.  
  17707. ΓòÉΓòÉΓòÉ 12.43.6. Format 6 - Procedure-Pointer Data Item ΓòÉΓòÉΓòÉ
  17708.  
  17709. -----IBM Extension----- 
  17710.  
  17711. When Format 6 of the SET statement is executed, the current value of the 
  17712. receiving field is replaced by the address value contained in the sending 
  17713. field. 
  17714.  
  17715. ΓöîΓöÇΓöÇΓöÇ SET STATEMENT - FORMAT 6 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17716. Γöé                                        Γöé
  17717. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                  Γöé
  17718. Γöé                      Γöé                  Γöé
  17719. Γöé >>ΓöÇΓöÇSETΓöÇΓöÇΓöÇΓöÇprocedure-pointer-data-item-1ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17720. Γöé                                        Γöé
  17721. Γöé >ΓöÇΓöÇTOΓöÇΓöÇΓö¼ΓöÇprocedure-pointer-data-item-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><          Γöé
  17722. Γöé     Γö£ΓöÇENTRYΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ            Γöé
  17723. Γöé     Γöé     ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇliteral-1ΓöÇΓöÿ Γöé            Γöé
  17724. Γöé     Γöé      ΓööΓöÇΓöñ Linkage Phrase Γö£ΓöÇΓöÿ        Γöé            Γöé
  17725. Γöé     Γö£ΓöÇNULLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ            Γöé
  17726. Γöé     ΓööΓöÇNULLSΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  17727. Γöé                                        Γöé
  17728. Γöé LINKAGE PHRASE:                                Γöé
  17729. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ         Γöé
  17730. Γöé   Γö£ΓöÇLINKAGEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇenvironment-name-1ΓöÇΓö¼ΓöÇΓöñ          Γöé
  17731. Γöé   Γöé      ΓööΓöÇTYPEΓöÇΓöÿ  ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ Γöé          Γöé
  17732. Γöé   Γöé                ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé          Γöé
  17733. Γöé   Γö£ΓöÇPROGRAMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  17734. Γöé   ΓööΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  17735. Γöé                                        Γöé
  17736. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17737.  
  17738.  
  17739.  
  17740. ---End of IBM Extension--- 
  17741.  
  17742.  
  17743. ΓòÉΓòÉΓòÉ 12.44. SORT Statement ΓòÉΓòÉΓòÉ
  17744.  
  17745. The SORT statement accepts records from one or more files, sorts them according 
  17746. to the specified key(s), and makes the sorted records available either through 
  17747. an OUTPUT PROCEDURE or in an output file. A SORT statement may appear anywhere 
  17748. in the Procedure Division except in a Declarative Section. The maximum number 
  17749. of USING or GIVING files is 32. 
  17750.  
  17751. ΓöîΓöÇΓöÇΓöÇ SORT STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17752. Γöé                                        Γöé
  17753. Γöé >>ΓöÇΓöÇSORTΓöÇΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17754. Γöé                                        Γöé
  17755. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ          Γöé
  17756. Γöé   Γöé                   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé          Γöé
  17757. Γöé                             Γöé Γöé          Γöé
  17758. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇASCENDINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇdata-name-1ΓöÇΓö┤ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17759. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇDESCENDINGΓöÇΓöÿ  ΓööΓöÇKEYΓöÇΓöÇΓöÿ                    Γöé
  17760. Γöé                                        Γöé
  17761. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17762. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDUPLICATESΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÿ                   Γöé
  17763. Γöé    ΓööΓöÇWITHΓöÇΓöÿ        ΓööΓöÇIN ORDERΓöÇΓöÿ                    Γöé
  17764. Γöé                                        Γöé
  17765. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17766. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSEQUENCEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇalphabet-nameΓöÇΓöÿ             Γöé
  17767. Γöé    ΓööΓöÇCOLLATINGΓöÇΓöÿ       ΓööΓöÇISΓöÇΓöÿ                     Γöé
  17768. Γöé                                        Γöé
  17769. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ         Γöé
  17770. Γöé              Γöé                 Γöé         Γöé
  17771. Γöé >ΓöÇΓöÇΓö¼ΓöÇUSINGΓöÇΓöÇΓöÇΓöÇfile-name-2ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇfile-name-3ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><    Γöé
  17772. Γöé   ΓööΓöÇΓöñ input procedure phrase Γö£ΓöÇΓöÿ  ΓööΓöÇΓöñ output procedure phrase Γö£ΓöÇΓöÿ      Γöé
  17773. Γöé                                        Γöé
  17774. Γöé INPUT PROCEDURE PHRASE:                            Γöé
  17775. Γöé Γö£ΓöÇΓöÇINPUT PROCEDUREΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇprocedure-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17776. Γöé           ΓööΓöÇISΓöÇΓöÿ                          Γöé
  17777. Γöé                                        Γöé
  17778. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  17779. Γöé   ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-2ΓöÇΓöÿ                     Γöé
  17780. Γöé    ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                               Γöé
  17781. Γöé                                        Γöé
  17782. Γöé OUTPUT PROCEDURE PHRASE:                           Γöé
  17783. Γöé Γö£ΓöÇΓöÇOUTPUT PROCEDUREΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇprocedure-name-3ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  17784. Γöé            ΓööΓöÇISΓöÇΓöÿ                          Γöé
  17785. Γöé                                        Γöé
  17786. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  17787. Γöé   ΓööΓöÇΓö¼ΓöÇTHROUGHΓöÇΓö¼ΓöÇΓöÇprocedure-name-4ΓöÇΓöÿ                     Γöé
  17788. Γöé    ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ                               Γöé
  17789. Γöé                                        Γöé
  17790. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17791.  
  17792. Null-capable fields are supported, but null values are not. Null values result 
  17793. in a file status of 90. 
  17794.  
  17795.  
  17796. ΓòÉΓòÉΓòÉ 12.44.1. ASCENDING/DESCENDING KEY Phrase ΓòÉΓòÉΓòÉ
  17797.  
  17798. This phrase specifies that records are to be processed in ascending or 
  17799. descending sequence (depending on the phrase specified), based on the specified 
  17800. sort keys. 
  17801.  
  17802. The direction of the sorting operation depends on the specification of the 
  17803. ASCENDING or DESCENDING keywords as follows: 
  17804.  
  17805.   When ASCENDING is specified, the sequence is from the lowest key value to 
  17806.    the highest key value. 
  17807.  
  17808.   When DESCENDING is specified, the sequence is from the highest key value to 
  17809.    the lowest. 
  17810.  
  17811.   If the KEY data item is alphabetic, alphanumeric, alphanumeric-edited, or 
  17812.    numeric-edited, the sequence of key values depends on the collating sequence 
  17813.    used (see COLLATING SEQUENCE Phrase). 
  17814.  
  17815.   The key comparisons are performed according to the rules for comparison of 
  17816.    operands in a relation condition (see "Relation Condition" under Conditional 
  17817.    Expressions). 
  17818.  
  17819.  
  17820. ΓòÉΓòÉΓòÉ 12.44.2. DUPLICATES Phrase ΓòÉΓòÉΓòÉ
  17821.  
  17822. If the DUPLICATES phrase is specified, and the contents of all the key elements 
  17823. associated with one record are equal to the corresponding key elements in one 
  17824. or more other records, the order of these records is as follows: 
  17825.  
  17826.   The order of the associated input files as specified in the SORT statement. 
  17827.    Within a given file the order is that in which the records are accessed from 
  17828.    that file. 
  17829.  
  17830.   The order in which these records are released by an input procedure, when an 
  17831.    input procedure is specified. 
  17832.  
  17833.  If the DUPLICATES phrase is not specified, the order of these records is 
  17834.  undefined. 
  17835.  
  17836.  
  17837. ΓòÉΓòÉΓòÉ 12.44.3. COLLATING SEQUENCE Phrase ΓòÉΓòÉΓòÉ
  17838.  
  17839. This phrase specifies the collating sequence to be used in nonnumeric 
  17840. comparisons for the KEY data items in this sorting operation. 
  17841.  
  17842. When the COLLATING SEQUENCE phrase is omitted, the PROGRAM COLLATING SEQUENCE 
  17843. clause (if specified) in the OBJECT-COMPUTER paragraph specifies the collating 
  17844. sequence to be used. 
  17845.  
  17846. When both the COLLATING SEQUENCE phrase and the PROGRAM COLLATING SEQUENCE 
  17847. clause are omitted, the EBCDIC collating sequence is used. 
  17848.  
  17849.  
  17850. ΓòÉΓòÉΓòÉ 12.44.4. USING Phrase ΓòÉΓòÉΓòÉ
  17851.  
  17852. When the USING phrase is specified, all the records in file-name-2, . . . 
  17853. (that is, the input files) are transferred automatically to file-name-1.  At 
  17854. the time the SORT statement is executed, these files must not be open; the 
  17855. compiler opens, reads, makes records available, and closes these files 
  17856. automatically. If EXCEPTION/ERROR procedures are specified for these files, the 
  17857. compiler makes the necessary linkage to these procedures. The input files must 
  17858. be sequential, relative or indexed files. 
  17859.  
  17860. All input files must specify sequential or dynamic access mode, and must be 
  17861. described in FD entries in the Data Division. 
  17862.  
  17863.  
  17864. ΓòÉΓòÉΓòÉ 12.44.5. INPUT PROCEDURE Phrase ΓòÉΓòÉΓòÉ
  17865.  
  17866. This phrase specifies the name of a procedure that is to select or modify input 
  17867. records before the sorting operation begins. 
  17868.  
  17869. The input procedure may consist of any procedure needed to select, modify, or 
  17870. copy the records that are made available one at a time by the RELEASE statement 
  17871. to the file referenced by file-name-1.  The range includes all statements that 
  17872. are executed as the result of a transfer of control by CALL, EXIT, GO TO, and 
  17873. PERFORM statements in the range of the input procedure, as well as all 
  17874. statements in declarative procedures that are executed as a result of the 
  17875. execution of statements in the range of the input procedure. The range of the 
  17876. input procedure must not cause the execution of any MERGE, RETURN, or SORT 
  17877. statement. 
  17878.  
  17879. If an input procedure is specified, control is passed to the input procedure 
  17880. before file-name-1 is sequenced by the SORT statement.  The compiler inserts a 
  17881. return mechanism at the end of the last statement in the input procedure. When 
  17882. control passes the last statement in the input procedure, the records that have 
  17883. been released to file-name-1 are sorted. 
  17884.  
  17885.  
  17886. ΓòÉΓòÉΓòÉ 12.44.6. GIVING Phrase ΓòÉΓòÉΓòÉ
  17887.  
  17888. When the GIVING phrase is specified, all the sorted records in file-name-1 are 
  17889. automatically transferred to the output files (file-name-3, . . . ). At the 
  17890. time the SORT statement is executed, this file must not be open. 
  17891.  
  17892. If the output files contain variable length records,  the size of the records 
  17893. contained in file-name-1 must not be less than the smallest record nor greater 
  17894. than the largest described for the output files. If the output files contain 
  17895. fixed length records, the size of the records contained in file-name-1 must not 
  17896. be greater than the largest record described for the output files. 
  17897.  
  17898. For each of the files referenced by file-name-3, the execution of the SORT 
  17899. statement causes the following actions to be taken: 
  17900.  
  17901.   The processing of the file is initiated.  The initiation is performed as if 
  17902.    an OPEN statement with the OUTPUT phrase has been executed. 
  17903.  
  17904.   The sorted logical records are returned and written onto the file. Each 
  17905.    record is written as if a WRITE statement without any optional phrases had 
  17906.    been executed.  The records overwrite the previous contents, if any, of the 
  17907.    file. 
  17908.  
  17909.    -----IBM Extension----- 
  17910.  
  17911.    If file-name-3 is a logical database file, the records are added to the end 
  17912.    of the file. 
  17913.  
  17914.    ---End of IBM Extension--- 
  17915.  
  17916.    If the file referenced by file-name-3 is an INDEXED file then the associated 
  17917.    key data-name for that file must have an ASCENDING KEY phrase in the SORT 
  17918.    statement. This same data-name must occupy the identical character positions 
  17919.    in its record as the data item associated with the prime record key for the 
  17920.    file. 
  17921.  
  17922.    For a relative file, the relative key data item for the first record 
  17923.    returned contains the value '1'; for the second record returned, the value 
  17924.    '2', and so on. After execution of the SORT statement, the content of the 
  17925.    relative key data item indicates the last record returned to the file. 
  17926.  
  17927.   The processing of the file is terminated. The termination is performed as if 
  17928.    a CLOSE statement without optional phrases had been executed. 
  17929.  
  17930.  Note:   When duplicate keys are found when writing to an indexed file, the 
  17931.          SORT will terminate and the sorted data in all GIVING files will be 
  17932.          incomplete. 
  17933.  
  17934.  These implicit functions are performed such that any associated USE AFTER 
  17935.  EXCEPTION/ERROR procedures are executed; however, the execution of such a USE 
  17936.  procedure must not cause the execution of any statement manipulating the file 
  17937.  referenced by, or accessing the record area associated with, file-name-3. 
  17938.  
  17939.  On the first attempt to write beyond the externally defined boundaries of the 
  17940.  file, any USE AFTER STANDARD EXCEPTION/ERROR procedure specified for the file 
  17941.  is executed. If control is returned from that USE procedure or if no such USE 
  17942.  procedure is specified, the processing of the file is terminated. 
  17943.  
  17944.  All output files must specify sequential or dynamic access mode, and must be 
  17945.  described in FD entries in the Data Division. 
  17946.  
  17947.  The output file must be an indexed, relative or sequential file. 
  17948.  
  17949.  The output file should also be created without a keyed sequence access path. 
  17950.  When the output file has such a path, the SORT statement cannot override the 
  17951.  collating sequence defined in the data description specifications (DDS). 
  17952.  
  17953.  
  17954. ΓòÉΓòÉΓòÉ 12.44.7. OUTPUT PROCEDURE Phrase ΓòÉΓòÉΓòÉ
  17955.  
  17956. This phrase specifies the name of a procedure that is to select or modify 
  17957. output records from the sorting operation. 
  17958.  
  17959. The output procedure may consist of any procedure needed to select, modify, or 
  17960. copy the records that are made available one at a time by the RETURN statement 
  17961. in sorted order from file-name-1. The range of the output procedure includes 
  17962. all statements that are executed as the result of a transfer of control by 
  17963. CALL, EXIT, GO TO, and PERFORM statements within the output procedure. The 
  17964. range also includes all statements in declarative procedures that are executed 
  17965. as a result of the execution of statements in the range of the output 
  17966. procedure. The range of the output procedure must not include any MERGE, 
  17967. RELEASE, or SORT statement. 
  17968.  
  17969. If an output procedure is specified, control passes to it after file-name-1 has 
  17970. been sequenced by the SORT statement. The compiler inserts a return mechanism 
  17971. after the last statement in the output procedure, and when control passes that 
  17972. statement, the return mechanism terminates the sort and passes control to the 
  17973. next executable statement after the SORT statement. Before entering the output 
  17974. procedure, the sort procedure reaches a point at which it can select the next 
  17975. record in sorted order when requested. The RETURN statements in the output 
  17976. procedure are the requests for the next record. 
  17977.  
  17978. Note:   The INPUT and OUTPUT PROCEDURE phrases are similar to those for a basic 
  17979.         PERFORM statement. For example, if you name a procedure in an OUTPUT 
  17980.         PROCEDURE phrase, that procedure is executed during the sorting 
  17981.         operation just as if it were named in a PERFORM statement. 
  17982.  
  17983.  As with the PERFORM statement, execution of the procedure ends after the last 
  17984.  statement executes. The last statement in an input or output procedure can be 
  17985.  the EXIT statement (see EXIT Statement). 
  17986.  
  17987.  -----IBM Extension----- 
  17988.  
  17989.  The SORT-RETURN special register contains a return code indicating the success 
  17990.  (or lack of) of a SORT operation. See SORT-RETURN Special Register for more 
  17991.  information. 
  17992.  
  17993.  ---End of IBM Extension--- 
  17994.  
  17995.  
  17996. ΓòÉΓòÉΓòÉ 12.45. START Statement ΓòÉΓòÉΓòÉ
  17997.  
  17998. The START statement provides a means of positioning within an indexed or 
  17999. relative file for subsequent sequential record retrieval. This positioning is 
  18000. achieved by comparing the key values of records in the file with the value you 
  18001. place in the RECORD KEY portion of a file's record area (for an indexed file), 
  18002. or in the RELATIVE KEY data item (for a relative file) prior to execution of 
  18003. the START statement. 
  18004.  
  18005. Note:   When the START statement is executed, the associated indexed or 
  18006.         relative file must be open in INPUT or I-O mode. 
  18007.  
  18008.   ΓöîΓöÇΓöÇΓöÇ START STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18009.   Γöé                                        Γöé
  18010.   Γöé >>ΓöÇΓöÇSTARTΓöÇΓöÇfile-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18011.   Γöé             ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇNO LOCKΓöÇΓöÿ                 Γöé
  18012.   Γöé              ΓööΓöÇWITHΓöÇΓöÿ                      Γöé
  18013.   Γöé                                        Γöé
  18014.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18015.   Γöé   ΓööΓöÇKEYΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ data Γö£ΓöÇΓöÿ    Γöé
  18016.   Γöé       ΓööΓöÇISΓöÇΓöÿ  Γöé     ΓööΓöÇTOΓöÇΓöÿ            Γöé          Γöé
  18017.   Γöé           Γö£ΓöÇ=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  18018.   Γöé           Γö£ΓöÇGREATERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  18019.   Γöé           Γöé      ΓööΓöÇTHANΓöÇΓöÿ          Γöé          Γöé
  18020.   Γöé           Γö£ΓöÇ>ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  18021.   Γöé           Γö£ΓöÇNOT LESSΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  18022.   Γöé           Γöé      ΓööΓöÇTHANΓöÇΓöÿ          Γöé          Γöé
  18023.   Γöé           Γö£ΓöÇNOT ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ          Γöé
  18024.   Γöé           Γöé                   Γöé          Γöé
  18025.   Γöé           Γö£ΓöÇGREATERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOR EQUALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöñ          Γöé
  18026.   Γöé           Γöé      ΓööΓöÇTHANΓöÇΓöÿ       ΓööΓöÇTOΓöÇΓöÿ Γöé          Γöé
  18027.   Γöé           ΓööΓöÇ>=ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  18028.   Γöé                                        Γöé
  18029.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18030.   Γöé   Γöé     (1,2)              Γöé                 Γöé
  18031.   Γöé   ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓöÿ                 Γöé
  18032.   Γöé          ΓööΓöÇISΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                  Γöé
  18033.   Γöé                                        Γöé
  18034.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18035.   Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  18036.   Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  18037.   Γöé                                        Γöé
  18038.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  18039.   Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-STARTΓöÇΓöÿ     Γöé
  18040.   Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  18041.   Γöé                                        Γöé
  18042.   Γöé DATA:                                     Γöé
  18043.   Γöé                (1)                       Γöé
  18044.   Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇEXTERNALLY-DESCRIBED-KEYΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                     Γöé
  18045.   Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé                      Γöé
  18046.   Γöé   Γöé        Γöé       Γöé                      Γöé
  18047.   Γöé   ΓööΓöÇΓöÇΓöÇdata-name-1ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                      Γöé
  18048.   Γöé                                        Γöé
  18049.   Γöé NOTES:                                    Γöé
  18050.   Γöé (1)  IBM Extension                              Γöé
  18051.   Γöé                                        Γöé
  18052.   Γöé (2)  Applies only to indexed files on DATABASE devices            Γöé
  18053.   Γöé                                        Γöé
  18054.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18055.  
  18056.  
  18057. ΓòÉΓòÉΓòÉ 12.45.1. NO LOCK Phrase ΓòÉΓòÉΓòÉ
  18058.  
  18059. -----IBM Extension----- 
  18060.  
  18061. The NO LOCK phrase prevents the START operation from obtaining record locks on 
  18062. files that are opened in I-O (update) mode. A START statement bearing this 
  18063. phrase also releases records that have been locked by a previous START 
  18064. operation. 
  18065.  
  18066. If this phrase is used for a file that is not open in I-O mode, an error 
  18067. message is issued. 
  18068.  
  18069. ---End of IBM Extension--- 
  18070.  
  18071. Related Information: 
  18072.  
  18073.   Indexed Files 
  18074.   Relative Files 
  18075.  
  18076.  
  18077. ΓòÉΓòÉΓòÉ 12.45.2. KEY Phrase ΓòÉΓòÉΓòÉ
  18078.  
  18079. When the KEY phrase is specified, the file position indicator is positioned at 
  18080. the logical record in the file whose key field satisfies the comparison. 
  18081.  
  18082. When the KEY phrase is not specified, KEY IS EQUAL (to the prime record key) is 
  18083. implied. 
  18084.  
  18085. When the START statement is executed, a comparison is made between the current 
  18086. value in the key data-name and the corresponding key field in the file's index. 
  18087.  
  18088. If the FILE STATUS clause is specified in the FILE-CONTROL entry, the 
  18089. associated status key is updated when the START statement is executed. (See 
  18090. Status Key.) 
  18091.  
  18092.  
  18093. ΓòÉΓòÉΓòÉ 12.45.3. INVALID KEY Phrase ΓòÉΓòÉΓòÉ
  18094.  
  18095. If the comparison is not satisfied by any record in the file, an invalid key 
  18096. condition exists; the value of the file position indicator is undefined, and 
  18097. (if specified) the INVALID KEY imperative statement runs. (See INVALID KEY 
  18098. Condition.) 
  18099.  
  18100. The INVALID KEY phrase must be specified if no EXCEPTION/ERROR procedure is 
  18101. explicitly or implicitly specified for this file. 
  18102.  
  18103.  
  18104. ΓòÉΓòÉΓòÉ 12.45.4. NOT INVALID KEY Phrase ΓòÉΓòÉΓòÉ
  18105.  
  18106. After successful completion of a START statement with the NOT INVALID KEY 
  18107. phrase, control transfers to the imperative statement associated with the 
  18108. phrase. 
  18109.  
  18110.  
  18111. ΓòÉΓòÉΓòÉ 12.45.5. END-START Phrase ΓòÉΓòÉΓòÉ
  18112.  
  18113. This explicit scope terminator serves to delimit the scope of the START 
  18114. statement. END-START permits a conditional START statement to be nested in 
  18115. another conditional statement. END-START may also be used with an imperative 
  18116. START statement. 
  18117.  
  18118. For more information, see Delimited Scope Statements. 
  18119.  
  18120.  
  18121. ΓòÉΓòÉΓòÉ 12.45.6. FORMAT Phrase ΓòÉΓòÉΓòÉ
  18122.  
  18123. -----IBM Extension----- 
  18124.  
  18125. The value specified in the FORMAT phrase contains the name of the record format 
  18126. to use for this I-O operation.  The system uses this to specify or select which 
  18127. record format to operate on. 
  18128.  
  18129. Identifier-1, if specified, must be an alphanumeric data item of 10 characters 
  18130. or less. 
  18131.  
  18132. Literal-1, if specified, must be an uppercase character-string of 10 characters 
  18133. or less. 
  18134.  
  18135. A value of all blanks is treated as though the FORMAT phrase were not 
  18136. specified.  If the value is not valid for the file, a FILE STATUS of 9K is 
  18137. returned and a USE procedure is invoked, if applicable for the file. 
  18138.  
  18139. ---End of IBM Extension--- 
  18140.  
  18141. If specified, the file position indicator is set to the first record of the 
  18142. specified record format that satisfies the comparison.  If omitted, the current 
  18143. record pointer is set to the first record of any format that satisfies the 
  18144. comparison. 
  18145.  
  18146. See Relationship between KEY IS and FORMAT Phrases for a description of how the 
  18147. FORMAT phrase interacts with the EXTERNALLY-DESCRIBED-KEY and KEY IS phrases. 
  18148.  
  18149.  
  18150. ΓòÉΓòÉΓòÉ 12.45.7. Indexed Files ΓòÉΓòÉΓòÉ
  18151.  
  18152. When the KEY phrase is specified, the key data item used for the comparison is 
  18153. data-name. 
  18154.  
  18155. When the KEY phrase is not specified, the file position indicator is set to the 
  18156. record with a key equal to the value contained in the RECORD KEY data item. 
  18157.  
  18158. When the KEY phrase is specified, the search argument used for the comparison 
  18159. is data-name-1, which can be: 
  18160.  
  18161.   The RECORD KEY itself. 
  18162.  
  18163.   An alphanumeric data item within a record description for the file with a 
  18164.    leftmost character position that corresponds to the leftmost character 
  18165.    position of the key field in the record area.  This data item must be less 
  18166.    than or equal to the length of the record key for the file. 
  18167.  
  18168.    This data item can be qualified or reference modified. If the key itself is 
  18169.    not used, the leftmost character position plus the reference modification 
  18170.    starting position must correspond to the leftmost character position of the 
  18171.    key field. 
  18172.  
  18173.  Note:   If the RECORD KEY is defined as COMP, COMP-3, or COMP-4, the key data 
  18174.  item must be the RECORD KEY itself.  A partial key field in the record area 
  18175.  cannot be used. 
  18176.  
  18177.  The file position indicator is positioned to the first record in the file with 
  18178.  a record key for a format that satisfies the comparison. If the operands in 
  18179.  the comparison are of unequal length, the comparison proceeds as if the longer 
  18180.  field were truncated on the right to the length of the shorter field.  All 
  18181.  other numeric and nonnumeric comparison rules apply, except that the PROGRAM 
  18182.  COLLATING SEQUENCE, if specified, has no effect. 
  18183.  
  18184.  -----IBM Extension----- 
  18185.  
  18186.  For a file that specified RECORD KEY IS EXTERNALLY-DESCRIBED-KEY, the 
  18187.  following additional considerations apply: 
  18188.  
  18189.   The reserved word EXTERNALLY-DESCRIBED-KEY can be specified.  This indicates 
  18190.    that the complete key in the record area should be used in the comparison. 
  18191.  
  18192.   A series of data names can be specified.  This allows a partial key field in 
  18193.    the record area to be used (generic START).  These data names must follow 
  18194.    the following rules: 
  18195.  
  18196.     - All except the last of the data names specified must be a record key for 
  18197.       a single format that was copied in for the file. The record format in 
  18198.       which they are contained does not have to be the one that can be 
  18199.       specified by the FORMAT phrase. 
  18200.     - The order of these data names (key fields) must match the order of the 
  18201.       keys as defined in DDS; that is, they must be specified from most 
  18202.       significant field to least significant. 
  18203.     - The total number of data names cannot exceed the number of key fields 
  18204.       defined for that record format. 
  18205.     - If the last data name specified in the series is not a key field in the 
  18206.       record area, it must have its left byte occupy the same space as the key 
  18207.       field that is defined at that relative position.  If the key field in the 
  18208.       record area at this position is a COMP, COMP-3, or COMP-4 field, only the 
  18209.       key field itself can be used as the data name. 
  18210.     - Only the last key can be reference modified, and the reference 
  18211.       modification starting position must equal 1. 
  18212.  
  18213.   Relationship between KEY IS and FORMAT Phrases shows the action between the 
  18214.    KEY IS phrase and the FORMAT phrase: 
  18215.  
  18216.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18217.   Γöé      Relationship between KEY IS and FORMAT Phrases           Γöé
  18218.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18219.   Γöé FORMAT    Γöé              KEY Phrase              Γöé
  18220.   Γöé Phrase    Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18221.   Γöé specified  Γöé  Data-Name Γöé  Omitted Γöé     EXTERNALLY-DESCRIBED-KEY     Γöé
  18222.   Γöé       Γöé  Series  Γöé      Γöé                     Γöé
  18223.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18224.   Γöé Yes     Γöé   A, B   Γöé  C, D  Γöé          C, B          Γöé
  18225.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18226.   Γöé No      Γöé   A, E   Γöé  F, G  Γöé          F, E          Γöé
  18227.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18228.  
  18229.  A     The search argument is built using the specified data items. 
  18230.  B     The file position indicator is set to the first record in the file of 
  18231.        the format specified with a record key that satisfies the comparison 
  18232.        specified in the key phrase. 
  18233.  C     The search argument is built using the key fields in the record area for 
  18234.        the format specified in the FORMAT phrase. 
  18235.  D     The file position indicator is set to the first record in the file of 
  18236.        the specified format with a record key equal to the search argument. 
  18237.  E     The file position indicator is set to the first record in the file with 
  18238.        a common key for the file that satisfies the comparison specified in the 
  18239.        KEY phrase.  If there is no common key, the file position indicator is 
  18240.        set to the first record in the file. 
  18241.  F     The search argument is built using the key fields in the record area for 
  18242.        the first record format for the file as defined in the program. 
  18243.  G     The file position indicator is set to the first record in the file with 
  18244.        a common key for the file that is equal to the search argument.  If 
  18245.        there is no common key, the file position indicator is set to the first 
  18246.        record in the file. 
  18247.  
  18248.  ---End of IBM Extension--- 
  18249.  
  18250.  When the KEY phrase is not specified, the key data item used for the EQUAL TO 
  18251.  comparison is the prime RECORD KEY. 
  18252.  
  18253.  data-name-1 
  18254.            Can be any of the following: 
  18255.  
  18256.      The prime RECORD KEY. 
  18257.  
  18258.      An alphanumeric data item within a record description for a file whose 
  18259.       leftmost character position corresponds to the leftmost character 
  18260.       position of that record key; it may be qualified. The data item must be 
  18261.       less than or equal to the length of the record key for the file. 
  18262.  
  18263.  The file position indicator points to the first record in the file whose key 
  18264.  field satisfies the comparison. If the operands in the comparison are of 
  18265.  unequal lengths, the comparison proceeds as if the longer field were truncated 
  18266.  on the right to the length of the shorter field. All other numeric and 
  18267.  nonnumeric comparison rules apply, except that the PROGRAM COLLATING SEQUENCE 
  18268.  clause, if specified, has no effect. 
  18269.  
  18270.  When START statement execution is successful, the RECORD KEY with which 
  18271.  data-name-1 is associated becomes the key of reference for subsequent READ 
  18272.  statements. 
  18273.  
  18274.  When START statement execution is unsuccessful, the key of reference is 
  18275.  undefined. 
  18276.  
  18277.  -----IBM Extension----- 
  18278.  
  18279.  For indexed files of device type DATABASE, the meaning of the comparison can 
  18280.  be affected by the type of key fields in the record area defined for the file. 
  18281.  Key fields on this system can be defined as multiple fields, each of which can 
  18282.  be in ascending or descending sequence.  The system establishes a sequence 
  18283.  (keyed sequence access path) for the records based on the values contained in 
  18284.  the record key for the format and the sequencing specified in DDS.  When a 
  18285.  START statement is processed, the request is interpreted as follows: 
  18286.  
  18287.   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18288.   Γöé COBOL COMPARISON            Γöé SYSTEM RESULT             Γöé
  18289.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18290.   Γöé GREATER THAN              Γöé AFTER                 Γöé
  18291.   Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  18292.   Γöé NOT LESS THAN             Γöé EQUAL TO or AFTER           Γöé
  18293.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18294.  
  18295.  For example, when a statement is processed using the comparison of GREATER 
  18296.  THAN, a search is made of these sequenced records for the first record after 
  18297.  the search argument specified by the START statement.  If the file was 
  18298.  sequenced using descending keys, the file position indicator would point to a 
  18299.  record with a key less than the one specified and not greater than that 
  18300.  specified in the START statement. 
  18301.  
  18302.  ---End of IBM Extension--- 
  18303.  
  18304.  
  18305. ΓòÉΓòÉΓòÉ 12.45.8. Relative Files ΓòÉΓòÉΓòÉ
  18306.  
  18307. When the KEY phrase is not specified, the file position indicator is set to the 
  18308. record in the file with a key (relative record number) equal to the RELATIVE 
  18309. KEY data item. 
  18310.  
  18311. When the KEY phrase is specified, data-name-1 must specify the RELATIVE KEY. 
  18312. The file position indicator is positioned to the first logical record currently 
  18313. existing in the file with a key (relative record number) that satisfies the 
  18314. comparison with the RELATIVE KEY data item. 
  18315.  
  18316. When the KEY phrase is not specified, KEY IS EQUAL (to the prime record key) is 
  18317. implied. 
  18318.  
  18319. Data-name-1 may be qualified; it may not be subscripted. 
  18320.  
  18321. When the START statement is executed, a comparison is made between the current 
  18322. value in the relative key and the relative record numbers of existing records 
  18323. in the file. 
  18324.  
  18325. If the FILE STATUS clause is specified in the FILE-CONTROL entry, the 
  18326. associated status key is updated when the START statement is executed. (See 
  18327. "Status Key" under Common Processing Facilities.) 
  18328.  
  18329. Whether or not the KEY phrase is specified, the key data item used in the 
  18330. comparison is the RELATIVE KEY data item. When START statement execution is 
  18331. successful, the file position indicator points to the logical record in the 
  18332. file whose key satisfies the comparison, and this key becomes the reference for 
  18333. subsequent READ statements. 
  18334.  
  18335. When START statement execution is unsuccessful, the key of reference and the 
  18336. file position indicator are undefined. 
  18337.  
  18338.  
  18339. ΓòÉΓòÉΓòÉ 12.46. STOP Statement ΓòÉΓòÉΓòÉ
  18340.  
  18341. The STOP statement halts execution of the object program either permanently or 
  18342. temporarily. 
  18343.  
  18344. ΓöîΓöÇΓöÇΓöÇ STOP STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18345. Γöé                                        Γöé
  18346. Γöé >>ΓöÇΓöÇSTOPΓöÇΓöÇΓö¼ΓöÇRUNΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                           Γöé
  18347. Γöé      ΓööΓöÇliteralΓöÇΓöÿ                             Γöé
  18348. Γöé                                        Γöé
  18349. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18350.  
  18351. When STOP literal is specified, the literal is communicated to the system 
  18352. operator for batch jobs and to the work station for interactive jobs.  Program 
  18353. execution is suspended.  Execution is resumed only after operator intervention. 
  18354.  
  18355. The operator response determines determines the action to be taken. 
  18356.  
  18357.     Operator 
  18358.     Response    Action 
  18359.     G (default) Continue at next instruction. 
  18360.     C           Terminate the execution of all programs up to and including the 
  18361.                 program at the nearest control boundary. If the nearest control 
  18362.                 boundary is a hard control boundary then escape message CEE9901 
  18363.                 is issued to the caller of the COBOL run unit. For batch jobs, 
  18364.                 the job is canceled if the ENDSEV parameter (see CRTJOBD CL 
  18365.                 command) for the job contains a value that is less than or 
  18366.                 equal to the severity of the message. 
  18367.     D           Dump COBOL identifiers and then perform the same action as C. 
  18368.     F           Dump COBOL identifiers and file information and then perform 
  18369.                 the same action as C. 
  18370.  
  18371.  The output of the STOP literal contains the program-name. The literal is 
  18372.  contained in the second level text, and is displayed when the Help key is 
  18373.  used. 
  18374.  
  18375.  The STOP literal statement is useful for special situations (a special tape or 
  18376.  disk must be mounted, a specific daily code must be entered, and so forth) 
  18377.  when operator intervention is needed during program execution. However, the 
  18378.  ACCEPT and DISPLAY statements are preferred when operator intervention is 
  18379.  needed. 
  18380.  
  18381.  When STOP RUN is specified, execution of all programs up to and including the 
  18382.  program at the nearest control boundary is ended, and control is returned to 
  18383.  the program prior to the control boundary. If the nearest control boundary is 
  18384.  a hard control boundary, then STOP RUN causes the activation group (run unit) 
  18385.  to end, which in turn causes all files scoped to the activation group to be 
  18386.  closed. If a STOP RUN statement appears in a sequence of imperative 
  18387.  statements, it must be the last or only statement in the sequence. 
  18388.  
  18389.  In each case above, the calling program could be the system. If it is, 
  18390.  execution of the run unit ceases, and control transfers to the operating 
  18391.  system. 
  18392.  
  18393.  Also, if the main program is called by a program written in a language that 
  18394.  does not follow COBOL linkage conventions, return will be to this calling 
  18395.  program. 
  18396.  
  18397.  For details on the behavior of the STOP RUN statement under various 
  18398.  conditions, see "Returning from an ILE COBOL/400 Program" in ILE COBOL/400 
  18399.  PROGRAM-ID. 
  18400.  
  18401.  Related Information: 
  18402.  
  18403.   RETURN-CODE Special Register 
  18404.  
  18405.  
  18406. ΓòÉΓòÉΓòÉ 12.46.1. RETURN-CODE Special Register ΓòÉΓòÉΓòÉ
  18407.  
  18408. -----IBM Extension----- 
  18409.  
  18410. The RETURN-CODE special register can be used to pass return code information 
  18411. (that is, a numeric value) from a program to its caller (either a calling 
  18412. program or the system). 
  18413.  
  18414. You can set the RETURN-CODE special register before executing an EXIT PROGRAM, 
  18415. GOBACK, or STOP RUN statement. 
  18416.  
  18417. RETURN-CODE has the implicit definition: 
  18418.  
  18419.   01 RETURN-CODE GLOBAL PICTURE S9999 USAGE BINARY VALUE 0
  18420.  
  18421. This special register may be used anywhere in a program where a data-item with 
  18422. a data definition of PICTURE S9999 USAGE BINARY is allowed. When used in nested 
  18423. programs, the RETURN-CODE special register is implicitly defined as GLOBAL in 
  18424. the outermost program. When a COBOL subprogram terminates, the contents of the 
  18425. RETURN-CODE special register of the subprogram are transferred into the 
  18426. RETURN-CODE special register of the calling program. When the main COBOL 
  18427. program terminates, and control returns to the operating system, the special 
  18428. register content is returned to the operating system as a user return code. 
  18429.  
  18430. For the first call to a program, the RETURN-CODE special register is 
  18431. initialized to zero, which is the normal return code for successful completion. 
  18432. The field will be re-set to zero on subsequent calls to a program that has been 
  18433. cancelled or which possesses the INITIAL attribute. Otherwise, the RETURN-CODE 
  18434. special register will not be re-set, it will be unchanged from the value it 
  18435. contained after the previous call. 
  18436.  
  18437. ---End of IBM Extension--- 
  18438.  
  18439.  
  18440. ΓòÉΓòÉΓòÉ 12.47. STRING Statement ΓòÉΓòÉΓòÉ
  18441.  
  18442. The STRING statement strings together the partial or complete contents of two 
  18443. or more data items or literals into one single data item. 
  18444.  
  18445. One STRING statement can be written instead of a series of MOVE statements. 
  18446.  
  18447. ΓöîΓöÇΓöÇΓöÇ STRING STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18448. Γöé                                        Γöé
  18449. Γöé >>ΓöÇΓöÇSTRINGΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18450. Γöé                                        Γöé
  18451. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  18452. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                     Γöé      Γöé
  18453. Γöé              Γöé                     Γöé      Γöé
  18454. Γöé >ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇDELIMITEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18455. Γöé     ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ        ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  18456. Γöé                         ΓööΓöÇSIZEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  18457. Γöé                                        Γöé
  18458. Γöé >ΓöÇΓöÇINTOΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18459. Γöé             ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇPOINTERΓöÇΓöÇidentifier-4ΓöÇΓöÿ          Γöé
  18460. Γöé              ΓööΓöÇWITHΓöÇΓöÿ                       Γöé
  18461. Γöé                                        Γöé
  18462. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18463. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOVERFLOWΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  18464. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  18465. Γöé                                        Γöé
  18466. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><  Γöé
  18467. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOVERFLOWΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-STRINGΓöÇΓöÿ    Γöé
  18468. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  18469. Γöé                                        Γöé
  18470. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18471.  
  18472. Note:   All identifiers (except identifier-4, the POINTER item) must have USAGE 
  18473. DISPLAY, explicitly or implicitly. 
  18474.  
  18475. Related Information: 
  18476.  
  18477.   Data Flow 
  18478.   Coding Example 
  18479.  
  18480.  
  18481. ΓòÉΓòÉΓòÉ 12.47.1. ON OVERFLOW Phrases ΓòÉΓòÉΓòÉ
  18482.  
  18483. Control is transferred to imperative-statement-1 when the pointer value 
  18484. (explicit or implicit): 
  18485.  
  18486.   Is zero or less than 1 
  18487.   Exceeds a value equal to the length of the receiving field 
  18488.  
  18489.  When any of the above conditions occur, an overflow condition exists, and no 
  18490.  more data is transferred. The STRING operation is terminated and, if the ON 
  18491.  OVERFLOW phrase is specified, control is transferred to 
  18492.  imperative-statement-1. Otherwise, control is transferred to the end of the 
  18493.  STRING statement. The NOT ON OVERFLOW statement, if specified, is ignored. 
  18494.  
  18495.  If control is transferred to imperative-statement-1, execution continues 
  18496.  according to the rules for each statement specified in imperative-statement-1. 
  18497.  If a procedure branching or conditional statement that causes explicit 
  18498.  transfer of control is executed, control is transferred according to the rules 
  18499.  for that statement; otherwise, upon completion of the execution of 
  18500.  imperative-statement-1, control is transferred to the end of the STRING 
  18501.  statement. 
  18502.  
  18503.  If an overflow condition does not occur during the execution of a STRING 
  18504.  statement, then control is transferred to the end of the STRING statement. If 
  18505.  an overflow condition does not occur and the NOT ON OVERFLOW phrase is 
  18506.  specified, control is transferred to imperative-statement-2. The ON OVERFLOW 
  18507.  phrase, if specified, is ignored. 
  18508.  
  18509.  If control is transferred to imperative-statement-2, execution continues 
  18510.  according to the rules for each statement specified in imperative statement-2. 
  18511.  If a procedure branching or conditional statement that causes explicit 
  18512.  transfer of control is executed, control is transferred according to the rules 
  18513.  for that statement. Otherwise, upon completion of the execution of 
  18514.  imperative-statement-2, control is transferred to the end of the STRING 
  18515.  statement. 
  18516.  
  18517.  The ON OVERFLOW statement is not executed unless there was an attempt to move 
  18518.  in one or more characters beyond the end of identifier-3, or the initial value 
  18519.  of POINTER is less than 1. 
  18520.  
  18521.  
  18522. ΓòÉΓòÉΓòÉ 12.47.2. END-STRING Phrase ΓòÉΓòÉΓòÉ
  18523.  
  18524. This explicit scope terminator serves to delimit the scope of the STRING 
  18525. statement. END-STRING permits a conditional STRING statement to be nested in 
  18526. another conditional statement. END-STRING may also be used with an imperative 
  18527. STRING statement. 
  18528.  
  18529. For more information, see Delimited Scope Statements. 
  18530.  
  18531.  
  18532. ΓòÉΓòÉΓòÉ 12.47.3. Data Flow ΓòÉΓòÉΓòÉ
  18533.  
  18534. When the STRING statement is executed, data is transferred from the sending 
  18535. fields to the receiving field. The order in which sending fields are processed 
  18536. is the order in which they are specified. The following rules apply: 
  18537.  
  18538.   Characters from the sending fields are transferred to the receiving field, 
  18539.    according to the rules for alphanumeric to alphanumeric elementary moves, 
  18540.    except that no space filling is provided (see MOVE Statement). 
  18541.  
  18542.   When DELIMITED BY identifier/literal is specified, the contents of each 
  18543.    sending item are transferred, character-by-character, beginning with the 
  18544.    leftmost character and continuing until either: 
  18545.  
  18546.     - A delimiter for this sending field is reached (the delimiter itself is 
  18547.       not transferred), or 
  18548.  
  18549.     - The rightmost character of this sending field has been transferred. 
  18550.  
  18551.   When DELIMITED BY SIZE identifier is specified, each entire sending field is 
  18552.    transferred to the receiving field. 
  18553.  
  18554.   When the receiving field is filled, or when all the sending fields have been 
  18555.    processed, the operation is ended. 
  18556.  
  18557.   When the POINTER phrase is specified, an explicit pointer field is available 
  18558.    to the COBOL user to control placement of data in the receiving field. The 
  18559.    user must set the explicit pointer's initial value, which must not be less 
  18560.    than 1 and not more than the character count of the receiving field. (Note 
  18561.    that the pointer field must be defined as a field large enough to contain a 
  18562.    value equal to the length of the receiving field plus 1; this precludes 
  18563.    arithmetic overflow when the system updates the pointer at the end of the 
  18564.    transfer.) 
  18565.  
  18566.   When the POINTER phrase is not specified, no pointer is available to the 
  18567.    user. However, a conceptual implicit pointer with an initial value of 1 is 
  18568.    used by the system. 
  18569.  
  18570.   Conceptually, when the STRING statement is executed, the initial pointer 
  18571.    value (explicit or implicit) is the first character position within the 
  18572.    receiving field into which data is to be transferred. Beginning at that 
  18573.    position, data is then positioned, character-by-character, from left to 
  18574.    right. After each character is positioned, the explicit or implicit pointer 
  18575.    is increased by 1. The value in the pointer field is changed only in this 
  18576.    manner. At the end of processing, the pointer value always indicates a value 
  18577.    equal to one character beyond the last character transferred into the 
  18578.    receiving field. 
  18579.  
  18580.  Subscripting, reference modification, or variable-length calculations are 
  18581.  performed only once, at the beginning of the processing of the STRING 
  18582.  statement. So if identifier-3 or identifier-4 is used as a subscript or 
  18583.  reference modifier in the STRING statement, or affects the length of any 
  18584.  identifiers of the STRING statement, these values are determined at the 
  18585.  beginning of the STRING statement, and are not affected by any results of the 
  18586.  STRING statement. 
  18587.  
  18588.  If identifier-1 or identifier-2 occupy the same storage area as identifier-3 
  18589.  or identifier-4, or if identifier-3 and identifier-4 occupy the same storage 
  18590.  area, the result of the execution of the STRING statement is undefined. 
  18591.  
  18592.  After STRING statement execution is completed, only that part of the receiving 
  18593.  field into which data was transferred is changed. The rest of the receiving 
  18594.  field contains the data that was present before this execution of the STRING 
  18595.  statement. 
  18596.  
  18597.  When the following STRING statement is executed, the results obtained will be 
  18598.  like those illustrated in Results of STRING Statement Execution. 
  18599.  
  18600.   STRING ID-1 ID-2 DELIMITED BY ID-3
  18601.                   ID-4 ID-5 DELIMITED BY SIZE
  18602.       INTO ID-7 WITH POINTER ID-8
  18603.   END-STRING
  18604.  
  18605.  Results of STRING Statement Execution 
  18606.  
  18607.   IDΓöÇ1 at execution   IDΓöÇ2 at execution   IDΓöÇ4 at execution  IDΓöÇ5 at execution
  18608.   ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ  ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ     ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ
  18609.   Γöé 1Γöé 2Γöé 3Γöé *Γöé 4Γöé 5Γöé  Γöé AΓöé *Γöé BΓöé CΓöé     Γöé 6Γöé 7Γöé 8Γöé 9Γöé *Γöé 0Γöé Γöé DΓöé EΓöé *Γöé FΓöé GΓöé
  18610.   ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ  ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ     ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ
  18611.   ΓööΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÿ      ΓööΓöÇΓö¼Γöÿ         ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18612.   First group of    Second group of    Third group of    Fourth group of
  18613.   characters moved   characters moved   characters moved   characters moved
  18614.     Γöé          Γöé              Γöé          Γöé
  18615.     ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ   ΓööΓöÉ     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  18616.            Γöé   Γöé     Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18617.   IDΓöÇ3        Γöé   Γöé     Γöé         Γöé
  18618.   (delimiter)                     
  18619.   at execution ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18620.   ΓöîΓöÇΓöÇΓöÉ     ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ
  18621.   Γöé *Γöé     Γöé 1Γöé 2Γöé 3Γöé AΓöé 6Γöé 7Γöé 8Γöé 9Γöé *Γöé 0Γöé DΓöé EΓöé *Γöé FΓöé GΓöé ZΓöé ZΓöé ZΓöé ZΓöé ZΓöé ZΓöé
  18622.   ΓööΓöÇΓöÇΓöÿ     ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ
  18623.          IDΓöÇ7 after execution (initialized to ALL Z before execution)
  18624.  
  18625.   IDΓöÇ8
  18626.   (pointer)
  18627.   after execution
  18628.   ΓöîΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÉ
  18629.   Γöé 1Γöé 6Γöé
  18630.   ΓööΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÿ
  18631.   (initialized to 01 before execution)
  18632.  
  18633.  
  18634. ΓòÉΓòÉΓòÉ 12.47.4. STRING Statement Example ΓòÉΓòÉΓòÉ
  18635.  
  18636. The following example illustrates some of the considerations that apply to the 
  18637. STRING statement. 
  18638.  
  18639. In the Data Division, the programmer has defined the following fields: 
  18640.  
  18641.    01 RPT-LINE     PICTURE X(120).
  18642.    01 LINE-POS     PICTURE 99.
  18643.    01 LINE-NO      PICTURE 9(5) VALUE 1.
  18644.    01 DEC-POINT    PICTURE X VALUE ".".
  18645.  
  18646. In the File Section, he or she has defined the following input record: 
  18647.  
  18648.     01 RCD-01.
  18649.        05 CUST-INFO.
  18650.           10 CUST-NAME  PICTURE X(15).
  18651.           10 CUST-ADDR  PICTURE X(34).
  18652.        05 BILL-INFO.
  18653.           10 INV-NO     PICTURE X(6).
  18654.           10 INV-AMT    PICTURE $$,$$$.99.
  18655.           10 AMT-PAID   PICTURE $$,$$$.99.
  18656.           10 DATE-PAID  PICTURE X(8).
  18657.           10 BAL-DUE    PICTURE $$,$$$.99.
  18658.           10 DATE-DUE   PICTURE X(8).
  18659.  
  18660. The programmer wants to construct an output line consisting of portions of the 
  18661. information from RCD-01.  The line is to consist of a line number, customer 
  18662. name and address, invoice number, date due, and balance due, truncated to the 
  18663. dollar figure shown. 
  18664.  
  18665. The record as read in contains the following information: 
  18666.  
  18667.   J.B.bSMITHbbbbb
  18668.   444bSPRINGbST.,bCHICAGO,bILL.bbbbb  (where b is a blank space)
  18669.   A14275
  18670.   $4,736.85
  18671.   $2,400.00
  18672.   09/22/76
  18673.   $2,336.85
  18674.   09/09/94
  18675.  
  18676. In the Procedure Division, the programmer initializes RPT-LINE to SPACES and 
  18677. sets LINE-POS (which is to be used as the pointer field) to 4.  Then he issues 
  18678. this STRING statement: 
  18679.  
  18680.    STRING LINE-NO SPACE
  18681.        CUST-INFO SPACE
  18682.        INV-NO SPACE
  18683.        DATE-DUE SPACE
  18684.      DELIMITED BY SIZE,
  18685.        BAL-DUE
  18686.      DELIMITED BY DEC-POINT
  18687.      INTO RPT-LINE
  18688.      WITH POINTER LINE-POS.
  18689.  
  18690. When the statement is executed, the following actions take place: 
  18691.  
  18692.   1. The field LINE-NO is moved into positions 4 through 8 of RPT-LINE. 
  18693.  
  18694.   2. A space is moved into position 9. 
  18695.  
  18696.   3. The group item CUST-INFO is moved into positions 10 through 58. 
  18697.  
  18698.   4. A space is moved into position 59. 
  18699.  
  18700.   5. INV-NO is moved into positions 60 through 65. 
  18701.  
  18702.   6. A space is moved into position 66. 
  18703.  
  18704.   7. DATE-DUE is moved into positions 67 through 74. 
  18705.  
  18706.   8. A space is moved into position 75. 
  18707.  
  18708.   9. The portion of BAL-DUE that precedes the decimal point is moved into 
  18709.      positions 76 through 81. 
  18710.  
  18711.  After the STRING statement has been executed: 
  18712.  
  18713.   RPT-LINE appears as shown in STRING Statement Example Output Data. 
  18714.   LINE-POS  contains the value 82. 
  18715.  
  18716.  Note:   One STRING statement can be written instead of a series of MOVE 
  18717.          statements. 
  18718.  
  18719.    ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18720.    Γöé                                           Γöé
  18721.    Γöé Column                                       Γöé
  18722.    Γöé  4   10        25                 60    67     76    Γöé
  18723.    Γöé  Γöé   Γöé        Γöé                 Γöé    Γöé     Γöé    Γöé
  18724.    Γöé  Γöé   Γöé        Γöé                 Γöé    Γöé     Γöé    Γöé
  18725.    Γöé                                           Γöé
  18726.    Γöé  00001 J.B. SMITH    444 SPRING ST., CHICAGO, ILL.   A14725  09/09/94  $2,336  Γöé
  18727.    Γöé                                           Γöé
  18728.    ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18729.  
  18730.  STRING Statement Example Output Data 
  18731.  
  18732.  
  18733. ΓòÉΓòÉΓòÉ 12.48. SUBTRACT Statement ΓòÉΓòÉΓòÉ
  18734.  
  18735. The SUBTRACT statement subtracts one numeric item, or the sum of two or more 
  18736. numeric items, from one or more numeric items, and stores the results. 
  18737.  
  18738. The SUBTRACT statement has three formats: 
  18739.  
  18740.   Format 1 - SUBTRACT 
  18741.   Format 2 - SUBTRACT with GIVING phrase 
  18742.   Format 3 - SUBTRACT with CORRESPONDING phrase 
  18743.  
  18744.  
  18745. ΓòÉΓòÉΓòÉ 12.48.1. SUBTRACT Statement - Format 1 ΓòÉΓòÉΓòÉ
  18746.  
  18747. ΓöîΓöÇΓöÇΓöÇ SUBTRACT STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18748. Γöé                                        Γöé
  18749. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ     ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ    Γöé
  18750. Γöé                  Γöé                   Γöé    Γöé
  18751. Γöé >>ΓöÇΓöÇSUBTRACTΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇFROMΓöÇΓöÇΓöÇΓöÇidentifier-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇ> Γöé
  18752. Γöé         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ              ΓööΓöÇROUNDEDΓöÇΓöÿ     Γöé
  18753. Γöé                                        Γöé
  18754. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18755. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  18756. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  18757. Γöé                                        Γöé
  18758. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18759. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  18760. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  18761. Γöé                                        Γöé
  18762. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  18763. Γöé   ΓööΓöÇEND-SUBTRACTΓöÇΓöÿ                              Γöé
  18764. Γöé                                        Γöé
  18765. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18766.  
  18767. In Format 1, identifiers or literals preceding the keyword FROM are added 
  18768. together, and this initial sum is subtracted from and stored in identifier-2. 
  18769. The initial sum is then subtracted from and stored in each successive 
  18770. occurrence of identifier-2, in the left-to-right order in which identifier-2 is 
  18771. specified. 
  18772.  
  18773.  
  18774. ΓòÉΓòÉΓòÉ 12.48.2. SUBTRACT Statement - Format 2 - GIVING phrase ΓòÉΓòÉΓòÉ
  18775.  
  18776. ΓöîΓöÇΓöÇΓöÇ SUBTRACT STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18777. Γöé                                        Γöé
  18778. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                      Γöé
  18779. Γöé                  Γöé                      Γöé
  18780. Γöé >>ΓöÇΓöÇSUBTRACTΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇFROMΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18781. Γöé         ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ      ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ          Γöé
  18782. Γöé                                        Γöé
  18783. Γöé       ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                   Γöé
  18784. Γöé                     Γöé                   Γöé
  18785. Γöé >ΓöÇΓöÇGIVINGΓöÇΓöÇΓöÇΓöÇidentifier-3ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18786. Γöé               ΓööΓöÇROUNDEDΓöÇΓöÿ                    Γöé
  18787. Γöé                                        Γöé
  18788. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18789. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  18790. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  18791. Γöé                                        Γöé
  18792. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18793. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  18794. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  18795. Γöé                                        Γöé
  18796. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  18797. Γöé   ΓööΓöÇEND-SUBTRACTΓöÇΓöÿ                              Γöé
  18798. Γöé                                        Γöé
  18799. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18800.  
  18801. In Format 2, all identifiers or literals preceding the keyword FROM are added 
  18802. together and this sum is subtracted from identifier-2 or literal-2. The result 
  18803. of the subtraction is stored in the data item referenced by identifier-3. 
  18804. Identifier-2 or literal-2 remains unchanged. 
  18805.  
  18806.  
  18807. ΓòÉΓòÉΓòÉ 12.48.3. SUBTRACT Statement - Format 3 - CORRESPONDING phrase ΓòÉΓòÉΓòÉ
  18808.  
  18809. ΓöîΓöÇΓöÇΓöÇ SUBTRACT STATEMENT - FORMAT 3 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18810. Γöé                                        Γöé
  18811. Γöé >>ΓöÇΓöÇSUBTRACTΓöÇΓöÇΓö¼ΓöÇCORRESPONDINGΓöÇΓö¼ΓöÇΓöÇidentifier-1ΓöÇΓöÇFROMΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18812. Γöé        ΓööΓöÇCORRΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  18813. Γöé                                        Γöé
  18814. Γöé >ΓöÇΓöÇidentifier-2ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18815. Γöé          ΓööΓöÇROUNDEDΓöÇΓöÿ                         Γöé
  18816. Γöé                                        Γöé
  18817. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18818. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ              Γöé
  18819. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  18820. Γöé                                        Γöé
  18821. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18822. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇSIZE ERRORΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ           Γöé
  18823. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  18824. Γöé                                        Γöé
  18825. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  18826. Γöé   ΓööΓöÇEND-SUBTRACTΓöÇΓöÿ                              Γöé
  18827. Γöé                                        Γöé
  18828. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18829.  
  18830. In Format 3, elementary data items within identifier-1 are subtracted from, and 
  18831. the results are stored in, the corresponding elementary data items within 
  18832. identifier-2. 
  18833.  
  18834. If the composite of operands is 18 digits or less, enough places are carried so 
  18835. that no significant digits are lost during execution. 
  18836.  
  18837. -----IBM Extension----- 
  18838.  
  18839. The composite of all operands in an arithmetic statement can have a maximum 
  18840. length of 30 digits. 
  18841.  
  18842. ---End of IBM Extension--- 
  18843.  
  18844.  
  18845. ΓòÉΓòÉΓòÉ 12.49. UNSTRING Statement ΓòÉΓòÉΓòÉ
  18846.  
  18847. The UNSTRING statement causes contiguous data in a sending field to be 
  18848. separated and placed into multiple receiving fields. 
  18849.  
  18850. One UNSTRING statement can be written instead of a series of MOVE statements. 
  18851.  
  18852. ΓöîΓöÇΓöÇΓöÇ UNSTRING STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  18853. Γöé                                        Γöé
  18854. Γöé >>ΓöÇΓöÇUNSTRINGΓöÇΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18855. Γöé                                        Γöé
  18856. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18857. Γöé   ΓööΓöÇDELIMITEDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöñ OR Phrase Γö£ΓöÇΓöÿ     Γöé
  18858. Γöé         ΓööΓöÇBYΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇALLΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ             Γöé
  18859. Γöé                                        Γöé
  18860. Γöé      ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ       Γöé
  18861. Γöé                                  Γöé       Γöé
  18862. Γöé >ΓöÇΓöÇINTOΓöÇΓöÇΓöÇΓöÇidentifier-4ΓöÇΓöÇΓöñ DELIMITER Phrase Γö£ΓöÇΓöÇΓöñ COUNT Phrase Γö£ΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18863. Γöé                                        Γöé
  18864. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18865. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇPOINTERΓöÇΓöÇidentifier-7ΓöÇΓöÿ                    Γöé
  18866. Γöé    ΓööΓöÇWITHΓöÇΓöÿ                                 Γöé
  18867. Γöé                                        Γöé
  18868. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18869. Γöé   ΓööΓöÇTALLYINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-8ΓöÇΓöÿ                    Γöé
  18870. Γöé         ΓööΓöÇINΓöÇΓöÇΓöÇΓöÿ                            Γöé
  18871. Γöé                                        Γöé
  18872. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18873. Γöé   ΓööΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOVERFLOWΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  18874. Γöé    ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                                 Γöé
  18875. Γöé                                        Γöé
  18876. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  18877. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇOVERFLOWΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ            Γöé
  18878. Γöé       ΓööΓöÇONΓöÇΓöÇΓöÇΓöÿ                              Γöé
  18879. Γöé                                        Γöé
  18880. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                            Γöé
  18881. Γöé   ΓööΓöÇEND-UNSTRINGΓöÇΓöÿ                              Γöé
  18882. Γöé                                        Γöé
  18883. Γöé OR PHRASE:                                  Γöé
  18884. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                 Γöé
  18885. Γöé   Γöé ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé                   Γöé
  18886. Γöé   Γöé                  Γöé Γöé                   Γöé
  18887. Γöé   ΓööΓöÇΓöÇΓöÇORΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÿ                   Γöé
  18888. Γöé       ΓööΓöÇALLΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  18889. Γöé                                        Γöé
  18890. Γöé DELIMITER PHRASE:                               Γöé
  18891. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                  Γöé
  18892. Γöé   ΓööΓöÇDELIMITERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-5ΓöÇΓöÿ                   Γöé
  18893. Γöé         ΓööΓöÇINΓöÇΓöÇΓöÇΓöÿ                           Γöé
  18894. Γöé                                        Γöé
  18895. Γöé COUNT PHRASE:                                 Γöé
  18896. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ                    Γöé
  18897. Γöé   ΓööΓöÇCOUNTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇidentifier-6ΓöÇΓöÿ                     Γöé
  18898. Γöé       ΓööΓöÇINΓöÇΓöÇΓöÇΓöÿ                             Γöé
  18899. Γöé                                        Γöé
  18900. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  18901.  
  18902. Related Information: 
  18903.  
  18904.   Data Flow 
  18905.   Coding Example 
  18906.  
  18907.  
  18908. ΓòÉΓòÉΓòÉ 12.49.1. DELIMITED BY Phrase ΓòÉΓòÉΓòÉ
  18909.  
  18910. This phrase specifies delimiters within the data that control the data 
  18911. transfer. 
  18912.  
  18913. The delimiters are identifier-2, identifier-3, or their corresponding literals. 
  18914. Each identifier or literal specified represents one delimiter. Each must be an 
  18915. alphanumeric data item. 
  18916.  
  18917. Unless the DELIMITED BY phrase is specified, the DELIMITER IN and COUNT IN 
  18918. phrases must not be specified. 
  18919.  
  18920. If a delimiter contains two or more characters, it is recognized as a delimiter 
  18921. only if the delimiting characters are contiguous, and in the sequence specified 
  18922. in the sending field. 
  18923.  
  18924. When two or more delimiters are specified, an OR condition exists, and each 
  18925. nonoverlapping occurrence of any one of the delimiters is recognized in the 
  18926. sending field in the sequence specified. For example, if DELIMITED BY "AB" or 
  18927. "BC" is specified, then an occurrence of either AB or BC in the sending field 
  18928. is considered a delimiter; an occurrence of ABC is considered an occurrence of 
  18929. AB. The data-count fields, the pointer field, and the field-count field must 
  18930. each be an integer item without the symbol P in the PICTURE character-string. 
  18931.  
  18932.  
  18933. ΓòÉΓòÉΓòÉ 12.49.2. ON OVERFLOW Phrases ΓòÉΓòÉΓòÉ
  18934.  
  18935. Imperative-statement-1 is executed when: 
  18936.  
  18937.   The pointer value (explicit or implicit) is less than 1 
  18938.  
  18939.   The pointer value (explicit or implicit) exceeds a value equal to the length 
  18940.    of the sending field 
  18941.  
  18942.   All data receiving fields have been acted upon, and the sending field still 
  18943.    contains unexamined characters. 
  18944.  
  18945.  When any of the above conditions occurs: 
  18946.  
  18947.   1. An overflow condition exists, and no more data is transferred 
  18948.   2. The UNSTRING operation is terminated 
  18949.   3. The NOT ON OVERFLOW phrase, if specified, is ignored 
  18950.   4. Control is transferred to the end of the UNSTRING statement or, if the ON 
  18951.      OVERFLOW phrase is specified, to imperative-statement-1. 
  18952.  
  18953.  If control is transferred to imperative-statement-1, execution continues 
  18954.  according to the rules for each statement specified in imperative-statement-1. 
  18955.  If a procedure branching or conditional statement that causes explicit 
  18956.  transfer of control is executed, control is transferred according to the rules 
  18957.  for that statement; otherwise, upon completion of the execution of 
  18958.  imperative-statement-1, control is transferred to the end of the UNSTRING 
  18959.  statement. 
  18960.  
  18961.  If conditions that would cause an overflow condition are not encountered, the 
  18962.  ON OVERFLOW phrase, if specified, is ignored. If the NOT ON OVERFLOW phrase is 
  18963.  specified, control is transferred to imperative-statement-2; otherwise, 
  18964.  control is transferred to the end of the UNSTRING statement. 
  18965.  
  18966.  If control is transferred to imperative-statement-2, execution continues 
  18967.  according to the rules for each statement specified in imperative-statement-2. 
  18968.  If a procedure branching or conditional statement that causes explicit 
  18969.  transfer of control is executed, control is transferred according to the rules 
  18970.  for that statement. Otherwise, upon completion of the execution of 
  18971.  imperative-statement-2, control is transferred to the end of the UNSTRING 
  18972.  statement. 
  18973.  
  18974.  
  18975. ΓòÉΓòÉΓòÉ 12.49.3. Data Flow ΓòÉΓòÉΓòÉ
  18976.  
  18977. When the UNSTRING statement is initiated, data is transferred from the sending 
  18978. field to the current data receiving field, according to the following rules 
  18979. (the current data receiving field is identifier-4): 
  18980.  
  18981.   1. If the POINTER phrase is not specified, the sending field character-string 
  18982.      is examined, beginning with the leftmost character. If the POINTER phrase 
  18983.      is specified, the field is examined, beginning at the relative character 
  18984.      position specified by the value in the pointer field. 
  18985.  
  18986.   2. If the DELIMITED BY phrase is specified, the examination proceeds from 
  18987.      left to right, character-by-character, until a delimiter is encountered. 
  18988.      If the end of the sending field is reached before a delimiter is found, 
  18989.      the examination ends with the last character in the sending field. If 
  18990.      there are more receiving fields, the next one is selected, otherwise, an 
  18991.      overflow condition occurs. 
  18992.  
  18993.   3. If the DELIMITED BY phrase is not specified, the number of characters 
  18994.      examined is equal to the size of the current data receiving field, which 
  18995.      depends on its data category: 
  18996.  
  18997.      a) If the receiving field is alphanumeric or alphabetic, the number of 
  18998.         characters examined is equal to the number of characters in the current 
  18999.         receiving field. 
  19000.  
  19001.      b) If the receiving field is numeric, the number of characters examined is 
  19002.         equal to the number of characters in the integer portion of the current 
  19003.         receiving field. 
  19004.  
  19005.      c) If the receiving field is described with the SIGN IS SEPARATE clause, 
  19006.         the number of characters examined is one less than the size of the 
  19007.         current receiving field. 
  19008.  
  19009.      d) If the receiving field is described as a variable-length data item, the 
  19010.         number of characters examined is determined by the size of the current 
  19011.         receiving field at the beginning of the UNSTRING operation. 
  19012.  
  19013.   4. The examined characters (excluding any delimiter characters) are treated 
  19014.      as an alphanumeric elementary item, and are moved into the current data 
  19015.      receiving field, according to the rules for the MOVE statement (see MOVE 
  19016.      Statement). 
  19017.  
  19018.   5. If the DELIMITER IN phrase is specified, the delimiting characters in the 
  19019.      sending field are treated as an elementary alphanumeric item and are moved 
  19020.      to the current delimiter receiving field, according to the rules for the 
  19021.      MOVE statement. If the delimiting condition is the end of the sending 
  19022.      field, the current delimiter receiving field is filled with spaces. 
  19023.  
  19024.   6. If the COUNT IN phrase is specified, a value equal to the number of 
  19025.      examined characters (excluding any delimiters) is moved into the data 
  19026.      count field, according to the rules for an elementary move. 
  19027.  
  19028.   7. If the DELIMITED BY phrase is specified, the sending field is further 
  19029.      examined, beginning with the first character to the right of the 
  19030.      delimiter. 
  19031.  
  19032.   8. If the DELIMITED BY phrase is not specified, the sending field is further 
  19033.      examined, beginning with the first character to the right of the last 
  19034.      character examined. 
  19035.  
  19036.   9. For each succeeding data receiving field, the preceding procedure is 
  19037.      repeated either until all the characters in the sending field have been 
  19038.      transferred, or until there are no more unfilled data receiving fields. 
  19039.  
  19040.  10. When the POINTER phrase is specified, the value of the pointer field 
  19041.      behaves as if it were increased by 1 for each examined character in the 
  19042.      sending field. When this execution of the UNSTRING statement is completed, 
  19043.      the pointer field contains a value equal to its initial value, plus the 
  19044.      number of characters examined in the sending field. 
  19045.  
  19046.  11. When the TALLYING phrase is specified, then, when this execution of the 
  19047.      UNSTRING statement is completed, the field-count field contains a value 
  19048.      equal to the initial value, plus the number of data receiving areas acted 
  19049.      upon. 
  19050.  
  19051.  Note:   All subscripting and reference modification is performed only once, at 
  19052.          the beginning of the execution of the UNSTRING statement. 
  19053.  
  19054.  If any of the UNSTRING statement identifiers are subscripted or indexed, the 
  19055.  subscripts and indexes are evaluated as follows: 
  19056.  
  19057.   Any subscripting or indexing associated with the sending field, the pointer 
  19058.    field, or the field-count field is evaluated only once, immediately before 
  19059.    any data is transferred to any of the receivers. 
  19060.  
  19061.   Any subscripting or indexing associated with the delimiters, the data and 
  19062.    delimiter receiving fields, or the data-count fields, is evaluated 
  19063.    immediately before the transfer of data into the affected data item. 
  19064.  
  19065.  
  19066. ΓòÉΓòÉΓòÉ 12.49.3.1. UNSTRING Statement Example ΓòÉΓòÉΓòÉ
  19067.  
  19068. The following example illustrates some of the considerations that apply to the 
  19069. UNSTRING statement. 
  19070.  
  19071. In the Data Division, the user has defined the following input record to be 
  19072. acted upon by the UNSTRING statement: 
  19073.  
  19074.    01 INV-RCD.
  19075.       05 CONTROL-CHARS  PIC XX.
  19076.       05 ITEM-INDENT    PIC X(20).
  19077.       05 FILLER         PIC X.
  19078.       05 INV-CODE       PIC X(10).
  19079.       05 FILLER         PIC X.
  19080.       05 NO-UNITS       PIC 9(6).
  19081.       05 FILLER         PIC X.
  19082.       05 PRICE-PER-M    PIC 99999.
  19083.       05 FILLER         PIC X.
  19084.       05 RTL-AMT        PIC 9(6).99.
  19085.  
  19086. The next two records are defined as receiving fields for the UNSTRING 
  19087. statement. DISPLAY-REC is to be used for printed output. WORK-REC is to be used 
  19088. for further internal processing. 
  19089.  
  19090.    01 DISPLAY-REC
  19091.       05 INV-NO        PIC X(6).
  19092.       05 FILLER        PIC X VALUE SPACE
  19093.       05 ITEM-NAME     PIC X(20).
  19094.       05 FILLER        PIC X VALUE SPACE
  19095.       05 DISPLAY-DOLS  PIC 9(6).
  19096.  
  19097.    01 WORK-REC
  19098.       05 M-UNITS       PIC 9(6).
  19099.       05 FIELD-A       PIC 9(6).
  19100.       05 WK-PRICE
  19101.          REDEFINES
  19102.          FIELD-A       PIC 9999V99.
  19103.       05 INV-CLASS     PIC X(3).
  19104.  
  19105. The user has also defined the following fields for use as control fields in the 
  19106. UNSTRING statement. 
  19107.  
  19108.    01 DBY-1          PIC X, VALUE IS ".".
  19109.    01 CTR-1          PIC 99, VALUE IS ZERO.
  19110.    01 CTR-2          PIC 99, VALUE IS ZERO.
  19111.    01 CTR-3          PIC 99, VALUE IS ZERO.
  19112.    01 CTR-4          PIC 99, VALUE IS ZERO.
  19113.    01 DLTR-1         PIC X.
  19114.    01 DLTR-2         PIC X.
  19115.    01 CHAR-CT        PIC 99, VALUE IS 3.
  19116.    01 FLDS-FILLED    PIC 99, VALUE IS ZERO.
  19117.  
  19118. In the Procedure Division, the user writes the following UNSTRING statement to 
  19119. move subfields of INV-RCD to the subfields of DISPLAY-REC and WORK-REC: 
  19120.  
  19121.     UNSTRING INV-RCD
  19122.      DELIMITED BY ALL SPACES
  19123.        OR "/"
  19124.        OR DBY-1
  19125.      INTO ITEM-NAME COUNT IN CTR-1,
  19126.      INV-NO DELIMITER IN DLTR-1
  19127.        COUNT IN CTR-2,
  19128.      INV-CLASS,
  19129.      M-UNITS COUNT IN CTR-3,
  19130.      FIELD-A,
  19131.      DISPLAY-DOLS DELIMITER IN DLTR-2
  19132.        COUNT IN CTR-4
  19133.      WITH POINTER CHAR-CT
  19134.      TALLYING IN FLDS-FILLED
  19135.      ON OVERFLOW
  19136.        GO TO UNSTRING-COMPLETE.
  19137.  
  19138. Before the UNSTRING statement is issued, the user places the value 3 in the 
  19139. CHAR-CT (the pointer item), so as not to work with the two control characters 
  19140. at the beginning of INV-RCD. In DBY-1, a period is placed for use as a 
  19141. delimiter, and in FLDS-FILLED (the tallying item) the value 0 is placed.  The 
  19142. following data is then read into INV-RCD as shown in UNSTRING Statement 
  19143. Example-Input Data. 
  19144.  
  19145.  
  19146.       Column
  19147.       1     10     20     30     40     50     60
  19148.       Γöé     Γöé     Γöé     Γöé     Γöé      Γöé     Γöé
  19149.       Γöé     Γöé     Γöé     Γöé     Γöé      Γöé     Γöé
  19150.                                      
  19151.  
  19152.       ZYFOURΓöÇPENNYΓöÇNAILS   707890/BBA 475120 00122  000379.50
  19153.  
  19154. UNSTRING Statement Example-Input Data 
  19155.  
  19156. When the UNSTRING statement is executed, the following actions take place: 
  19157.  
  19158.   1. Positions 3 through 18 (FOUR-PENNY-NAILS) of INV-RCD are placed in 
  19159.      ITEM-NAME, left-justified within the area, and the unused character 
  19160.      positions are padded with spaces.  The value 16 is placed in CTR-1. 
  19161.  
  19162.   2. Because ALL SPACES is specified as a delimiter, the five contiguous SPACE 
  19163.      characters are considered to be one occurrence of the delimiter. 
  19164.  
  19165.   3. Positions 24 through 29 (707890) are placed in INV-NO.  The delimiter 
  19166.      character / is placed in DLTR-1, and the value 6 is placed in CTR-2. 
  19167.  
  19168.   4. Positions 31 through 33 are placed in INV-CLASS. The delimiter is a SPACE, 
  19169.      but because no field has been defined as a receiving area for delimiters, 
  19170.      the SPACE is merely bypassed. 
  19171.  
  19172.   5. Positions 35 through 40 (475120) are examined and are placed in M-UNITS. 
  19173.      The delimiter is a SPACE, but because no receiving field has been defined 
  19174.      as a receiving area for delimiters, the SPACE is bypassed.  The value 6 is 
  19175.      placed in CTR-3. 
  19176.  
  19177.   6. Positions 42 through 46 (00122) are placed in FIELD-A and right-justified 
  19178.      within the area. The high-order digit position is filled with a 0 (zero). 
  19179.      The delimiter is a SPACE, but because no field has been defined as a 
  19180.      receiving area for delimiters, the SPACE is bypassed. 
  19181.  
  19182.   7. Positions 48 through 53 (000379) are placed in DISPLAY-DOLS.  The period 
  19183.      delimiter character is placed in DLTR-2, and the value 6 is placed in 
  19184.      CTR-4. 
  19185.  
  19186.   8. Because all receiving fields have been acted upon and two characters of 
  19187.      data in INV-RCD have not been examined, the ON OVERFLOW exit is taken, and 
  19188.      execution of the UNSTRING statement is completed. 
  19189.  
  19190.  At the end of execution of the UNSTRING statement, DISPLAY-REC contains the 
  19191.  following data: 
  19192.  
  19193.      707890 FOUR-PENNY-NAILS     000379
  19194.  
  19195.  WORK-REC contains the following data: 
  19196.  
  19197.      475120000122BBA
  19198.  
  19199.  CHAR-CT (the pointer field) contains the value 55, and FLD-FILLED (the 
  19200.  tallying field) contains the value 6. 
  19201.  
  19202.  Note:   One UNSTRING statement can be written instead of a series of MOVE 
  19203.          statements. 
  19204.  
  19205.  
  19206. ΓòÉΓòÉΓòÉ 12.50. WRITE Statement ΓòÉΓòÉΓòÉ
  19207.  
  19208. The WRITE statement releases a record for an output or input/output file. 
  19209.  
  19210. When the WRITE statement is executed, the associated indexed or relative file 
  19211. must be open in OUTPUT, I-O,  or EXTEND mode. The associated sequential file 
  19212. must be open in OUTPUT or EXTEND (device types TAPEFILE, DISK, or DATABASE) 
  19213. mode. 
  19214.  
  19215. The WRITE statement has five formats: 
  19216.  
  19217.   Format 1 - Sequential Files 
  19218.   Format 2 - Indexed and Relative Files 
  19219.    -----IBM Extension----- 
  19220.   Format 3 - FORMATFILE 
  19221.   Format 4 - TRANSACTION (Nonsubfile) 
  19222.   Format 5 - TRANSACTION (Subfile) 
  19223.    ---End of IBM Extension--- 
  19224.  
  19225.  -----IBM Extension----- 
  19226.  
  19227.  The action of this statement can be inhibited at program run time by the 
  19228.  INHWRT parameter of the OVRDBF CL command.  When this parameter is specified, 
  19229.  non-zero file status codes are not set for data dependent errors. Duplicate 
  19230.  key and data conversion errors are examples of data dependent errors. 
  19231.  
  19232.  ---End of IBM Extension--- 
  19233.  
  19234.  
  19235. ΓòÉΓòÉΓòÉ 12.50.1. Sequential Files ΓòÉΓòÉΓòÉ
  19236.  
  19237. The ADVANCING and END-OF-PAGE phrases control the vertical positioning of each 
  19238. line on a printed page. If the printed page is held on an intermediate device 
  19239. (a disk, for example), the format may appear different than the expected output 
  19240. when it is edited or browsed. 
  19241.  
  19242. Note:   The ADVANCING PAGE and END-OF-PAGE phrases must not both be specified 
  19243.         in a single WRITE statement. 
  19244.  
  19245.  When an attempt is made to write beyond the externally defined boundaries of 
  19246.  the file, the processing of the WRITE statement is unsuccessful and an 
  19247.  EXCEPTION/ERROR condition exists.  The contents of record-name are unaffected. 
  19248.  Processing then follows the rules for error handling as described under USE 
  19249.  Statement Programming Notes. 
  19250.  
  19251.  For sequential files on device type TAPEFILE or DISKETTE, when end-of-volume 
  19252.  is recognized for a multivolume OUTPUT file, the WRITE statement processes the 
  19253.  following operations in order: 
  19254.  
  19255.   1. The standard ending volume label procedure is run. 
  19256.  
  19257.   2. A volume switch occurs. 
  19258.  
  19259.   3. The standard beginning volume label procedure is run. 
  19260.  
  19261.  No indication that an end-of-volume has occurred is returned to the program. 
  19262.  
  19263.   ΓöîΓöÇΓöÇΓöÇ WRITE STATEMENT - FORMAT 1 - SEQUENTIAL FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19264.   Γöé                                        Γöé
  19265.   Γöé >>ΓöÇΓöÇWRITEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19266.   Γöé              ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ               Γöé
  19267.   Γöé                                        Γöé
  19268.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19269.   Γöé   ΓööΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÿ       Γöé
  19270.   Γöé    ΓööΓöÇAFTERΓöÇΓöÇΓöÿ  ΓööΓöÇADVANCINGΓöÇΓöÿ  Γöé ΓööΓöÇinteger-1ΓöÇΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇLINEΓöÇΓöÇΓöñ Γöé        Γöé
  19271.   Γöé                 Γöé          ΓööΓöÇLINESΓöÇΓöÿ Γöé        Γöé
  19272.   Γöé                 Γö£ΓöÇmnemonic-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ        Γöé
  19273.   Γöé                 ΓööΓöÇPAGEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ        Γöé
  19274.   Γöé                                        Γöé
  19275.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19276.   Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEND-OF-PAGEΓöÇΓö¼ΓöÇimperative-statement-1ΓöÇΓöÿ           Γöé
  19277.   Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇEOPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  19278.   Γöé                                        Γöé
  19279.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19280.   Γöé   ΓööΓöÇNOTΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEND-OF-PAGEΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ        Γöé
  19281.   Γöé       ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇEOPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  19282.   Γöé                                        Γöé
  19283.   Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  19284.   Γöé   ΓööΓöÇEND-WRITEΓöÇΓöÿ                               Γöé
  19285.   Γöé                                        Γöé
  19286.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19287.  
  19288.  The maximum record size for the file is established at the time the file is 
  19289.  created, and cannot subsequently be changed. 
  19290.  
  19291.  Record-name-1 and identifier-1 must not refer to the same storage area. 
  19292.  
  19293.  After the WRITE statement is executed, the record is no longer available in 
  19294.  record-name-1, unless: 
  19295.  
  19296.   The associated file is named in a SAME RECORD AREA clause (in which case, 
  19297.    the record is also available as a record of the other files named in the 
  19298.    SAME RECORD AREA clause), or 
  19299.  
  19300.   The WRITE statement is unsuccessful because of a boundary violation. 
  19301.  
  19302.  In either of these two cases, the record is still available in record-name-1. 
  19303.  
  19304.  The file position indicator is not affected by execution of the WRITE 
  19305.  statement. 
  19306.  
  19307.  The number of character positions required to store the record in a file may 
  19308.  or may not be the same as the number of character positions defined by the 
  19309.  logical description of that record in the COBOL program. (See PICTURE Clause 
  19310.  Editing andUSAGE Clause.) 
  19311.  
  19312.  If the FILE STATUS clause is specified in the File-Control entry, the 
  19313.  associated status key is updated when the WRITE statement is executed, whether 
  19314.  or not execution is successful. 
  19315.  
  19316.  The WRITE statement cannot be executed for a sequential file opened in I-O 
  19317.  mode. 
  19318.  
  19319.  Related Information: 
  19320.  
  19321.   Multivolume Files 
  19322.  
  19323.  
  19324. ΓòÉΓòÉΓòÉ 12.50.1.1. ADVANCING Phrase ΓòÉΓòÉΓòÉ
  19325.  
  19326. The ADVANCING phrase controls positioning of the output record on the page. It 
  19327. only applies to device type PRINTER. The following rules apply: 
  19328.  
  19329.   1. When BEFORE ADVANCING is specified, the line is printed before the page is 
  19330.      advanced. 
  19331.  
  19332.   2. When AFTER ADVANCING is specified, the page is advanced before the line is 
  19333.      printed. 
  19334.  
  19335.   3. When identifier-2 is specified, the page is advanced the number of lines 
  19336.      equal to the current value in identifier-2. Identifier-2 must be an 
  19337.      integer data item. 
  19338.  
  19339.   4. When integer-1 is specified, the page is advanced the number of lines 
  19340.      equal to the value of integer-1. 
  19341.  
  19342.   5. Integer-1 or the value in identifier-2 may be zero. 
  19343.  
  19344.   6. When mnemonic-name is specified, a system-specific action takes place. 
  19345.      Mnemonic-name must be equated with environment-name-1 in the SPECIAL-NAMES 
  19346.      paragraph (valid environment-names are listed in Choices of 
  19347.      Environment-Name-1 and Action Taken). For more information on acceptable 
  19348.      values for mnemonic-name, see SPECIAL-NAMES Paragraph. 
  19349.  
  19350.   7. When PAGE is specified, the record is printed on the logical page BEFORE 
  19351.      or AFTER (depending on the phrase used) the device is positioned to the 
  19352.      next logical page. If PAGE has no meaning for the device used, then BEFORE 
  19353.      or AFTER (depending on the phrase specified) ADVANCING 1 LINE is provided. 
  19354.  
  19355.      If the FD entry contains a LINAGE clause, the repositioning is to the 
  19356.      first printable line of the next page, as specified in that clause. If the 
  19357.      LINAGE clause is omitted, the repositioning is to line 1 of the next 
  19358.      succeeding page. 
  19359.  
  19360.      LINAGE-COUNTER Rules: If the LINAGE clause is specified for this file, the 
  19361.      associated LINAGE-COUNTER special register is modified during the 
  19362.      execution of the WRITE statement, according to the following rules: 
  19363.  
  19364.      a) If ADVANCING PAGE is specified, LINAGE-COUNTER is reset to 1. 
  19365.      b) If ADVANCING identifier-2 or integer-1 is specified, LINAGE-COUNTER is 
  19366.         increased by the value in identifier-2 or integer-1. 
  19367.      c) If the ADVANCING phrase is omitted, LINAGE-COUNTER is increased by 1. 
  19368.      d) When the device is repositioned to the first available line of a new 
  19369.         page, LINAGE-COUNTER is reset to 1. 
  19370.  
  19371.  When this phrase is omitted, automatic line advancing is provided, as if the 
  19372.  user had written AFTER ADVANCING 1 LINE. 
  19373.  
  19374.  
  19375. ΓòÉΓòÉΓòÉ 12.50.1.2. END-OF-PAGE Phrase ΓòÉΓòÉΓòÉ
  19376.  
  19377. When this phrase is specified (and the FD entry for this file contains a LINAGE 
  19378. clause), and the logical end of the printed page is reached during execution of 
  19379. the WRITE statement, the imperative-statement is executed. 
  19380.  
  19381. If an END-OF-PAGE condition does not exist after the processing of a WRITE 
  19382. statement with the NOT AT END-OF-PAGE phrase, control transfers to the 
  19383. imperative statement associated with that phrase. 
  19384.  
  19385. Related Information: 
  19386.  
  19387.   Special Considerations for Printer Files 
  19388.   Special Considerations for FORMATFILEs 
  19389.  
  19390.  
  19391. ΓòÉΓòÉΓòÉ 12.50.1.2.1. Special Considerations for Printer Files ΓòÉΓòÉΓòÉ
  19392.  
  19393. The keywords END-OF-PAGE and EOP are equivalent.  When the END-OF-PAGE phrase 
  19394. is specified, the FD entry for this file must contain a LINAGE clause.  When 
  19395. END-OF-PAGE is specified, and an END-OF-PAGE condition exists after the 
  19396. processing of the WRITE statement, the END-OF-PAGE imperative-statement is 
  19397. processed.  The logical end of the printed page is specified in the LINAGE 
  19398. clause associated with record-name. 
  19399.  
  19400. An END-OF-PAGE condition for a printer file is reached when the processing of a 
  19401. WRITE statement for that file causes printing or spacing within the footing 
  19402. area of a page body. This occurs when the processing of such a WRITE statement 
  19403. causes the value in the LINAGE-COUNTER to equal or exceed the value specified 
  19404. in the WITH FOOTING phrase of the LINAGE clause. The WRITE statement is 
  19405. processed, and then the END-OF-PAGE imperative statement is processed, if 
  19406. coded. 
  19407.  
  19408. An automatic page overflow condition is reached whenever the processing of any 
  19409. WRITE statement with or without the END-OF-PAGE phrase cannot be completely 
  19410. processed within the current page body. This occurs when a processed WRITE 
  19411. statement would cause the value in the LINAGE-COUNTER to exceed the number of 
  19412. lines for the page body specified in the LINAGE clause.  In this case, the line 
  19413. is printed before or after (depending on the option specified) the device is 
  19414. repositioned to the first printable line on the next logical page, as specified 
  19415. in the LINAGE clause. 
  19416.  
  19417. If the END-OF-PAGE phrase is specified, the END-OF-PAGE imperative-statement is 
  19418. then processed. The END-OF-PAGE condition and automatic page overflow condition 
  19419. occur simultaneously in the following cases: 
  19420.  
  19421.   When the WITH FOOTING phrase of the LINAGE clause is not specified. This 
  19422.    results in no distinction between the END-OF-PAGE condition and the page 
  19423.    overflow condition. No footing information can be printed at the bottom of a 
  19424.    logical page when the FOOTING phrase is not specified. 
  19425.  
  19426.   When the WITH FOOTING phrase is specified, but the processing of a WRITE 
  19427.    statement would cause the LINAGE-COUNTER to exceed both the footing value 
  19428.    and the page body value specified in the LINAGE clause. 
  19429.  
  19430.  The keywords END-OF-PAGE and EOP are equivalent. 
  19431.  
  19432.  Note:   The phrases ADVANCING PAGE and END-OF-PAGE must not both be specified 
  19433.          in a single WRITE statement. 
  19434.  
  19435.  
  19436. ΓòÉΓòÉΓòÉ 12.50.1.2.2. Special Considerations for FORMATFILEs ΓòÉΓòÉΓòÉ
  19437.  
  19438. The keywords END-OF-PAGE and EOP are equivalent.  When the END-OF-PAGE phrase 
  19439. is specified, and an EOP condition exists after the processing of the WRITE 
  19440. statement for the FORMATFILE file, the END-OF-PAGE imperative statement is 
  19441. processed. An EOP condition for a FORMATFILE file occurs when the logical end 
  19442. of page is reached during the processing of a WRITE statement for that file. 
  19443. The logical end of the printed page is specified in the overflow line number 
  19444. parameter of the CRTPRTF command or the OVRPRTF command. 
  19445.  
  19446.  
  19447. ΓòÉΓòÉΓòÉ 12.50.1.3. Multivolume Files ΓòÉΓòÉΓòÉ
  19448.  
  19449. When end-of-volume is recognized for a multivolume OUTPUT file (tape or 
  19450. sequential direct-access file), the WRITE statement performs the following 
  19451. operations: 
  19452.  
  19453.   The standard ending volume label procedure 
  19454.   A volume switch 
  19455.   The standard beginning volume label procedure. 
  19456.  
  19457.  
  19458. ΓòÉΓòÉΓòÉ 12.50.2. Indexed and Relative Files ΓòÉΓòÉΓòÉ
  19459.  
  19460. ΓöîΓöÇΓöÇΓöÇ WRITE STATEMENT - FORMAT 2 - INDEXED AND RELATIVE FILES ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19461. Γöé                                        Γöé
  19462. Γöé >>ΓöÇΓöÇWRITEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19463. Γöé              ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ               Γöé
  19464. Γöé                                        Γöé
  19465. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19466. Γöé   Γöé    (1)               Γöé                 Γöé
  19467. Γöé   ΓööΓöÇFORMATΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                 Γöé
  19468. Γöé         ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  19469. Γöé                                        Γöé
  19470. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19471. Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  19472. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  19473. Γöé                                        Γöé
  19474. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  19475. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-WRITEΓöÇΓöÿ     Γöé
  19476. Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  19477. Γöé                                        Γöé
  19478. Γöé NOTE:                                     Γöé
  19479. Γöé (1)  IBM Extension                              Γöé
  19480. Γöé                                        Γöé
  19481. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19482.  
  19483. Related Information: 
  19484.  
  19485.   Considerations for Writing Indexed Files 
  19486.   Considerations for Writing Relative Files 
  19487.  
  19488.  
  19489. ΓòÉΓòÉΓòÉ 12.50.2.1. Considerations When Writing Indexed Files ΓòÉΓòÉΓòÉ
  19490.  
  19491. Before the WRITE statement is executed, you must set the prime record key (the 
  19492. RECORD KEY data item, as defined in the File-Control entry) to the desired 
  19493. value. 
  19494.  
  19495. When the WRITE statement is processed, the system releases the record. 
  19496.  
  19497. -----IBM Extension----- 
  19498.  
  19499. If the DUPLICATES phrase is specified, record key values for a format need not 
  19500. be unique (see RECORD KEY Clause). In this case, the system stores the records 
  19501. so that later sequential access to the records allows retrieval in the order 
  19502. specified in DDS. 
  19503.  
  19504. ---End of IBM Extension--- 
  19505.  
  19506. If records are written to an indexed file of fixed size when it has SEQUENTIAL 
  19507. access, is open for OUTPUT, and blocking is in effect (BLOCK CONTAINS clause is 
  19508. specified), the blocking factor will change to 1 at the point at which a block 
  19509. of records would cause the end-of-file to be reached. The number of remaining 
  19510. records in the file at this moment is less than the number of records in a 
  19511. block. 
  19512.  
  19513. When ACCESS IS SEQUENTIAL is specified in the File-Control entry, records must 
  19514. be released in ascending order of RECORD KEY values. 
  19515.  
  19516. When ACCESS is RANDOM or ACCESS IS DYNAMIC is specified in the File-Control 
  19517. entry, records may be released in any programmer-specified order. If the FORMAT 
  19518. phrase is not specified on the I-O statement when indexed files are accessed in 
  19519. random access mode, the first format defined is used. When writing to a 
  19520. multiformat logical file, the format must be specified on the WRITE statement. 
  19521.  
  19522.  
  19523. ΓòÉΓòÉΓòÉ 12.50.2.2. Considerations When Writing Relative Files ΓòÉΓòÉΓòÉ
  19524.  
  19525. For OUTPUT files, the WRITE statement causes the following actions: 
  19526.  
  19527.   If ACCESS IS SEQUENTIAL is specified: 
  19528.  
  19529.    The first record released has relative record number 1, the second record 
  19530.    released has relative record number 2, the third number 3, and so on. 
  19531.  
  19532.    If the RELATIVE KEY is specified in the File-Control entry, the relative 
  19533.    record number of the record just released is placed in the RELATIVE KEY 
  19534.    during execution of the WRITE statement. 
  19535.  
  19536.   If ACCESS IS RANDOM or ACCESS IS DYNAMIC is specified, the RELATIVE KEY must 
  19537.    contain the desired relative record number for this record before the WRITE 
  19538.    statement is issued. When the WRITE statement is executed, this record is 
  19539.    placed at the specified relative record number position in the file. 
  19540.  
  19541.  For files opened in I-O mode, either ACCESS IS RANDOM or ACCESS IS DYNAMIC 
  19542.  must be specified; the WRITE statement inserts new records into the file. The 
  19543.  RELATIVE KEY must contain the desired relative record number for this record 
  19544.  before the WRITE statement is issued. When the WRITE statement is executed, 
  19545.  this record is placed at the specified relative record number position in the 
  19546.  file. 
  19547.  
  19548.  For a physical file that does not allow the DELETE operation on records (for 
  19549.  example, using the CRTPF with the ALWDLT(*NO) parameter), the update operation 
  19550.  on records must be allowed (that is, CRTPF with the ALWUPD(*YES) parameter). 
  19551.  
  19552.  
  19553. ΓòÉΓòÉΓòÉ 12.50.2.3. FORMAT Phrase ΓòÉΓòÉΓòÉ
  19554.  
  19555. Required if there is more than one record format for the file. 
  19556.  
  19557. The value specified in the FORMAT phrase contains the name of the record format 
  19558. to use for this I-O operation. The system uses this to specify or select which 
  19559. record format to operate on. 
  19560.  
  19561. Identifier-2, if specified, must be a an alphanumeric data item of 10 
  19562. characters or less. 
  19563.  
  19564. Literal-1, if specified, must be an uppercase character-string of 10 characters 
  19565. or less. 
  19566.  
  19567. If the FORMAT phrase is not specified on the I-O statement when indexed files 
  19568. are accessed in random access mode, the first format defined is used. 
  19569.  
  19570.  
  19571. ΓòÉΓòÉΓòÉ 12.50.2.4. INVALID KEY Phrase ΓòÉΓòÉΓòÉ
  19572.  
  19573. The INVALID KEY phrase must be specified if an explicit or implicit 
  19574. EXCEPTION/ERROR procedure is not specified for this file. 
  19575.  
  19576. When an attempt is made to write beyond the externally defined boundaries of 
  19577. the file, WRITE statement execution is unsuccessful and an EXCEPTION/ERROR 
  19578. condition exists. 
  19579.  
  19580. For Relative files in Random or Dynamic access mode, an INVALID KEY condition 
  19581. exists when RELATIVE KEY specifies a record that already contains data. 
  19582.  
  19583. For Indexed files in Random or Dynamic access mode, an INVALID KEY condition 
  19584. exists when the value of the key field in the record area equals that of an 
  19585. already existing record and DUPLICATES are not allowed. 
  19586.  
  19587. For Indexed files in Sequential access mode, an INVALID KEY condition exists 
  19588. when the values of the primary record keys of successive records are not in 
  19589. ascending order. 
  19590.  
  19591. -----IBM Extension----- 
  19592.  
  19593. For a file that allows duplicate keys, the INVALID KEY condition exists only if 
  19594. the value of the record key is less than that for the previous record. 
  19595.  
  19596. ---End of IBM Extension--- 
  19597.  
  19598. When the invalid key condition is recognized, WRITE statement execution is 
  19599. unsuccessful, and the contents of the record are unaffected. Program execution 
  19600. proceeds according to the rules described under INVALID KEY Condition. 
  19601.  
  19602.  
  19603. ΓòÉΓòÉΓòÉ 12.50.2.5. FORMATFILE ΓòÉΓòÉΓòÉ
  19604.  
  19605. -----IBM Extension----- 
  19606.  
  19607. ΓöîΓöÇΓöÇΓöÇ WRITE STATEMENT - FORMAT 3 - FORMATFILE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19608. Γöé                                        Γöé
  19609. Γöé >>ΓöÇΓöÇWRITEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19610. Γöé              ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ               Γöé
  19611. Γöé                                        Γöé
  19612. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19613. Γöé   ΓööΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÿ                   Γöé
  19614. Γöé       ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                    Γöé
  19615. Γöé                                        Γöé
  19616. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19617. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓöÿ                 Γöé
  19618. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöñ                         Γöé
  19619. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÿ                         Γöé
  19620. Γöé                                        Γöé
  19621. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19622. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEND-OF-PAGEΓöÇΓö¼ΓöÇimperative-statement-1ΓöÇΓöÿ           Γöé
  19623. Γöé    ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇEOPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  19624. Γöé                                        Γöé
  19625. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19626. Γöé   ΓööΓöÇNOTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEND-OF-PAGEΓöÇΓö¼ΓöÇimperative-statement-2ΓöÇΓöÿ         Γöé
  19627. Γöé      ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇEOPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                      Γöé
  19628. Γöé                                        Γöé
  19629. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  19630. Γöé   ΓööΓöÇEND-WRITEΓöÇΓöÿ                               Γöé
  19631. Γöé                                        Γöé
  19632. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19633.  
  19634. ---End of IBM Extension--- 
  19635.  
  19636.  
  19637. ΓòÉΓòÉΓòÉ 12.50.2.6. FORMAT Phrase ΓòÉΓòÉΓòÉ
  19638.  
  19639. Required if there is more than one record format for the file. 
  19640.  
  19641. -----IBM Extension----- 
  19642.  
  19643. The value specified in the FORMAT phrase contains the name of the record format 
  19644. to use for this I-O operation. The system uses this to specify or select which 
  19645. record format to operate on. 
  19646.  
  19647. Identifier-2, if specified, must be an alphanumeric data item of 10 characters 
  19648. or less. 
  19649.  
  19650. Literal-1, if specified, must be an uppercase character-string of 10 characters 
  19651. or less. 
  19652.  
  19653. A value of all blanks is treated as though the FORMAT phrase were not 
  19654. specified. If the value is not valid for the file, a FILE STATUS of 9K is 
  19655. returned and a USE procedure is invoked, if applicable for the file. 
  19656.  
  19657. ---End of IBM Extension--- 
  19658.  
  19659.  
  19660. ΓòÉΓòÉΓòÉ 12.50.2.7. INDICATORS Phrase ΓòÉΓòÉΓòÉ
  19661.  
  19662. Specifies which indicators are to be written when a data record is read. 
  19663. Indicators can be used to pass information about the data record and how it was 
  19664. entered into the program. 
  19665.  
  19666. Identifier-3 must be either an elementary Boolean data item specified without 
  19667. the OCCURS clause or a group item that has elementary Boolean data items 
  19668. subordinate to it. 
  19669.  
  19670.  
  19671. ΓòÉΓòÉΓòÉ 12.50.2.8. TRANSACTION (Nonsubfile) ΓòÉΓòÉΓòÉ
  19672.  
  19673. -----IBM Extension----- 
  19674.  
  19675. ΓöîΓöÇΓöÇΓöÇ WRITE - FORMAT 4 - TRANSACTION (NONSUBFILE) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19676. Γöé                                        Γöé
  19677. Γöé >>ΓöÇΓöÇWRITEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19678. Γöé              ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ               Γöé
  19679. Γöé                                        Γöé
  19680. Γöé >ΓöÇΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19681. Γöé      ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  19682. Γöé                                        Γöé
  19683. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19684. Γöé   ΓööΓöÇTERMINALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  19685. Γöé         ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  19686. Γöé                                        Γöé
  19687. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19688. Γöé   ΓööΓöÇSTARTINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓö¼ΓöÇΓöÿ             Γöé
  19689. Γöé         ΓööΓöÇATΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇLINEΓöÇΓöÿ  ΓööΓöÇliteral-3ΓöÇΓöÇΓöÇΓöÇΓöÿ              Γöé
  19690. Γöé                                        Γöé
  19691. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19692. Γöé   ΓööΓöÇΓöñ Rolling Phrase Γö£ΓöÇΓöÿ  ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-8ΓöÇΓöÿ     Γöé
  19693. Γöé                Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ            Γöé
  19694. Γöé                ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ            Γöé
  19695. Γöé                                        Γöé
  19696. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  19697. Γöé   ΓööΓöÇEND-WRITEΓöÇΓöÿ                               Γöé
  19698. Γöé                                        Γöé
  19699. Γöé ROLLING PHRASE:                                Γöé
  19700. Γöé Γö£ΓöÇΓöÇΓö¼ΓöÇBEFOREΓöÇΓö¼ΓöÇΓöÇROLLINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-5ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19701. Γöé   ΓööΓöÇAFTERΓöÇΓöÇΓöÿ      Γö£ΓöÇLINESΓöÇΓöñ  ΓööΓöÇliteral-4ΓöÇΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇTHROUGHΓöÇΓöñ       Γöé
  19702. Γöé             ΓööΓöÇLINEΓöÇΓöÇΓöÿ           ΓööΓöÇTHRUΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  19703. Γöé                                        Γöé
  19704. Γöé >ΓöÇΓöÇΓö¼ΓöÇidentifier-6ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇUPΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-7ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöñ         Γöé
  19705. Γöé   ΓööΓöÇliteral-5ΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇDOWNΓöÇΓöÿ  ΓööΓöÇliteral-6ΓöÇΓöÇΓöÇΓöÇΓöÿ  Γö£ΓöÇLINESΓöÇΓöñ          Γöé
  19706. Γöé                          ΓööΓöÇLINEΓöÇΓöÇΓöÿ          Γöé
  19707. Γöé                                        Γöé
  19708. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19709.  
  19710. ---End of IBM Extension--- 
  19711.  
  19712.  
  19713. ΓòÉΓòÉΓòÉ 12.50.2.9. FORMAT Phrase ΓòÉΓòÉΓòÉ
  19714.  
  19715. -----IBM Extension----- 
  19716.  
  19717. Literal-1 or identifier-2 specifies the name of the record format to be 
  19718. written. Literal-1, if specified, must be nonnumeric, uppercase, and 10 
  19719. characters or less in length. Identifier-2, if specified, must refer to an 
  19720. alphanumeric data item, 10 characters or less in length. If identifier-2 
  19721. contains blanks, the WRITE statement is executed as if the FORMAT phrase were 
  19722. omitted. 
  19723.  
  19724.  
  19725. ΓòÉΓòÉΓòÉ 12.50.2.10. TERMINAL Phrase ΓòÉΓòÉΓòÉ
  19726.  
  19727. The TERMINAL phrase specifies the program devices to which the output record is 
  19728. to be sent. 
  19729.  
  19730. The contents of literal-2 or identifier-3 must be the name of a program device 
  19731. previously acquired, either implicitly or explicitly, by the file.  Literal-2, 
  19732. if specified, must be nonnumeric and 10 characters or less in length. 
  19733. Identifier-3, if specified, must refer to an alphanumeric data item, 10 
  19734. characters or less in length.  A value of blanks is treated as if the TERMINAL 
  19735. phrase was omitted. 
  19736.  
  19737. If only a single program device was acquired by the TRANSACTION file, the 
  19738. TERMINAL phrase can be omitted. That program device is always used for the 
  19739. WRITE. 
  19740.  
  19741. If the TERMINAL phrase is omitted for a WRITE operation to a TRANSACTION file 
  19742. that has acquired multiple program devices, the default program device is used. 
  19743.  
  19744. ---End of IBM Extension--- 
  19745.  
  19746.  
  19747. ΓòÉΓòÉΓòÉ 12.50.2.11. STARTING Phrase ΓòÉΓòÉΓòÉ
  19748.  
  19749. -----IBM Extension----- 
  19750.  
  19751. The STARTING phrase specifies the starting line number for the record formats 
  19752. that use the variable starting line keyword. This phrase is only valid for 
  19753. display devices. 
  19754.  
  19755. The actual line number on which a field begins can be determined from the 
  19756. following equation: 
  19757.  
  19758.  
  19759.    Actual-line = Start-line + DDS Start-line - 1
  19760.  
  19761. Where: 
  19762.  
  19763.  Actual-line is the actual line number 
  19764.  Start-line is the starting line number specified in the program 
  19765.  DDS Start-line is the line number specified in positions 39 through 41 of the 
  19766.  Data Description Specifications form. 
  19767.  
  19768.  The write is successful if: 
  19769.  
  19770.   The result of the above equation is positive and less than or equal to the 
  19771.    number of lines on the workstation screen. 
  19772.  
  19773.   The value specified for the STARTING phrase is 0.  In this case, a value of 
  19774.    1 is assumed. 
  19775.  
  19776.  The write is unsuccessful and the program terminates if: 
  19777.  
  19778.   The result of the above equation is greater than the number of lines on the 
  19779.    workstation screen. 
  19780.  
  19781.   The value specified for the STARTING phrase is negative. 
  19782.  
  19783.  If the value specified for the STARTING phrase is within the screen area, any 
  19784.  fields outside of the screen area are ignored. 
  19785.  
  19786.  Literal-3 of the STARTING phrase must be a numeric literal.  Identifier-4 must 
  19787.  be an elementary numeric item. 
  19788.  
  19789.  To use the STARTING phrase, the DDS record level keyword SLNO(*VAR) must be 
  19790.  specified for the format being written. If the record format does not specify 
  19791.  this keyword, the STARTING phrase is ignored at execution time. 
  19792.  
  19793.  The DDS keyword CLRL also affects the STARTING phrase.  CLRL controls how much 
  19794.  of the screen is cleared when the WRITE statement is executed. 
  19795.  
  19796.  ---End of IBM Extension--- 
  19797.  
  19798.  
  19799. ΓòÉΓòÉΓòÉ 12.50.2.12. ROLLING Phrase ΓòÉΓòÉΓòÉ
  19800.  
  19801. -----IBM Extension----- 
  19802.  
  19803. The ROLLING phrase allows you to move lines displayed on the workstation 
  19804. screen.  All or some of the lines on the screen can be rolled up or down.  The 
  19805. lines vacated by the rolled lines are cleared, and can have another screen 
  19806. format written into them.  This phrase is only valid for display devices. 
  19807.  
  19808. ROLLING is specified in the WRITE statement that is writing a new format to the 
  19809. workstation screen. You must specify whether the write is before or after the 
  19810. roll, the range of lines you want to roll, how many lines you want to roll 
  19811. these lines, and whether the roll operation is up or down. 
  19812.  
  19813. After lines are rolled, the fields on these lines retain their DDS display 
  19814. attributes, for example, underlining, but lose their DDS usage attributes, for 
  19815. example, input-capability.  Fields on lines that are written and then rolled 
  19816. (BEFORE ROLLING phrase) also lose their usage attributes. 
  19817.  
  19818. If any part of a format is rolled, the entire format loses its usage 
  19819. attributes.  If more than one format exists, only the rolled formats lose their 
  19820. usage attributes. 
  19821.  
  19822. When you specify the ROLLING phrase, the following general rules apply. 
  19823.  
  19824.   The DDS record level keyword ALWROL must be specified for every record 
  19825.    format written in a WRITE statement containing the ROLLING phrase. 
  19826.  
  19827.   Other DDS keywords mutually exclusive with the ALWROL keyword must not be 
  19828.    used. 
  19829.  
  19830.   Either of the DDS keywords, CLRL or OVERLAY, must be specified for a record 
  19831.    format that is to be written and rolled to prevent the display screen from 
  19832.    being cleared when that record format is written. 
  19833.  
  19834.   All the identifiers and literals must represent positive integer values. 
  19835.  
  19836.   The roll starting line number (identifier-5 or literal-4) must not exceed 
  19837.    the ending line number (identifier-6 or literal-5). 
  19838.  
  19839.   The contents of lines that are rolled outside of the window specified by the 
  19840.    starting and ending line numbers disappear. 
  19841.  
  19842.  ---End of IBM Extension--- 
  19843.  
  19844.  
  19845. ΓòÉΓòÉΓòÉ 12.50.2.13. INDICATORS Phrase ΓòÉΓòÉΓòÉ
  19846.  
  19847. Specifies which indicators are to be used when a data record is written. 
  19848. Indicators can be used to pass information about the data record and how it was 
  19849. entered into the program. 
  19850.  
  19851. For detailed information on the INDICATORS phrase, refer to Using Indicators 
  19852. with Transaction Files in the ILE COBOL/400 PROGRAM-ID. 
  19853.  
  19854. Identifier-8 must be either an elementary Boolean data item specified without 
  19855. the OCCURS clause or a group item that has elementary Boolean data items 
  19856. subordinate to it. 
  19857.  
  19858. ---End of IBM Extension--- 
  19859.  
  19860.  
  19861. ΓòÉΓòÉΓòÉ 12.50.2.14. TRANSACTION (Subfile) ΓòÉΓòÉΓòÉ
  19862.  
  19863. -----IBM Extension----- 
  19864.  
  19865. ΓöîΓöÇΓöÇΓöÇ WRITE STATEMENT - FORMAT 5 - TRANSACTION (SUBFILE) ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19866. Γöé                                        Γöé
  19867. Γöé >>ΓöÇΓöÇWRITE SUBFILEΓöÇΓöÇrecord-name-1ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19868. Γöé                  ΓööΓöÇFROMΓöÇΓöÇidentifier-1ΓöÇΓöÿ           Γöé
  19869. Γöé                                        Γöé
  19870. Γöé >ΓöÇΓöÇFORMATΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-2ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19871. Γöé      ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÿ                     Γöé
  19872. Γöé                                        Γöé
  19873. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19874. Γöé   ΓööΓöÇTERMINALΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇidentifier-3ΓöÇΓö¼ΓöÇΓöÿ                  Γöé
  19875. Γöé         ΓööΓöÇISΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÿ                   Γöé
  19876. Γöé                                        Γöé
  19877. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19878. Γöé   ΓööΓöÇΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-4ΓöÇΓöÿ                 Γöé
  19879. Γöé    Γö£ΓöÇINDICATORSΓöÇΓöñ  Γö£ΓöÇISΓöÇΓöÇΓöÇΓöñ                        Γöé
  19880. Γöé    ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ  ΓööΓöÇAREΓöÇΓöÇΓöÿ                        Γöé
  19881. Γöé                                        Γöé
  19882. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  19883. Γöé   ΓööΓöÇINVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-1ΓöÇΓöÿ               Γöé
  19884. Γöé        ΓööΓöÇKEYΓöÇΓöÇΓöÿ                            Γöé
  19885. Γöé                                        Γöé
  19886. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><   Γöé
  19887. Γöé   ΓööΓöÇNOT  INVALIDΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇimperative-statement-2ΓöÇΓöÿ  ΓööΓöÇEND-WRITEΓöÇΓöÿ     Γöé
  19888. Γöé           ΓööΓöÇKEYΓöÇΓöÇΓöÿ                          Γöé
  19889. Γöé                                        Γöé
  19890. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19891.  
  19892. Format 5 can only be used for display devices.  If the subfile form of the 
  19893. WRITE statement is used for any other type of device, the WRITE operation fails 
  19894. and a file status of 90 is set. 
  19895.  
  19896. If the format is a subfile record and SUBFILE is specified, the RELATIVE KEY 
  19897. clause must be specified on the SELECT clause for the file being written. The 
  19898. record written to the subfile is the record in the subfile identified by the 
  19899. format name that has a relative record number equal to the value of the 
  19900. RELATIVE KEY data item. 
  19901.  
  19902.  
  19903. ΓòÉΓòÉΓòÉ 12.50.2.15. INDICATORS Phrase ΓòÉΓòÉΓòÉ
  19904.  
  19905. Specifies which indicators are to be used when a data record is written. 
  19906. Indicators can be used to pass information about the data record and how it was 
  19907. entered into the program. 
  19908.  
  19909. For detailed information on the INDICATORS phrase, refer to Using Indicators 
  19910. with Transaction Files in the ILE COBOL/400 PROGRAM-ID. 
  19911.  
  19912. Identifier-4 must be either an elementary Boolean data item specified without 
  19913. the OCCURS clause or a group item that has elementary Boolean data items 
  19914. subordinate to it. 
  19915.  
  19916.  
  19917. ΓòÉΓòÉΓòÉ 12.51. *CONTROL (*CBL) Statement ΓòÉΓòÉΓòÉ
  19918.  
  19919. -----IBM Extension----- 
  19920.  
  19921. With the *CONTROL (or *CBL) statement, you can selectively display or suppress 
  19922. the listing of source code throughout the source program. 
  19923.  
  19924. ΓöîΓöÇΓöÇΓöÇ CONTROL (*CBL) STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  19925. Γöé                                        Γöé
  19926. Γöé          ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                      Γöé
  19927. Γöé                  Γöé                      Γöé
  19928. Γöé >>ΓöÇΓöÇΓö¼ΓöÇ*CONTROLΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇSOURCEΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                Γöé
  19929. Γöé   ΓööΓöÇ*CBLΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ   Γö£ΓöÇNOSOURCEΓöÇΓöÇΓöñ   ΓööΓöÇ.ΓöÇΓöÿ                  Γöé
  19930. Γöé           Γöé    (1)  Γöé                       Γöé
  19931. Γöé           Γö£ΓöÇLISTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                       Γöé
  19932. Γöé           Γöé     (1)Γöé                       Γöé
  19933. Γöé           Γö£ΓöÇNOLISTΓöÇΓöÇΓöÇΓöÇΓöñ                       Γöé
  19934. Γöé           Γöé   (1)  Γöé                       Γöé
  19935. Γöé           Γö£ΓöÇMAPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                       Γöé
  19936. Γöé           Γöé    (1) Γöé                       Γöé
  19937. Γöé           ΓööΓöÇNOMAPΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                       Γöé
  19938. Γöé                                        Γöé
  19939. Γöé NOTE:                                     Γöé
  19940. Γöé (1)  Syntax checked only                           Γöé
  19941. Γöé                                        Γöé
  19942. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  19943.  
  19944. The *CONTROL and *CBL statements are synonymous. 
  19945.  
  19946. The characters *CONTROL or *CBL can start in any column beginning with column 
  19947. 8, followed by at least one space or comma and one or more option keywords. 
  19948. Separate the option keywords with one or more spaces or commas. This statement 
  19949. must be the only statement on the line, and continuation is not allowed. The 
  19950. statement can end with a period. 
  19951.  
  19952. The options you request are handled in the following manner: 
  19953.  
  19954.   1. If SOURCE or NOSOURCE appears more than once in a *CONTROL statement, the 
  19955.      last occurrence of either option is used. 
  19956.  
  19957.   2. If a *CONTROL NOSOURCE statement is encountered and SOURCE has been 
  19958.      requested as a compiler option, printing of the source listing is 
  19959.      suppressed from this point on. An informational message is issued stating 
  19960.      that printing of the source has been suppressed. 
  19961.  
  19962.      Afterwards, you can specify *CONTROL SOURCE to resume the printing of the 
  19963.      source listing. 
  19964.  
  19965.   3. If *NOSOURCE is requested as a compiler option, output is always 
  19966.      inhibited. 
  19967.  
  19968.   4. The *CONTROL statement is in effect only for the source program in which 
  19969.      it is written. It does not remain in effect across batch compilation of a 
  19970.      sequence of source programs. 
  19971.  
  19972.  ---End of IBM Extension--- 
  19973.  
  19974.  Related Information: 
  19975.  
  19976.   *CONTROL (*CBL) and the COPY statement 
  19977.  
  19978.  
  19979. ΓòÉΓòÉΓòÉ 12.51.1. *CONTROL (*CBL) and the COPY Statement ΓòÉΓòÉΓòÉ
  19980.  
  19981. -----IBM Extension----- 
  19982.  
  19983. A COPY statement bearing the SUPPRESS phrase overrides any *CONTROL or *CBL 
  19984. options contained in the copied member, but the compiler remembers *CONTROL and 
  19985. *CBL statements that appear in a suppressed COPY member. Once the COPY member 
  19986. has been processed, the last NOSOURCE or SOURCE option in it runs. 
  19987.  
  19988. If a COPY statement does not bear the SUPPRESS phrase, *CONTROL and *CBL 
  19989. statements within the copied member run immediately. 
  19990.  
  19991. ---End of IBM Extension--- 
  19992.  
  19993.  
  19994. ΓòÉΓòÉΓòÉ 12.52. COPY Statement ΓòÉΓòÉΓòÉ
  19995.  
  19996. The COPY statement is a library statement that places prewritten text in a 
  19997. COBOL program. 
  19998.  
  19999. The COPY statement has two formats: 
  20000.  
  20001.   Format 1 - Basic 
  20002.   Format 2 - DDS Translate 
  20003.  
  20004.  Prewritten source program entries can be included in a source program at 
  20005.  compilation time. Thus, an installation can use standard file descriptions, 
  20006.  record descriptions, or procedures without recoding them. These entries and 
  20007.  procedures can then be saved in user-created libraries; they can then be 
  20008.  included in the source program by means of the COPY statement. 
  20009.  
  20010.  Compilation of the source program containing COPY statements is logically 
  20011.  equivalent to processing all COPY statements before processing the resulting 
  20012.  source program. 
  20013.  
  20014.  The effect of processing a COPY statement is that the library text associated 
  20015.  with text-name is copied into the source program, logically replacing the 
  20016.  entire COPY statement, beginning with the word COPY and ending with the 
  20017.  period, inclusive. When the REPLACING phrase is not specified, the library 
  20018.  text is copied unchanged. 
  20019.  
  20020.  Related Information: 
  20021.  
  20022.   Coding Examples 
  20023.  
  20024.  
  20025. ΓòÉΓòÉΓòÉ 12.52.1. COPY Statement - Format 1 - Basic ΓòÉΓòÉΓòÉ
  20026.  
  20027. ΓöîΓöÇΓöÇΓöÇ COPY STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20028. Γöé                                        Γöé
  20029. Γöé >>ΓöÇΓöÇCOPYΓöÇΓöÇtext-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  20030. Γöé            ΓööΓöÇΓö¼ΓöÇOFΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-nameΓöÇΓöÿ     Γöé
  20031. Γöé             ΓööΓöÇINΓöÇΓöÿ  Γöé           (2)Γöé           Γöé
  20032. Γöé                 ΓööΓöÇlibrary-name- ΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  20033. Γöé                                        Γöé
  20034. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><                Γöé
  20035. Γöé   Γöé      (1)Γöé  ΓööΓöÇREPLACING PhraseΓöÇΓöÿ                   Γöé
  20036. Γöé   ΓööΓöÇSUPPRESSΓöÇΓöÇΓöÇΓöÇΓöÿ                              Γöé
  20037. Γöé                                        Γöé
  20038. Γöé NOTES:                                    Γöé
  20039. Γöé (1)  IBM Extension                              Γöé
  20040. Γöé                                        Γöé
  20041. Γöé (2)  Required hyphen between library-name-file-name to qualify        Γöé
  20042. Γöé                                        Γöé
  20043. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20044.  
  20045. Each COPY statement must be preceded by a space and ended with a separator 
  20046. period. 
  20047.  
  20048. A COPY statement may appear in the source program anywhere a character string 
  20049. or a separator may appear; however, a COPY statement must not be specified 
  20050. within a COPY statement. The resulting copied text must not contain a COPY 
  20051. statement. 
  20052.  
  20053. -----IBM Extension----- 
  20054.  
  20055. COPY statements can be nested. However, nested COPY statements cannot contain 
  20056. the REPLACING phrase, and a COPY statement with the REPLACING phrase cannot 
  20057. contain nested COPY statements. 
  20058.  
  20059. A COPY statement may not cause recursion. That is, a COPY member may be named 
  20060. only once in a set of nested COPY statements until the end-of-file for that 
  20061. COPY member is reached. 
  20062.  
  20063. ---End of IBM Extension--- 
  20064.  
  20065. Debugging lines are permitted within library text and pseudo-text. Text words 
  20066. within a debugging line participate in the matching rules as if the D did not 
  20067. appear in the indicator area. A debugging line is specified within pseudo-text 
  20068. if the debugging line begins in the source program after the opening 
  20069. pseudo-text-delimiter but before the matching closing pseudo-text-delimiter. 
  20070.  
  20071. When a COPY statement is specified on a debugging line, the copied text is 
  20072. treated as though it appeared on a debugging line, except that comment lines in 
  20073. the text appear as comment lines in the resulting source program. 
  20074.  
  20075. If the word COPY appears in a comment-entry, or in the place where a 
  20076. comment-entry may appear, it is considered part of the comment-entry. 
  20077.  
  20078. After all COPY and REPLACE statements have been processed, a debugging line 
  20079. will be considered to have all the characteristics of a comment line, if the 
  20080. WITH DEBUGGING MODE clause is not specified in the SOURCE-COMPUTER paragraph. 
  20081.  
  20082. Comment lines or blank lines may occur in library text. Comment lines or blank 
  20083. lines appearing in library text are copied into the resultant source program 
  20084. unchanged with the following exception: a comment line or blank line in library 
  20085. text is not copied if that comment line or blank line appears within the 
  20086. sequence of text words that match pseudo-text-1 (refer to Replacement and 
  20087. Comparison Rules). 
  20088.  
  20089. The syntactic correctness of the entire COBOL source program cannot be 
  20090. determined until all COPY statements have been completely processed, because 
  20091. the syntactic correctness of the library text cannot be independently 
  20092. determined. 
  20093.  
  20094. Library text copied from the library is placed into the same area of the 
  20095. resultant program as it is in the library. Library text must conform to the 
  20096. rules for standard COBOL format. 
  20097.  
  20098.  
  20099. ΓòÉΓòÉΓòÉ 12.52.2. REPLACING Phrase ΓòÉΓòÉΓòÉ
  20100.  
  20101. In the discussion that follows, each operand may consist of one of the 
  20102. following: 
  20103.  
  20104.   Pseudo-text 
  20105.   An identifier 
  20106.   A literal 
  20107.   A COBOL word (except COPY) 
  20108.  
  20109.  When the REPLACING phrase is specified, the library text is copied, and each 
  20110.  properly matched occurrence of operand-1 within the library text is replaced 
  20111.  by the associated operand-2. 
  20112.  
  20113.   ΓöîΓöÇΓöÇΓöÇ REPLACING PHRASE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20114.   Γöé                                        Γöé
  20115.   Γöé         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ      Γöé
  20116.   Γöé                                   Γöé      Γöé
  20117.   Γöé >>ΓöÇΓöÇREPLACINGΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇ==pseudo-text-1==ΓöÇΓö¼ΓöÇΓöÇBYΓöÇΓöÇΓö¼ΓöÇ==pseudo-text-2==ΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇ><    Γöé
  20118.   Γöé          Γö£ΓöÇidentifier-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ    Γö£ΓöÇidentifier-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  20119.   Γöé          Γö£ΓöÇliteral-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ    Γö£ΓöÇliteral-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ       Γöé
  20120.   Γöé          ΓööΓöÇword-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ    ΓööΓöÇword-2ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ       Γöé
  20121.   Γöé                                        Γöé
  20122.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20123.  
  20124.  Related Information: 
  20125.  
  20126.   Replacement and Comparison Rules 
  20127.  
  20128.  
  20129. ΓòÉΓòÉΓòÉ 12.52.3. Replacement and Comparison Rules ΓòÉΓòÉΓòÉ
  20130.  
  20131.   1. Arithmetic and logical operators that do not occur as part of an 
  20132.      identifier are considered text words and may be replaced only through the 
  20133.      pseudo-text option. 
  20134.  
  20135.   2. When a figurative constant is operand-1, it will match only if it appears 
  20136.      exactly as it is specified. For example, if ALL "AB" is specified in the 
  20137.      library text, then "ABAB" is not considered a match; only ALL "AB" is 
  20138.      considered a match. 
  20139.  
  20140.   3. Operand-2 is copied in the place of operand-1 unless pseudo-text-2 
  20141.      positioning rules cause the replacement to be inserted in a different 
  20142.      area. 
  20143.  
  20144.   4. Any separator comma, semicolon, and/or space preceding the leftmost word 
  20145.      in the library text is copied into the source program. Beginning with the 
  20146.      leftmost library text word and the first operand-1 specified in the 
  20147.      REPLACING option, the entire REPLACING operand that precedes the keyword 
  20148.      BY is compared to an equivalent number of contiguous library text words. 
  20149.  
  20150.   5. Operand-1 matches the library text if, and only if, the ordered sequence 
  20151.      of text words in operand-1 is equal, character for character, to the 
  20152.      ordered sequence of library words. For matching purposes, each occurrence 
  20153.      of a comma or semicolon separator and each sequence of one or more space 
  20154.      separators is considered to be a single space. 
  20155.  
  20156.   6. If no match occurs, the comparison is repeated with each successive 
  20157.      operand-1, if specified, until either a match is found or there are no 
  20158.      further REPLACING operands. 
  20159.  
  20160.   7. Whenever a match occurs between operand-1 and the library text, the 
  20161.      associated operand-2 is copied into the source program. 
  20162.  
  20163.   8. When all operands have been compared and no match is found, the leftmost 
  20164.      library text word is copied into the source program. 
  20165.  
  20166.   9. The next successive uncopied library text word is then considered to be 
  20167.      the leftmost text word, and the comparison process is repeated, beginning 
  20168.      with the first operand-1. The process continues until the rightmost 
  20169.      library text word has been compared. 
  20170.  
  20171.  10. Comment lines or blank lines occurring in the library text and in 
  20172.      pseudo-text-1 are ignored for purposes of matching; and the sequence of 
  20173.      text words in the library text and in pseudo-text-1 is determined by the 
  20174.      rules for reference format. Comment lines or blank lines appearing in 
  20175.      pseudo-text-2 are copied into the resultant program unchanged whenever 
  20176.      pseudo-text-2 is placed into the source program as a result of text 
  20177.      replacement. Comment lines or blank lines appearing in library text are 
  20178.      copied into the resultant source program unchanged with the following 
  20179.      exception:  a comment line or blank line in library text is not copied if 
  20180.      that comment line or blank line appears within the sequence of text words 
  20181.      that match pseudo-text-1. 
  20182.  
  20183.  11. Text words, after replacement, are placed in the source program according 
  20184.      to standard COBOL format rules. 
  20185.  
  20186.      -----IBM Extension----- 
  20187.  
  20188.  12. COPY REPLACING  does not affect the EJECT, SKIP1/2/3, or TITLE 
  20189.      compiler-directing statements. 
  20190.  
  20191.      ---End of IBM Extension--- 
  20192.  
  20193.  
  20194. ΓòÉΓòÉΓòÉ 12.52.4. Coding Examples ΓòÉΓòÉΓòÉ
  20195.  
  20196. Sequences of code (such as file and data descriptions, error and exception 
  20197. routines, etc.) that are common to a number of programs can be saved in a 
  20198. library, and then used in conjunction with the COPY statement. If naming 
  20199. conventions are established for such common code, then the REPLACING phrase 
  20200. need not be specified. If the names will change from one program to another, 
  20201. then the REPLACING phrase can be used to supply meaningful names for this 
  20202. program. 
  20203.  
  20204. Example 1: In this example, the library text PAYLIB consists of the following 
  20205. Data Division entries: 
  20206.  
  20207. 01  A.
  20208.   02  B    PIC S99.
  20209.   02  C    PIC S9(5)V99.
  20210.   02  D    PIC S9999 OCCURS 1 TO 52 TIMES
  20211.       DEPENDING ON B OF A.
  20212.  
  20213. The programmer can use the COPY statement in the Data Division of a program as 
  20214. follows: 
  20215.  
  20216.     COPY PAYLIB.
  20217.  
  20218. In this program, the library text is copied; the resulting text is treated as 
  20219. if it had been written as follows: 
  20220.  
  20221. 01  A.
  20222.   02  B    PIC S99.
  20223.   02  C    PIC S9(5)V99.
  20224.   02  D    PIC S9999 OCCURS 1 TO 52 TIMES
  20225.       DEPENDING ON B OF A.
  20226.  
  20227. Example 2: To change some (or all) of the names within the library text, the 
  20228. programmer can use the REPLACING phrase: 
  20229.  
  20230.   COPY PAYLIB REPLACING  A BY PAYROLL
  20231.                          B BY PAY-CODE
  20232.                          C BY GROSS-PAY
  20233.                          D BY HOURS.
  20234.  
  20235. In this program, the library text is copied; the resulting text is treated as 
  20236. if it had been written as follows: 
  20237.  
  20238. 01  PAYROLL.
  20239.   02  PAY-CODE PIC S99.
  20240.   02  GROSS-PAY PIC S9(5)V99.
  20241.   02  HOURS PIC S9999 OCCURS 1 TO 52 TIMES
  20242.       DEPENDING ON PAY-CODE OF PAYROLL.
  20243.  
  20244. The changes shown are made only for this program. The text, as it appears in 
  20245. the library, remains unchanged. 
  20246.  
  20247.  
  20248. ΓòÉΓòÉΓòÉ 12.52.5. COPY Statement - Format 2 - DDS Translate ΓòÉΓòÉΓòÉ
  20249.  
  20250. -----IBM Extension----- 
  20251.  
  20252. ΓöîΓöÇΓöÇΓöÇ COPY STATEMENT - FORMAT 2 - DDS TRANSLATE ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20253. Γöé                                        Γöé
  20254. Γöé >>ΓöÇΓöÇCOPYΓöÇΓöÇΓö¼ΓöÇDD-ΓöÇformat-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇOFΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  20255. Γöé      Γö£ΓöÇDD-ΓöÇALL-FORMATSΓöÇΓöÇΓöñ  Γö£ΓöÇ-IΓöÇΓöÇΓöÇΓöñ  Γö£ΓöÇ-INDICATORΓöÇΓöÇΓöñ  ΓööΓöÇINΓöÇΓöÿ       Γöé
  20256. Γöé      Γö£ΓöÇDDR-format-nameΓöÇΓöÇΓöñ  Γö£ΓöÇ-OΓöÇΓöÇΓöÇΓöñ  Γö£ΓöÇ-INDICATORSΓöÇΓöñ           Γöé
  20257. Γöé      Γö£ΓöÇDDR-ALL-FORMATSΓöÇΓöÇΓöñ  ΓööΓöÇ-I-OΓöÇΓöÿ  ΓööΓöÇ-INDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ           Γöé
  20258. Γöé      Γö£ΓöÇDDS-format-nameΓöÇΓöÇΓöñ                        Γöé
  20259. Γöé      Γö£ΓöÇDDS-ALL-FORMATSΓöÇΓöÇΓöñ                        Γöé
  20260. Γöé      Γö£ΓöÇDDSR-format-nameΓöÇΓöñ                        Γöé
  20261. Γöé      ΓööΓöÇDDSR-ALL-FORMATSΓöÇΓöÿ                        Γöé
  20262. Γöé                                        Γöé
  20263. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfile-nameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  20264. Γöé   Γöé           (1)Γöé       ΓööΓöÇWITHΓöÇΓöÿ               Γöé
  20265. Γöé   ΓööΓöÇlibrary-name- ΓöÇΓöÇΓöÇΓöÇΓöÿ                         Γöé
  20266. Γöé                                        Γöé
  20267. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                       Γöé
  20268. Γöé                 Γöé                       Γöé
  20269. Γöé >ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ.ΓöÇΓöÇ><  Γöé
  20270. Γöé    Γö£ΓöÇΓö¼ΓöÇI-FIELDSΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ   ΓööΓöÇSUPPRESSΓöÇΓöÿ  ΓööΓöÇREPLACING PhraseΓöÇΓöÿ     Γöé
  20271. Γöé    Γöé Γö£ΓöÇO-FIELDSΓöÇΓöÇΓöÇΓöñ     Γöé                        Γöé
  20272. Γöé    Γöé ΓööΓöÇI-O-FIELDSΓöÇΓöÿ     Γöé                        Γöé
  20273. Γöé    Γö£ΓöÇΓö¼ΓöÇINDICATORΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20274. Γöé    Γöé Γö£ΓöÇINDICATORSΓöÇΓöñ     Γöé                        Γöé
  20275. Γöé    Γöé ΓööΓöÇINDICΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ     Γöé                        Γöé
  20276. Γöé    Γö£ΓöÇPREFIXΓöÇΓöÇBYΓöÇΓöÇΓöÇΓöÇliteralΓöÇΓöñ                        Γöé
  20277. Γöé    Γö£ΓöÇALIASΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20278. Γöé    Γö£ΓöÇSUBSTITUTEΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20279. Γöé    ΓööΓöÇVLRΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  20280. Γöé                                        Γöé
  20281. Γöé NOTE:                                     Γöé
  20282. Γöé (1)  Required hyphen between library-name-file-name to qualify        Γöé
  20283. Γöé                                        Γöé
  20284. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20285.  
  20286. The Format 2 COPY statement (DD, DDR, DDS, or DDSR option) can be used to 
  20287. create COBOL Data Division statements to describe a file that exists on the 
  20288. system.  These descriptions are based on the version of the file in existence 
  20289. at compilation time. They do not make use of the DDS source statements for the 
  20290. file. 
  20291.  
  20292. The Format 2 COPY statement can be used only in the Data Division, and it is 
  20293. the user's responsibility to precede the statement with a group level item that 
  20294. has a level-number less than 05. 
  20295.  
  20296. ---End of IBM Extension--- 
  20297.  
  20298.  
  20299. ΓòÉΓòÉΓòÉ 12.52.6. I-O ΓòÉΓòÉΓòÉ
  20300.  
  20301. -----IBM Extension----- 
  20302.  
  20303. If neither -I or I-FIELDS, nor -O or O-FIELDS is specified, then -I-O or 
  20304. I-O-FIELDS is assumed. If -I and O-FIELDS, or -O and I-FIELDS is specified, 
  20305. then -I-O or I-O-FIELDS is assumed. 
  20306.  
  20307. If a format-name is specified without the indicator attribute, and both -I and 
  20308. -O formats are to be generated, each record format is generated as a 
  20309. redefinition of a 05 elementary item defined as the size of the largest record 
  20310. format that will be generated. 
  20311.  
  20312. If the file is a database file, a single I-O format is generated. 
  20313.  
  20314. For all other file types the description generated varies as follows: 
  20315.  
  20316.   If -I is specified, the generated data description entries contain either: 
  20317.  
  20318.     - The input and input/output fields for a nonsubfile format 
  20319.     - The input, output, and input/output fields for a subfile format. 
  20320.  
  20321.   If -O is specified, the generated data description entries contain the 
  20322.    output and input/output fields. 
  20323.  
  20324.  The use of the Indicator attribute is discussed under INDICATOR Attribute of 
  20325.  the Format 2 COPY Statement. 
  20326.  
  20327.  ---End of IBM Extension--- 
  20328.  
  20329.  
  20330. ΓòÉΓòÉΓòÉ 12.52.7. INDICATOR Attribute of the Format 2 COPY Statement ΓòÉΓòÉΓòÉ
  20331.  
  20332. -----IBM Extension----- 
  20333.  
  20334. The INDICATOR attribute specifies whether or not data description entries are 
  20335. generated for indicators. 
  20336.  
  20337. If the INDICATOR attribute is specified, data description entries are generated 
  20338. for indicators, but not for data fields. 
  20339.  
  20340. An 05 group level entry is generated as follows: 
  20341.  
  20342.   If the COPY is for a single structure 
  20343.  
  20344.            COPY DDS-format-name-INDIC
  20345.    will generate 
  20346.  
  20347.            05 format-name-I. (or -0 as appropriate).
  20348.  
  20349.   If the COPY is for multiple structures 
  20350.  
  20351.            COPY DDS-ALL-FORMATS-INDIC
  20352.    will generate 
  20353.  
  20354.            05 file-name-RECORD.
  20355.  
  20356.  The data description entries that are generated are determined by which one of 
  20357.  the usage attributes (I, O, or I-O) is specified or assumed in the COPY 
  20358.  statement. 
  20359.  
  20360.   If ...I-INDICATOR... is specified, data description entries for input 
  20361.    (response) indicators are generated for indicators used in the input record 
  20362.    area. 
  20363.  
  20364.   If ...O-INDICATOR... is specified, data description entries for output 
  20365.    (option) indicators are generated for indicators used in the output record 
  20366.    area. 
  20367.  
  20368.   If ...I-O-INDICATOR... is specified or assumed, separate data description 
  20369.    entries for both input and output (response and option) indicators are 
  20370.    generated for indicators used in the input and output record areas. 
  20371.  
  20372.  If the INDICATOR attribute is not specified, whether data description entries 
  20373.  are generated for indicators depends on whether the file had the keyword 
  20374.  INDARA specified in the DDS at the time it was created. 
  20375.  
  20376.   If INDARA was not specified, data description entries are generated for both 
  20377.    data fields and indicators. 
  20378.  
  20379.   If INDARA was specified, data description entries are generated for data 
  20380.    fields only, not for indicators. 
  20381.  
  20382.  ---End of IBM Extension--- 
  20383.  
  20384.  
  20385. ΓòÉΓòÉΓòÉ 12.53. EJECT Statement ΓòÉΓòÉΓòÉ
  20386.  
  20387. -----IBM Extension----- 
  20388.  
  20389. The EJECT statement specifies that the next source statement is to be printed 
  20390. at the top of the next page. 
  20391.  
  20392. ΓöîΓöÇΓöÇΓöÇ EJECT STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20393. Γöé                                        Γöé
  20394. Γöé >>ΓöÇΓöÇEJECTΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                             Γöé
  20395. Γöé       ΓööΓöÇ.ΓöÇΓöÿ                               Γöé
  20396. Γöé                                        Γöé
  20397. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20398.  
  20399. The EJECT statement must be the only statement on the line. It may be written 
  20400. in either Area A or Area B, and may be terminated with a separator period. 
  20401.  
  20402. The EJECT statement has no effect on the compilation of the source program 
  20403. itself. 
  20404.  
  20405. ---End of IBM Extension--- 
  20406.  
  20407.  
  20408. ΓòÉΓòÉΓòÉ 12.54. REPLACE Statement ΓòÉΓòÉΓòÉ
  20409.  
  20410. The REPLACE statement is used to replace source program text. 
  20411.  
  20412. The REPLACE statement can occur anywhere in the source program where a 
  20413. character-string can occur. It must be preceded by a separator period except 
  20414. when it is the first statement in a separately compiled program. It must be 
  20415. terminated by a separator period. 
  20416.  
  20417. The REPLACE statement resembles the REPLACING phrase of the COPY statement, 
  20418. except that it acts on the entire source program, not just the text in COPY 
  20419. libraries. 
  20420.  
  20421. ΓöîΓöÇΓöÇΓöÇ REPLACE STATEMENT - FORMAT 1 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20422. Γöé                                        Γöé
  20423. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ           Γöé
  20424. Γöé                              Γöé           Γöé
  20425. Γöé >>ΓöÇΓöÇREPLACEΓöÇΓöÇΓöÇΓöÇ==pseudo-text-1==ΓöÇΓöÇBYΓöÇΓöÇ==pseudo-text-2==ΓöÇΓö┤ΓöÇΓöÇ.ΓöÇΓöÇ><       Γöé
  20426. Γöé                                        Γöé
  20427. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20428.  
  20429. Each matched occurrence of pseudo-text-1 is replaced by its corresponding 
  20430. pseudo-text-2. This process continues until any of the following are met: 
  20431.  
  20432.   The next occurrence of the REPLACE statement 
  20433.   End of the program 
  20434.   REPLACE OFF (see Format 2 below) 
  20435.  
  20436.   ΓöîΓöÇΓöÇΓöÇ REPLACE STATEMENT - FORMAT 2 ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20437.   Γöé                                        Γöé
  20438.   Γöé >>ΓöÇΓöÇREPLACEΓöÇΓöÇOFFΓöÇΓöÇ.ΓöÇΓöÇ><                            Γöé
  20439.   Γöé                                        Γöé
  20440.   ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20441.  
  20442.  Format 2 ends current text replacement specified by Format 1. 
  20443.  
  20444.  REPLACE statements are processed after all COPY statements have been 
  20445.  processed. Pseudo-text must not include REPLACE statements. 
  20446.  
  20447.  The character-strings and separators comprising pseudo-text can start in 
  20448.  either Area A or Area B.  However, when there is a hyphen in the indicator 
  20449.  area of a line which follows the opening pseudo-text delimiter, Area A of that 
  20450.  line must be blank. 
  20451.  
  20452.  Related Information: 
  20453.  
  20454.   Replacing Algorithm 
  20455.   Programming Notes 
  20456.  
  20457.  
  20458. ΓòÉΓòÉΓòÉ 12.54.1. Replacing Algorithm ΓòÉΓòÉΓòÉ
  20459.  
  20460. For example, assuming three matched pairs of pseudo-text in a REPLACE 
  20461. statement: 
  20462.  
  20463.   1. The comparison starts with the leftmost source program text word following 
  20464.      the REPLACE statement, and with the first pseudo-text-1. 
  20465.   2. Pseudo-text-1 is compared to an equivalent number of contiguous source 
  20466.      program text words according to the following rules: 
  20467.  
  20468.      The comparison is character for character 
  20469.      Uppercase and lowercase characters are equivalent (except within 
  20470.       literals) 
  20471.      Each occurrence of a separator comma, semicolon, and sequence of one or 
  20472.       more spaces is treated as a single space 
  20473.      Comment lines and blank lines are ignored for purposes of matching. 
  20474.       -----IBM Extension----- 
  20475.      Lines containing EJECT, SKIP 1/2/3, or TITLE statements are ignored for 
  20476.       purposes of matching (they are treated as comment lines) 
  20477.       ---End of IBM Extension--- 
  20478.      Debugging lines are processed for matches, but the D in the indicator 
  20479.       area is ignored 
  20480.  
  20481.   3. If no match occurs, the comparison is repeated with each successive 
  20482.      occurrence of pseudo-text-1 (in our example, there are three occurrences), 
  20483.      until a match is found (go to Step 5) 
  20484.   4. If no match is found after all, the next source program text word is 
  20485.      treated as the leftmost program text word, and the cycle begins again at 
  20486.      Step 1 
  20487.   5. When a match is found, the corresponding pseudo-text-2 replaces the 
  20488.      matched text in the source program 
  20489.   6. The source program text word immediately following the rightmost text word 
  20490.      that participated in the match becomes the leftmost source program text 
  20491.      word.  The cycle starts again (Step 1) with the first occurrence of 
  20492.      pseudo-text-1. 
  20493.  
  20494.  
  20495. ΓòÉΓòÉΓòÉ 12.54.2. Programming Notes ΓòÉΓòÉΓòÉ
  20496.  
  20497. After all COPY and REPLACE statements are processed, and if the WITH DEBUGGING 
  20498. MODE clause is not specified in the SOURCE-COMPUTER paragraph, a debugging line 
  20499. is considered to have all the characteristics of a comment line 
  20500.  
  20501. When additional lines are introduced in the source program as a result of 
  20502. processing the REPLACE statement, the indicator area of the new lines contains 
  20503. the same character as the line of the text being replaced (unless the line 
  20504. contains a hyphen, in which case the new lines contain a space) 
  20505.  
  20506. If a literal within pseudo-text-2 does not fit in the line containing 
  20507. pseudo-text-1, and the literal is not being placed in a debugging line, 
  20508. additional continuation lines are introduced that contain the remainder of the 
  20509. literal.  If pseudo-text-1 is on a debugging line, the program is in error. 
  20510.  
  20511.  
  20512. ΓòÉΓòÉΓòÉ 12.55. SKIP1/2/3 Statements ΓòÉΓòÉΓòÉ
  20513.  
  20514. -----IBM Extension----- 
  20515.  
  20516. The SKIP1/2/3 statements specify blank lines that the compiler should add when 
  20517. printing the source listing. SKIP statements have no effect on the compilation 
  20518. of the source program itself. 
  20519.  
  20520. ΓöîΓöÇΓöÇΓöÇ SKIP1/2/3 STATEMENTS - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20521. Γöé                                        Γöé
  20522. Γöé >>ΓöÇΓöÇΓö¼ΓöÇSKIP1ΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                           Γöé
  20523. Γöé   Γö£ΓöÇSKIP2ΓöÇΓöñ  ΓööΓöÇ.ΓöÇΓöÿ                             Γöé
  20524. Γöé   ΓööΓöÇSKIP3ΓöÇΓöÿ                                 Γöé
  20525. Γöé                                        Γöé
  20526. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20527.  
  20528.  SKIP1 
  20529.            Specifies a single blank line (double spacing). 
  20530.  
  20531.  SKIP2 
  20532.            Specifies two blank lines (triple spacing). 
  20533.  
  20534.  SKIP3 
  20535.            Specifies three blank lines (quadruple spacing). 
  20536.  
  20537.  SKIP1, SKIP2, or SKIP3 causes one occurrence of double, triple, or quadruple 
  20538.  spacing. 
  20539.  
  20540.  SKIP1, SKIP2, or SKIP3 may be written anywhere in either Area A or Area B, and 
  20541.  may be terminated with a separator period. It must be the only statement on 
  20542.  the line. 
  20543.  
  20544.  ---End of IBM Extension--- 
  20545.  
  20546.  
  20547. ΓòÉΓòÉΓòÉ 12.56. TITLE Statement ΓòÉΓòÉΓòÉ
  20548.  
  20549. -----IBM Extension----- 
  20550.  
  20551. The TITLE statement specifies a title to be printed at the top of each page of 
  20552. the source listing produced during compilation. The title line is printed below 
  20553. the line containing the identification of the compiler and the current release 
  20554. level. The title is left-justified on the title line. 
  20555.  
  20556. ΓöîΓöÇΓöÇΓöÇ TITLE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20557. Γöé                                        Γöé
  20558. Γöé >>ΓöÇΓöÇTITLEΓöÇΓöÇliteralΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                         Γöé
  20559. Γöé           ΓööΓöÇ.ΓöÇΓöÿ                           Γöé
  20560. Γöé                                        Γöé
  20561. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20562.  
  20563. The TITLE statement: 
  20564.  
  20565.   Forces a new page immediately 
  20566.   Is not printed on the source listing 
  20567.   Has no other effect on compilation 
  20568.   Has no effect on program execution. 
  20569.  
  20570.  A title line is produced for each page in the listing produced by the LIST 
  20571.  option. This title line uses the last TITLE statement found in the source 
  20572.  statements or the default. 
  20573.  
  20574.  The word TITLE may begin in either Area A or Area B. 
  20575.  
  20576.  The TITLE statement may not be continued on another line. 
  20577.  
  20578.  The TITLE statement may appear anywhere in any of the divisions. 
  20579.  
  20580.  No other statement may appear on the same line as the TITLE statement. 
  20581.  
  20582.  ---End of IBM Extension--- 
  20583.  
  20584.  
  20585. ΓòÉΓòÉΓòÉ 12.57. USE Statement ΓòÉΓòÉΓòÉ
  20586.  
  20587. The USE statement specifies procedures for input/output exception or error 
  20588. handling that are to be executed in addition to the system-defined procedures. 
  20589. Although the USE statement is a compiler-directing statement, it can appear 
  20590. only in the Procedure Division, and it can begin only in Area B. (See 
  20591. Precedence Rules for Nested Programs for information on using the GLOBAL 
  20592. phrase.) 
  20593.  
  20594. The USE statement has two formats: 
  20595.  
  20596.   Format 1 - USE AFTER EXCEPTION/ERROR 
  20597.   Format 2 - USE FOR DEBUGGING 
  20598.  
  20599.  
  20600. ΓòÉΓòÉΓòÉ 12.57.1. USE Statement - Format 1 - EXCEPTION/ERROR ΓòÉΓòÉΓòÉ
  20601.  
  20602. The words EXCEPTION and ERROR are synonymous and may be used interchangeably. 
  20603.  
  20604. ΓöîΓöÇΓöÇΓöÇ USE STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20605. Γöé                                        Γöé
  20606. Γöé >>ΓöÇΓöÇUSEΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇAFTERΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇEXCEPTIONΓöÇΓö¼ΓöÇΓöÇPROCEDUREΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  20607. Γöé      ΓööΓöÇGLOBALΓöÇΓöÿ     ΓööΓöÇSTANDARDΓöÇΓöÿ  ΓööΓöÇERRORΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ            Γöé
  20608. Γöé                                        Γöé
  20609. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                         Γöé
  20610. Γöé               Γöé                         Γöé
  20611. Γöé >ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇfile-name-1ΓöÇΓö┤ΓöÇΓö¼ΓöÇΓöÇ><                      Γöé
  20612. Γöé   ΓööΓöÇONΓöÇΓöÿ  Γö£ΓöÇINPUTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20613. Γöé       Γö£ΓöÇOUTPUTΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20614. Γöé       Γö£ΓöÇI-OΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ                        Γöé
  20615. Γöé       ΓööΓöÇEXTENDΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ                        Γöé
  20616. Γöé                                        Γöé
  20617. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20618.  
  20619. The EXCEPTION/ERROR procedure is executed: 
  20620.  
  20621.   Either after completing the system-defined input/output error routine, or 
  20622.  
  20623.   Upon recognition of an INVALID KEY or AT END condition when an INVALID KEY 
  20624.    or AT END phrase has not been specified in the input/output statement, or 
  20625.  
  20626.   Upon recognition of an IBM-defined condition that causes status key 1 to be 
  20627.    set to 9. (See Status Key.) 
  20628.  
  20629.  The EXCEPTION/ERROR procedures are activated when an input/output error occurs 
  20630.  during execution of a ACQUIRE, DROP, READ, WRITE, REWRITE, START, OPEN, CLOSE, 
  20631.  or DELETE statement. To determine what conditions are errors, see Common 
  20632.  Processing Facilities. 
  20633.  
  20634.  After execution of the EXCEPTION/ERROR Declarative procedure, control is 
  20635.  returned to the statement immediately following the input/output statement 
  20636.  which caused the error. 
  20637.  
  20638.  Within a declarative procedure, there must be no reference to any 
  20639.  nondeclarative procedures. In the nondeclarative portion of the program, there 
  20640.  must be no reference to procedure-names that appear in an EXCEPTION/ERROR 
  20641.  declarative procedure, except that PERFORM statements may refer to an 
  20642.  EXCEPTION/ERROR procedure or to procedures associated with it. 
  20643.  
  20644.  Within an EXCEPTION/ERROR declarative procedure, no statement should be 
  20645.  included that would cause execution of a USE procedure that had been 
  20646.  previously invoked and had not yet returned control to the invoking routine. 
  20647.  
  20648.  Related Information: 
  20649.  
  20650.   USE Statement Programming Notes 
  20651.  
  20652.  
  20653. ΓòÉΓòÉΓòÉ 12.57.2. USE Statement Programming Notes ΓòÉΓòÉΓòÉ
  20654.  
  20655. EXCEPTION/ERROR Declarative procedures can be used to check the status key 
  20656. values whenever an input/output error occurs.  Additional information about the 
  20657. file causing the error can be obtained by using data from the mnemonic-names 
  20658. OPEN-FEEDBACK and I-O-FEEDBACK. 
  20659.  
  20660. Care should be used in specifying EXCEPTION/ERROR Declarative procedures for 
  20661. any file.  Prior to successful completion of an initial OPEN for any file, the 
  20662. current Declarative has not yet been established by the object program. 
  20663. Therefore, if any other I-O statement is executed for a file that has never 
  20664. been opened, no Declarative can receive control.  However, if this file has 
  20665. been previously opened, the last previously established Declarative procedure 
  20666. receives control. 
  20667.  
  20668. For example, an OPEN OUTPUT statement establishes a Declarative procedure for 
  20669. this file, and the file is then closed without error.  During later processing, 
  20670. if a logic error occurs, control will go to the Declarative procedure 
  20671. established when the file was opened OUTPUT. 
  20672.  
  20673. Error Handling: If there is an applicable file status clause (but not an 
  20674. applicable USE procedure) when an I-O error occurs, the file status is updated, 
  20675. and control returns to the program. In the absence of a file status clause, USE 
  20676. procedure (implicit or explicit), AT END phrase, or INVALID KEY phrase to 
  20677. handle the error, a run-time message is issued, giving you the option to end or 
  20678. return to the program. 
  20679.  
  20680.  
  20681. ΓòÉΓòÉΓòÉ 12.57.3. Precedence Rules for Nested Programs ΓòÉΓòÉΓòÉ
  20682.  
  20683. Special precedence rules are followed when programs are contained within other 
  20684. programs. In applying these rules, only the first qualifying declarative will 
  20685. be selected for execution. The declarative that is selected must satisfy the 
  20686. rules for execution of that declarative. The order of precedence for selecting 
  20687. a declarative is: 
  20688.  
  20689.   1. A file-specific declarative (one of the form USE AFTER ERROR ON 
  20690.      file-name-1) within the program that contains the statement that caused 
  20691.      the qualifying condition 
  20692.   2. A mode-specific declarative (one of the form USE AFTER ERROR ON INPUT) 
  20693.      within the program that contains the statement that caused the qualifying 
  20694.      condition 
  20695.   3. A file-specific declarative that specifies the GLOBAL phrase, and is 
  20696.      within the program directly containing the program that was last examined 
  20697.      for a qualifying condition 
  20698.   4. A mode-specific declarative that specifies the GLOBAL phrase, and is 
  20699.      within the program directly containing the program that was last examined 
  20700.      for a qualifying condition. 
  20701.   5. Rules 3 and 4 apply recursively back through the parents in the nest of 
  20702.      programs. 
  20703.  
  20704.  Note:   Each declarative procedure runs as a separate invocation from that of 
  20705.  other declarative procedures and the nondeclarative part of the same ILE 
  20706.  COBOL/400 program. 
  20707.  
  20708.  
  20709. ΓòÉΓòÉΓòÉ 12.57.4. USE FOR DEBUGGING ΓòÉΓòÉΓòÉ
  20710.  
  20711. The USE FOR DEBUGGING declarative identifies the items in the source program 
  20712. that are to be monitored by the associated debugging procedure. It establishes 
  20713. a procedure to run when certain errors occur, or when certain items or files 
  20714. change. 
  20715.  
  20716. The USE FOR DEBUGGING declarative is syntax checked and treated as 
  20717. documentation. 
  20718.  
  20719. ΓöîΓöÇΓöÇΓöÇ USE FOR DEBUGGING DECLARATIVE - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20720. Γöé                                        Γöé
  20721. Γöé     (1)                                  Γöé
  20722. Γöé >>ΓöÇΓöÇUSEΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇDEBUGGINGΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ> Γöé
  20723. Γöé       ΓööΓöÇFORΓöÇΓöÿ       ΓööΓöÇONΓöÇΓöÿ                    Γöé
  20724. Γöé                                        Γöé
  20725. Γöé   ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ               Γöé
  20726. Γöé                          Γöé               Γöé
  20727. Γöé >ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇidentifier-1ΓöÇΓö¼Γö┤ΓöÇΓöÇ><             Γöé
  20728. Γöé   Γöé  ΓööΓöÇALLΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÿ        Γöé               Γöé
  20729. Γöé   Γöé     ΓööΓöÇREFERENCES OFΓöÇΓöÿ         Γöé               Γöé
  20730. Γöé   Γö£ΓöÇfile-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  20731. Γöé   Γö£ΓöÇprocedure-name-1ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ               Γöé
  20732. Γöé   ΓööΓöÇALL PROCEDURESΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ               Γöé
  20733. Γöé                                        Γöé
  20734. Γöé NOTE:                                     Γöé
  20735. Γöé (1)  Syntax-checked only                           Γöé
  20736. Γöé                                        Γöé
  20737. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20738.  
  20739. Identifier-1 cannot be reference modified. 
  20740.  
  20741. This statement is compiled only when you are in debugging mode. 
  20742.  
  20743. The compiler treats all statements that follow this one as comments until the 
  20744. next valid USE AFTER EXCEPTION/ERROR statement or END DECLARATIVES delimiter is 
  20745. reached. 
  20746.  
  20747.  
  20748. ΓòÉΓòÉΓòÉ 12.58. PROCESS Statement ΓòÉΓòÉΓòÉ
  20749.  
  20750. The PROCESS statement is an optional part of the COBOL source program. It lets 
  20751. you specify options that you would normally specify at compilation time. 
  20752.  
  20753. Options specified in the PROCESS statement override the corresponding options 
  20754. specified in the CRTCBLMOD or CRTBNDCBL CL command. 
  20755.  
  20756. The format of the PROCESS statement is as follows: 
  20757.  
  20758. ΓöîΓöÇΓöÇΓöÇ PROCESS STATEMENT - FORMAT ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  20759. Γöé                                        Γöé
  20760. Γöé        ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ                           Γöé
  20761. Γöé              Γöé                           Γöé
  20762. Γöé >>ΓöÇΓöÇPROCESSΓöÇΓöÇΓöÇΓöÇoption-1ΓöÇΓö┤ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ><                     Γöé
  20763. Γöé               ΓööΓöÇ.ΓöÇΓöÿ                       Γöé
  20764. Γöé                                        Γöé
  20765. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  20766.  
  20767. Related Information: 
  20768.  
  20769.   List of Valid PROCESS Statement Options 
  20770.   PROCESS Statement Rules 
  20771.  
  20772.  
  20773. ΓòÉΓòÉΓòÉ 12.58.1. option-1 ΓòÉΓòÉΓòÉ
  20774.  
  20775. Option-1 represents the options available with the PROCESS statement. The list 
  20776. of valid PROCESS statement options are: 
  20777.  
  20778.   OUTPUT                      NODUPKEYCHK
  20779.  NOOUTPUT                    DUPKEYCHK 
  20780.  GENLVL(nn)                  NOINZDLT
  20781.  SOURCE                      INZDLT 
  20782.   SRC                         NOBLK
  20783.  NOSOURCE                    BLK 
  20784.  NOSRC                       STDINZ
  20785.  NOSEQUENCE                  NOSTDINZ 
  20786.  SEQUENCE                    NODDSFILLER
  20787.  NOVBSUM                     DSSFILLER 
  20788.  VBSUM                       STDTRUNC
  20789.  NONUMBER                    NOSTDTRUNC 
  20790.  NUMBER                      CHGPOSSGN
  20791.  LINENUMBER                  NOCHGPOSSGN 
  20792.   NOMAP                       NOVARCHAR
  20793.  MAP                         VARCHAR 
  20794.   NOOPTIONS                   NODATETIME
  20795.  OPTIONS                     DATETIME 
  20796.   QUOTE                       CVTPICXGRAPHIC
  20797.  APOST                       NOCVTPICXGRAPHIC 
  20798.   NOSECLVL                    NOOPTIMIZE
  20799.  SECLVL                      BASICOPT 
  20800.  PRTCORR                     FULLOPT 
  20801.  NOPRTCORR                   NOFIPS
  20802.  MONOPRC                     MINIMUM 
  20803.  NOMONOPRC                   INTERMEDIATE 
  20804.  RANGE                       HIGH 
  20805.  NORANGE                     NOOBSOLETE
  20806.  NOUNREF                     OBSOLETE 
  20807.  UNREF                       EXTDSPOPT(a b c) 
  20808.  NOSYNC                      FLAG(nn) 
  20809.  SYNC                        LINKPGM
  20810.  NOCRTF                      LINKPRC 
  20811.  CRTF                        SRTSEQ(a) 
  20812.                              LANGID(a) 
  20813.                               NOGRAPHIC
  20814.                              GRAPHIC 
  20815.  
  20816.  
  20817. ΓòÉΓòÉΓòÉ 12.58.1.1. PROCESS Statement Rules ΓòÉΓòÉΓòÉ
  20818.  
  20819. The following rules apply to the PROCESS statement: 
  20820.  
  20821.   The statement must be placed before the first source statement in the 
  20822.    program immediately preceding the IDENTIFICATION DIVISION header. 
  20823.  
  20824.   The statement begins with the word PROCESS.  Options can appear on more than 
  20825.    one line; however, only the first line can contain the word PROCESS. 
  20826.  
  20827.   The word PROCESS and all options must appear within positions 8 through 72. 
  20828.    Position 7 must be left blank.  The remaining positions can be used as in 
  20829.    COBOL source statements: positions 1 through 6 for sequence numbers, 
  20830.    positions 73 through 80 for identification purposes. 
  20831.  
  20832.   The options must be separated by blanks and/or commas. 
  20833.  
  20834.   The options can appear in any order.  If conflicting options are specified, 
  20835.    for example, LIST and NOLIST, the last option encountered takes precedenc 
  20836.  
  20837.   For any options with suboptions, if the option keyword is correct and the 
  20838.    suboption is in error, the default suboption is assumed. 
  20839.  
  20840.  
  20841. ΓòÉΓòÉΓòÉ 12.58.1.2. OUTPUT / NOOUTPUT ΓòÉΓòÉΓòÉ
  20842.  
  20843.   OUTPUT indicates that a compiler listing is generated.  OUTPUT is the 
  20844.    default value. 
  20845.  
  20846.   NOOUTPUT indicates that no compiler listing is generated. 
  20847.  
  20848.  
  20849. ΓòÉΓòÉΓòÉ 12.58.1.3. GENLVL(nn) ΓòÉΓòÉΓòÉ
  20850.  
  20851. GENLEVL(nn) specifies the severity level that determines if a module or program 
  20852. object is created. The severity level, nn, corresponds to the severity level of 
  20853. the messages produced during compilation. 
  20854.  
  20855. You can specify a one or two-digit number, 0 through 30, which is the severity 
  20856. level you want to use to determine if a module or program object is to be 
  20857. created. No module  or program object is created if errors occur with a 
  20858. severity level equal to or greater than this severity level. 
  20859.  
  20860. The default value for GENLVL is 30.  GENLVL(0) cancels compile. 
  20861.  
  20862.  
  20863. ΓòÉΓòÉΓòÉ 12.58.1.4. GEN / NOGEN ΓòÉΓòÉΓòÉ
  20864.  
  20865.   GEN indicates that the compiler creates a module or program object after the 
  20866.    COBOL source is compiled.  GEN is the default value. 
  20867.  
  20868.   NOGEN indicates that the compiler does not create a module or program object 
  20869.    after the COBOL source program is compiled. You might specify this option if 
  20870.    you want only error messages and/or listings. 
  20871.  
  20872.  
  20873. ΓòÉΓòÉΓòÉ 12.58.1.5. NOMAP / MAP ΓòÉΓòÉΓòÉ
  20874.  
  20875.   NOMAP indicates that the compiler does not list the Data Division map. NOMAP 
  20876.    is the default value. 
  20877.  
  20878.   MAP indicates that the compiler lists the Data Division map. 
  20879.  
  20880.  
  20881. ΓòÉΓòÉΓòÉ 12.58.1.6. NONUMBER / NUMBER / LINENUMBER ΓòÉΓòÉΓòÉ
  20882.  
  20883.   NONUMBER indicates that the source-file sequence numbers are used for 
  20884.    reference numbers.  NONUMBER is the default value. 
  20885.  
  20886.   NUMBER indicates that the user-supplied sequence numbers (columns 1 through 
  20887.    6) are used for reference numbers. 
  20888.  
  20889.   LINENUMBER indicates that the sequence numbers created by the compiler are 
  20890.    used for reference numbers. This option combines COBOL program source code 
  20891.    and source code introduced by COPY statements into one consecutively 
  20892.    numbered sequence. Use this option if you specify FIPS (Federal Information 
  20893.    Processing Standards) flagging or SAA flagging. 
  20894.  
  20895.  
  20896. ΓòÉΓòÉΓòÉ 12.58.1.7. NOSECLVL / SECLVL ΓòÉΓòÉΓòÉ
  20897.  
  20898.   NOSECLVL indicates that second level message text is not listed for this 
  20899.    compilation. NOSECLVL is the default value. 
  20900.  
  20901.   SECLVL indicates that second level message text is listed for this 
  20902.    compilation, along with the first-level error text. 
  20903.  
  20904.  
  20905. ΓòÉΓòÉΓòÉ 12.58.1.8. NOOPTIONS / OPTIONS ΓòÉΓòÉΓòÉ
  20906.  
  20907.   NOOPTIONS indicates that options in effect are not listed for this 
  20908.    compilation. NOOPTIONS is the default value. 
  20909.  
  20910.   OPTIONS indicates that options in effect are listed for this compilation. 
  20911.  
  20912.  
  20913. ΓòÉΓòÉΓòÉ 12.58.1.9. QUOTE / APOST ΓòÉΓòÉΓòÉ
  20914.  
  20915.   QUOTE specifies that the delimiter quotation mark (") is used for nonnumeric 
  20916.    literals and Boolean literals. This option also specifies that the value of 
  20917.    the figurative constant QUOTE has the EBCDIC value of a quotation mark. 
  20918.    QUOTE is the default value. 
  20919.  
  20920.   APOST specifies that the delimiter apostrophe (') is used for nonnumeric 
  20921.    literals and Boolean literals. This option also specifies that the value of 
  20922.    the figurative constant QUOTE has the EBCDIC value of an apostrophe. 
  20923.  
  20924.  
  20925. ΓòÉΓòÉΓòÉ 12.58.1.10. NOSEQUENCE / SEQUENCE ΓòÉΓòÉΓòÉ
  20926.  
  20927.   NOSEQUENCE indicates that the reference numbers are not checked for sequence 
  20928.    errors. NOSEQUENCE is the default value. 
  20929.  
  20930.   SEQUENCE indicates that the reference numbers are checked for sequence 
  20931.    errors. Sequence errors do not occur if the LINENUMBER option is specified. 
  20932.  
  20933.  
  20934. ΓòÉΓòÉΓòÉ 12.58.1.11. NOVBSUM / VBSUM ΓòÉΓòÉΓòÉ
  20935.  
  20936.   NOVBSUM indicates that verb usage counts are not printed. NOVBSUM is the 
  20937.    default value. 
  20938.  
  20939.   VBSUM indicates that verb usage counts are printed. 
  20940.  
  20941.  
  20942. ΓòÉΓòÉΓòÉ 12.58.1.12. NOXREF / XREF ΓòÉΓòÉΓòÉ
  20943.  
  20944.   NOXREF indicates that the compiler does not produce a cross-reference 
  20945.    listing for the COBOL source program. NOXREF is the default value. 
  20946.  
  20947.   XREF indicates that the compiler produces a cross-reference listing for the 
  20948.    COBOL source program. 
  20949.  
  20950.  
  20951. ΓòÉΓòÉΓòÉ 12.58.1.13. PRTCORR / NOPRTCORR ΓòÉΓòÉΓòÉ
  20952.  
  20953.   PRTCORR indicates that the compiler inserts comment lines in the compiler 
  20954.    listing indicating which elementary items were included as a result of the 
  20955.    use of the CORRESPONDING phrase. PRTCORR is the default value. 
  20956.  
  20957.   NOPRTCORR indicates that the compiler does not insert comment lines in the 
  20958.    compiler listing when the CORRESPONDING phrase is used. 
  20959.  
  20960.  
  20961. ΓòÉΓòÉΓòÉ 12.58.1.14. NOINZDLT / INZDLT ΓòÉΓòÉΓòÉ
  20962.  
  20963.   NOINZDLT indicates that relative files with sequential access are not 
  20964.    initialized with deleted records during the CLOSE operation if the files 
  20965.    have been opened for OUTPUT. The record boundary is determined by the number 
  20966.    of records written at OPEN OUTPUT time. Subsequent OPEN operations allow 
  20967.    access only up to the record boundary. NOINZDLT is the default value. 
  20968.  
  20969.   INZDLT indicates that relative files with sequential access are initialized 
  20970.    with deleted records during the CLOSE operation if the files were opened for 
  20971.    OUTPUT. Active records in the files are not affected. The record boundary is 
  20972.    defined as the file size for subsequent OPEN operations. 
  20973.  
  20974.  
  20975. ΓòÉΓòÉΓòÉ 12.58.1.15. NODDSFILLER / DDSFILLER ΓòÉΓòÉΓòÉ
  20976.  
  20977.   NODDSFILLER indicates that if no matching fields are found by a COPY DDS 
  20978.    statement, no field descriptions are generated. NODDSFILLER is the default 
  20979.    value. 
  20980.  
  20981.   DDSFILLER indicates that if no matching fields are found by a COPY DDS 
  20982.    statement, a single character FILLER field description, "07 FILLER PIC X", 
  20983.    is always created. 
  20984.  
  20985.  
  20986. ΓòÉΓòÉΓòÉ 12.58.1.16. NOSYNC / SYNC ΓòÉΓòÉΓòÉ
  20987.  
  20988.   NOSYNC indicates that the SYNCHRONIZED clause is syntax checked only. NOSYNC 
  20989.    is the default value. 
  20990.  
  20991.   SYNC indicates that the SYNCHRONIZED clause is compiled by the compiler. The 
  20992.    SYNCHRONIZED clause causes the position of a data item to be aligned such 
  20993.    that the right-hand (least-significant) end is on the natural storage 
  20994.    boundary. Extra storage is reserved adjacent to the synchronized item to 
  20995.    achieve this alignment. Each elementary data item that is described as 
  20996.    SYNCHRONIZED is aligned to the natural storage boundary that corresponds to 
  20997.    its data storage assignment. 
  20998.  
  20999.  
  21000. ΓòÉΓòÉΓòÉ 12.58.1.17. NOCRTF / CRTF ΓòÉΓòÉΓòÉ
  21001.  
  21002.   NOCRTF indicates that files that are unavailable at the time of an OPEN 
  21003.    operation are not created dynamically. NOCRTF is the default value. 
  21004.  
  21005.   CRTF indicates that files that are unavailable at the time of an OPEN 
  21006.    operation are created dynamically. 
  21007.  
  21008.    Note:   The maximum record length for a file that will be created 
  21009.            dynamically is 32 766.
  21010.  
  21011.  
  21012. ΓòÉΓòÉΓòÉ 12.58.1.18. NODUPKEYCHK / DUPKEYCHK ΓòÉΓòÉΓòÉ
  21013.  
  21014.   NODUPKEYCHK does not check for duplicate primary keys for INDEXED files. 
  21015.    NODUPKEYCHK is the default value. 
  21016.  
  21017.   DUPKEYCHK checks for duplicate primary keys for INDEXED files. 
  21018.  
  21019.  
  21020. ΓòÉΓòÉΓòÉ 12.58.1.19. NOBLK / BLK ΓòÉΓòÉΓòÉ
  21021.  
  21022.   NOBLK indicates that the compiler allows blocking only of SEQUENTIAL access 
  21023.    files with no START statement. The BLOCK CONTAINS clause, if specified, is 
  21024.    ignored, except for tape files. NOBLK is the default value. 
  21025.  
  21026.   When BLK is used and a BLOCK CONTAINS clause is specified, the compiler 
  21027.    allows blocking for DYNAMIC access files and SEQUENTIAL access files with a 
  21028.    START statement.  Blocking is not allowed for RELATIVE files opened for 
  21029.    output operations. The BLOCK CONTAINS clause controls the number of records 
  21030.    to be blocked. 
  21031.  
  21032.    When BLK is used and no BLOCK CONTAINS clause is specified, the compiler 
  21033.    allows blocking only of SEQUENTIAL access files with no START statement. The 
  21034.    operating system determines the number of records to be blocked. 
  21035.  
  21036.  
  21037. ΓòÉΓòÉΓòÉ 12.58.1.20. STDINZ / NOSTDINZ ΓòÉΓòÉΓòÉ
  21038.  
  21039.   STDINZ indicates that for those items with no VALUE clause, the compiler 
  21040.    initializes data items to system defaults. STDINZ is the default value. 
  21041.  
  21042.   NOSTDINZ indicates that for those items with no VALUE clause, the compiler 
  21043.    does not initialize data items to system defaults. 
  21044.  
  21045.  
  21046. ΓòÉΓòÉΓòÉ 12.58.1.21. RANGE / NORANGE ΓòÉΓòÉΓòÉ
  21047.  
  21048.   RANGE indicates that at run-time, subscripts are verified that they are 
  21049.    within the correct ranges, but index ranges are not verified. Reference 
  21050.    modification and compiler-generated substring operations are also checked. 
  21051.    RANGE is the default value. 
  21052.  
  21053.   NORANGE indicates that ranges are not verified at run time. 
  21054.  
  21055.  Note:   The RANGE option generates code for checking subscript ranges. For 
  21056.          example, it ensures that you are not attempting to access the 21st 
  21057.          element of a 20-element array. 
  21058.  
  21059.  The NORANGE option does not generate code to check subscript ranges. 
  21060.  
  21061.  
  21062. ΓòÉΓòÉΓòÉ 12.58.1.22. NOUNREF / UNREF ΓòÉΓòÉΓòÉ
  21063.  
  21064.   NOUNREF indicates that unreferenced data items are not included in the 
  21065.    compiled program. This reduces the amount storage used, allowing a larger 
  21066.    program to be compiled. The unreferenced data items still appear in the 
  21067.    cross-reference listings produced by specifying the XREF option. NOUNREF is 
  21068.    the default value. 
  21069.  
  21070.   UNREF indicates that unreferenced data items are included in the compiled 
  21071.    program. 
  21072.  
  21073.  
  21074. ΓòÉΓòÉΓòÉ 12.58.1.23. MONOPRC / NOMONOPRC ΓòÉΓòÉΓòÉ
  21075.  
  21076.   MONOPRC indicates monocasing of PROGRAM-ID and CALL/CANCEL target. MONOPRC 
  21077.    is the default value. 
  21078.  
  21079.   NOMONOPRC indicates no monocasing of PROGRAM-ID and CALL/CANCEL target. This 
  21080.    option is most useful when dealing with external calls to case sensitive 
  21081.    procedure names (for example: C functions). 
  21082.  
  21083.  
  21084. ΓòÉΓòÉΓòÉ 12.58.1.24. NOVARCHAR / VARCHAR ΓòÉΓòÉΓòÉ
  21085.  
  21086.   NOVARCHAR indicates that variable-length fields are ignored, and are 
  21087.    declared as FILLER fields. NOVARCHAR is the default value. 
  21088.  
  21089.   VARCHAR indicates that variable-length fields are declared as fixed-length 
  21090.    group items, and are accessible to the COBOL source program. 
  21091.  
  21092.  
  21093. ΓòÉΓòÉΓòÉ 12.58.1.25. NODATETIME / DATETIME ΓòÉΓòÉΓòÉ
  21094.  
  21095.   NODATETIME indicates that date, time, and timestamp data types are ignored, 
  21096.    and are declared as FILLER fields. NODATETIME is the default value. 
  21097.  
  21098.   DATETIME indicates that date, time, and timestamp data types are declared as 
  21099.    fixed-length character fields, and are accessible to the COBOL source 
  21100.    program. 
  21101.  
  21102.  
  21103. ΓòÉΓòÉΓòÉ 12.58.1.26. NOCVTPICXGRAPHIC / CVTPICXGRAPHIC ΓòÉΓòÉΓòÉ
  21104.  
  21105.   NOCVTPICXGRAPHIC indicates that DBCS-graphic data types are ignored, and are 
  21106.    declared as FILLER fields. NOCVTPICXGRAPHIC is the default value. 
  21107.  
  21108.   CVTGRAPHIC indicates that fixed-length DBCS-graphic data types are declared 
  21109.    as fixed-length alphanumeric fields, and are accessible to the ILE COBOL/400 
  21110.    source program. 
  21111.  
  21112.    When the VARCHAR option is also in use, variable-length DBCS-graphic data 
  21113.    types are declared as fixed-length group items, and are accessible to the 
  21114.    ILE COBOL/400 source program. 
  21115.  
  21116.  
  21117. ΓòÉΓòÉΓòÉ 12.58.1.27. NOOPTIMIZE / BASICOPT / FULLOPT ΓòÉΓòÉΓòÉ
  21118.  
  21119.   NOOPTIMIZE indicates that no optimization is performed on the compiled 
  21120.    module. Compilation time is minimized when this option is used. This option 
  21121.    allows variables to be displayed and modified during debugging. NOOPTIMIZE 
  21122.    is the default value. 
  21123.  
  21124.   BASICOPT indicates that some optimization (only at the local block level) is 
  21125.    performed on the compiled module. This option allows user variables to be 
  21126.    displayed but not modified during debugging. 
  21127.  
  21128.   FULLOPT indicates that full optimization (at the global level) is performed 
  21129.    on the compiled module. This optimization increases compilation time but 
  21130.    also generates the most efficient code. This option allows user variables to 
  21131.    be displayed but not modified during debugging. The displayed values of the 
  21132.    variables my not be their current values. 
  21133.  
  21134.  
  21135. ΓòÉΓòÉΓòÉ 12.58.1.28. NOFIPS / MINIMUM / INTERMEDIATE / HIGH ΓòÉΓòÉΓòÉ
  21136.  
  21137.   NOFIPS indicates that the COBOL source program is not FIPS flagged. NOFIPS 
  21138.    is the default value. 
  21139.  
  21140.   MINIMUM indicates FIPS flag for minimum subset and higher. 
  21141.  
  21142.   INTERMEDIATE indicates FIPS flag for intermediate subset and higher. 
  21143.  
  21144.   HIGH indicates FIPS flag for high subset. 
  21145.  
  21146.  
  21147. ΓòÉΓòÉΓòÉ 12.58.1.29. NOOBSOLETE / OBSOLETE ΓòÉΓòÉΓòÉ
  21148.  
  21149.   NOOBSOLETE indicates that obsolete language elements are not flagged. 
  21150.    NOOBSOLETE is the default value. 
  21151.  
  21152.   OBSOLETE indicates that obsolete language elements are flagged. 
  21153.  
  21154.  
  21155. ΓòÉΓòÉΓòÉ 12.58.1.30. EXTDSPOPT(a b c) ΓòÉΓòÉΓòÉ
  21156.  
  21157. EXTDSPOPT specifies the options to use for extended ACCEPT and extended DISPLAY 
  21158. statements for workstation I/O, and takes the form: 
  21159.  
  21160. EXTDSPOPT(a b c)
  21161.  
  21162. Where a is DFRWRT or NODFRWRT, b is UNDSPCHR or NOUNDSPCHR, and c is ACCUPDALL 
  21163. or ACCUPDNE. 
  21164.  
  21165.   DFRWRT indicates that extended DISPLAY statements are held in a buffer until 
  21166.    an extended ACCEPT statement is encountered, or until the buffer is filled. 
  21167.  
  21168.    The contents of the buffer are written to the display when the extended 
  21169.    ACCEPT statement is encountered or the buffer is full. DFRWRT is the default 
  21170.    value. 
  21171.  
  21172.   NODFRWRT indicates that each extended DISPLAY statement is performed as it 
  21173.    is encountered. 
  21174.  
  21175.   UNDSPCHR indicates that displayable and undisplayable characters are handled 
  21176.    by extended ACCEPT and extended DISPLAY statements. UNDSPCHR is the default 
  21177.    value. 
  21178.  
  21179.   NOUNDSPCHR indicates that only displayable characters are handled by 
  21180.    extended ACCEPT and extended DISPLAY statements. 
  21181.  
  21182.    Although you must use this option for display stations attached to remote 
  21183.    3174 and 3274 controllers, you can also use it for local work stations. If 
  21184.    you do use this option, your data must contain displayable characters. If 
  21185.    the data contains values less than hexadecimal 20, the results are not 
  21186.    predictable, ranging from unexpected display formats to severe errors. 
  21187.  
  21188.   ACCUPDALL indicates that all types of data are predisplayed in the extended 
  21189.    ACCEPT statements regardless of the existence of the UPDATE phrase. 
  21190.    ACCUPDALL is the default value. 
  21191.  
  21192.   ACCUPDNE indicates that only numeric edited data are predisplayed in the 
  21193.    extended ACCEPT statements that do not contain the UPDATE phrase. 
  21194.  
  21195.  
  21196. ΓòÉΓòÉΓòÉ 12.58.1.31. FLAG(nn) ΓòÉΓòÉΓòÉ
  21197.  
  21198. FLAG specifies the minimum severity level of messages that will appear in the 
  21199. compiler listing. 
  21200.  
  21201. You can specify a one or two-digit number, nn, that specifies the minimum 
  21202. severity level of messages that you want to appear in the compiler listing. 
  21203. Messages that have severity levels of this specified value or higher will 
  21204. appear in the compiler listing. The default value for FLAG is 0. FLAG(0) 
  21205. indicates that all messages will appear in the compiler listing. 
  21206.  
  21207.  
  21208. ΓòÉΓòÉΓòÉ 12.58.1.32. LINKPGM / LINKPRC ΓòÉΓòÉΓòÉ
  21209.  
  21210.   LINKPGM indicates that the linkage type for external CALL/CANCEL 'literal' 
  21211.    form target is a program object. LINKPGM is the default value. 
  21212.  
  21213.   LINKPRC indicates that the linkage type for external CALL/CANCEL 'literal' 
  21214.    form target is an ILE procedure. 
  21215.  
  21216.  Note:   You may override this option for specific external CALL/CANCEL 
  21217.          'literal' target lists by specifying the following sentence in the 
  21218.          SPECIAL-NAMES paragraph: 
  21219.  
  21220.                   LINKAGE TYPE IS implementer-name FOR target-list.
  21221.  
  21222.  
  21223. ΓòÉΓòÉΓòÉ 12.58.1.33. SRTSEQ(a) ΓòÉΓòÉΓòÉ
  21224.  
  21225. SRTSEQ specifies the sort sequence used when NLSSORT is associated with an 
  21226. alphabet-name in the ALPHABET clause. The SRTSEQ option is used in conjunction 
  21227. with the LANGID option to determine which system-defined or user-defined sort 
  21228. sequence table the module will use. SRTSEQ takes the form: 
  21229.  
  21230. SRTSEQ(a)
  21231.  
  21232. Where a is HEX, JOB, JOBRUN, LANGIDUNQ, LANGIDSHR, "table-name", or 
  21233. "library-name/table-name". 
  21234.  
  21235.   HEX indicates that no sort sequence table will be used, and the hexadecimal 
  21236.    values of the characters will be used to determine the sort sequence. HEX is 
  21237.    the default value. 
  21238.  
  21239.   JOB indicates that the sort sequence of the module will be resolved and 
  21240.    associated with the module at compile time. The sort sequence table must 
  21241.    exist in the system at compile time. 
  21242.  
  21243.   JOBRUN indicates that the sort sequence of the program will be resolved and 
  21244.    associated with the module at run time. At compile time, the compiler will 
  21245.    associate the sort sequence of the compile job with the module. At run time, 
  21246.    this sort sequence will be replaced by the sort sequence associated with the 
  21247.    job at run time. This value allows a module to be compiled once and used 
  21248.    with different sort sequences at run time. 
  21249.  
  21250.   LANGIDUNQ indicates that the sort sequence table being used must contain a 
  21251.    unique weight for each character in the code page. The sort sequence table 
  21252.    used will be the unique weighted table associated with the language 
  21253.    specified in the LANGID option. 
  21254.  
  21255.   LANGIDSHR indicates that the sort sequence table being used can contain the 
  21256.    same weight for multiple characters in the code page. The sort sequence 
  21257.    table used will be the shared weighted table associated with the language 
  21258.    specified in the LANGID option. 
  21259.  
  21260.   "table-name" or "library-name/table-name" indicates the name of the sort 
  21261.    sequence table to be used. The table contains weights for all characters in 
  21262.    a given code page. A weight is associated with the character that is defined 
  21263.    at the code point. The library is specified as LIBL, CURLIB, or 
  21264.    library-name. 
  21265.  
  21266.     - LIBL indicates that the library list is searched to find the library 
  21267.       where the source file is located. LIBL is the default value. 
  21268.  
  21269.     - CURLIB indicates that the current library is used. If you have not 
  21270.       assigned a library as the current library, QTEMP is used. 
  21271.  
  21272.     - library-name indicates the name of the library where the sort sequence 
  21273.       table is found. 
  21274.  
  21275.  
  21276. ΓòÉΓòÉΓòÉ 12.58.1.34. LANGID(a) ΓòÉΓòÉΓòÉ
  21277.  
  21278. LANGID specifies the language identifier which is used in conjunction with the 
  21279. sort sequence. The LANGID option is used only when the SRTSEQ value in effect 
  21280. is LANGIDUNQ or LANGIDSHR. LANGID takes the form: 
  21281.  
  21282. LANGID(a)
  21283.  
  21284. Where a is JOBRUN, JOB or "language-identifer-name". 
  21285.  
  21286.   JOBRUN indicates that the language identifier of the program will be 
  21287.    resolved at run time. When the compiled program is run, the language 
  21288.    identifier of the job is used. This value allows a module to be compiled 
  21289.    once and used with different language identifiers at run time. 
  21290.  
  21291.   JOB indicates that the language identifier of the module will be resolved at 
  21292.    compile time. 
  21293.  
  21294.   "language-identifier-name" is a valid 3 character language identifier. 
  21295.  
  21296.  
  21297. ΓòÉΓòÉΓòÉ 12.58.1.35. SOURCE / SRC / NOSOURCE / NOSRC ΓòÉΓòÉΓòÉ
  21298.  
  21299.   SOURCE or SRC indicates that the compiler produces a source listing, 
  21300.    consisting of the ILE COBOL/400 source program and all compiler-time error 
  21301.    messages.  SOURCE or SRC is the default value. 
  21302.  
  21303.   NOSOURCE or NOSRC indicates that the compiler does not produce the source 
  21304.    part of the listing.  If you do not require a source listing, you should use 
  21305.    this option because compilation may take less time. 
  21306.  
  21307.  
  21308. ΓòÉΓòÉΓòÉ 12.58.1.36. STDTRUNC / NOSTDTRUNC ΓòÉΓòÉΓòÉ
  21309.  
  21310.   STDTRUNC applies only to USAGE BINARY data. When STDTRUNC is selected, USAGE 
  21311.    BINARY data is truncated to the number of digits in the PICTURE clause of 
  21312.    the BINARY receiving field. STDTRUNC is the default value. 
  21313.  
  21314.   NOSTDTRUNC applies only to USAGE BINARY data. When NOSTDTRUNC is selected, 
  21315.    BINARY receiving fields are truncated only at half-word, full-word, or 
  21316.    double-word boundaries. BINARY sending fields are also handled as 
  21317.    half-words, full-words, or double-words. Thus, the full binary content of 
  21318.    the field is significant. Also, the DISPLAY statement will convert the 
  21319.    entire content of a BINARY field, with no truncation. 
  21320.  
  21321.  
  21322. ΓòÉΓòÉΓòÉ 12.58.1.37. NOCHGPOSSGN / CHGPOSSGN ΓòÉΓòÉΓòÉ
  21323.  
  21324.   NOCHGPOSSGN indicates that hexadecimal F is used as the default positive 
  21325.    sign for zoned and packed numeric data. Hexadecimal F is the system default 
  21326.    for the OS/400 operating system. NOCHGPOSSGN is the default value. 
  21327.  
  21328.   CHGPOSSGN indicates that hexadecimal C is used as the default positive sign 
  21329.    for zoned and packed numeric data. This applies to all results of the MOVE, 
  21330.    ADD, SUBTRACT, MULTIPLY, DIVIDE, COMPUTE, and INITIALIZE statements, as well 
  21331.    as the results of the VALUE clause. 
  21332.  
  21333.  
  21334. ΓòÉΓòÉΓòÉ 12.58.1.38. NOGRAPHIC / GRAPHIC ΓòÉΓòÉΓòÉ
  21335.  
  21336.   NOGRAPHIC indicates that mixed literals will be handled with the assumption 
  21337.    that hex 0E and hex 0F are shift-in and shift-out characters respectively, 
  21338.    and they enclose the DBCS characters in the mixed literal. 
  21339.  
  21340.   GRAPHIC indicates that non-numeric literals containing hex 0E and hex 0F 
  21341.    will be treated as of they only contain SBCS characters. 
  21342.  
  21343.  
  21344. ΓòÉΓòÉΓòÉ <hidden> ADVANCING Menu ΓòÉΓòÉΓòÉ
  21345.  
  21346. Select which occurence of ADVANCING you want to display: 
  21347.  
  21348.   DISPLAY Statement - Format 1 - Data Transfer 
  21349.   DISPLAY Statement - Format 4 - Session I/O 
  21350.   WRITE Statement - Format 1 - Sequential Files 
  21351.  
  21352.  
  21353. ΓòÉΓòÉΓòÉ <hidden> AFTER Menu ΓòÉΓòÉΓòÉ
  21354.  
  21355. Select which occurence of AFTER you want to display: 
  21356.  
  21357.   INSPECT Statement - Format 1 - TALLYING 
  21358.   INSPECT Statement - Format 2 - REPLACING 
  21359.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21360.   INSPECT Statement - Format 4 - CONVERTING 
  21361.   PERFORM Statement - Format 3 - UNTIL 
  21362.   PERFORM Statement - Format 4 - VARYING 
  21363.   WRITE Statement - Format 1 - Sequential Files 
  21364.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21365.  
  21366.  
  21367. ΓòÉΓòÉΓòÉ <hidden> ALL Menu ΓòÉΓòÉΓòÉ
  21368.  
  21369. Select which occurence of ALL you want to display: 
  21370.  
  21371.   INSPECT Statement - Format 1 - TALLYING 
  21372.   INSPECT Statement - Format 2 - REPLACING 
  21373.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21374.   Figurative Constant - ALL literal 
  21375.   SEARCH Statement - Format 2 - Binary Search 
  21376.   UNSTRING Statement 
  21377.  
  21378.  
  21379. ΓòÉΓòÉΓòÉ <hidden> ALPHABETIC Menu ΓòÉΓòÉΓòÉ
  21380.  
  21381. Select which occurence of ALPHABETIC you want to display: 
  21382.  
  21383.   Class Condition (identifer IS/IS NOT ALPHABETIC) 
  21384.   INITIALIZE Statement 
  21385.  
  21386.  
  21387. ΓòÉΓòÉΓòÉ <hidden> ALSO Menu ΓòÉΓòÉΓòÉ
  21388.  
  21389. Select which occurence of ALSO you want to display: 
  21390.  
  21391.   ALPHABET Clause 
  21392.   EVALUATE Statement 
  21393.  
  21394.  
  21395. ΓòÉΓòÉΓòÉ <hidden> ARE Menu ΓòÉΓòÉΓòÉ
  21396.  
  21397. Select which occurence of ARE you want to display: 
  21398.  
  21399.   LABEL RECORDS Clause 
  21400.   DATA RECORDS Clause 
  21401.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21402.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21403.   WRITE Statement - Format 3 - FORMATEFILE 
  21404.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21405.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  21406.  
  21407.  
  21408. ΓòÉΓòÉΓòÉ <hidden> AREA Menu ΓòÉΓòÉΓòÉ
  21409.  
  21410. Select which occurence of AREA you want to display: 
  21411.  
  21412.   RESERVE Clause 
  21413.   SAME AREA Clause 
  21414.   SAME RECORD AREA Clause 
  21415.   SAME SORT AREA Clause 
  21416.   SAME SORT-MERGE AREA Clause 
  21417.  
  21418.  
  21419. ΓòÉΓòÉΓòÉ <hidden> ASCENDING Menu ΓòÉΓòÉΓòÉ
  21420.  
  21421. Select which occurence of ASCENDING you want to display: 
  21422.  
  21423.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21424.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21425.   MERGE Statement 
  21426.   SORT Statement 
  21427.  
  21428.  
  21429. ΓòÉΓòÉΓòÉ <hidden> AT Menu ΓòÉΓòÉΓòÉ
  21430.  
  21431. Select which occurence of AT you want to display: 
  21432.  
  21433.   LINAGE Clause 
  21434.   ACCEPT Statement - Format 7 - Workstation I/O 
  21435.   DISPLAY Statement - Format 3 - Workstation I/O 
  21436.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21437.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21438.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21439.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21440.   SEARCH Statement - Format 1 - Serial Search 
  21441.   SEARCH Statement - Format 2 - Binary Search 
  21442.   WRITE Statement - Format 1 - Sequential Files 
  21443.   WRITE Statement - Format 3 - FORMATEFILE 
  21444.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21445.  
  21446.  
  21447. ΓòÉΓòÉΓòÉ <hidden> BEFORE Menu ΓòÉΓòÉΓòÉ
  21448.  
  21449. Select which occurence of BEFORE you want to display: 
  21450.  
  21451.   INSPECT Statement - Format 1 - TALLYING 
  21452.   INSPECT Statement - Format 2 - REPLACING 
  21453.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21454.   INSPECT Statement - Format 4 - CONVERTING 
  21455.   PERFORM Statement - Format 3 - UNTIL 
  21456.   PERFORM Statement - Format 4 - VARYING 
  21457.   WRITE Statement - Format 1 - Sequential Files 
  21458.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21459.  
  21460.  
  21461. ΓòÉΓòÉΓòÉ <hidden> BLOCK Menu ΓòÉΓòÉΓòÉ
  21462.  
  21463. Select which occurence of BLOCK you want to display: 
  21464.  
  21465.   BLOCK CONTAINS Clause 
  21466.   ACCEPT Statement - Format 7 - Workstation I/O 
  21467.   DISPLAY Statement - Format 3 - Workstation I/O 
  21468.  
  21469.  
  21470. ΓòÉΓòÉΓòÉ <hidden> BY Menu ΓòÉΓòÉΓòÉ
  21471.  
  21472. Select which occurence of BY you want to display: 
  21473.  
  21474.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21475.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21476.   CALL Statement - Format 1 - ON OVERFLOW 
  21477.   CALL Statement - Format 2 - ON EXCEPTION 
  21478.   INITIALIZE Statement 
  21479.   INSPECT Statement - Format 2 - REPLACING 
  21480.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21481.   MULTIPLY Statement - Format 1 - MULTIPY 
  21482.   MULTIPLY Statement - Format 2 - MULTIPLY GIVING 
  21483.   PERFORM Statement - Format 4 - VARYING 
  21484.   SET Statement - Format 2 - UP BY / DOWN BY 
  21485.   STRING Statement 
  21486.   UNSTRING Statement 
  21487.  
  21488.  
  21489. ΓòÉΓòÉΓòÉ <hidden> CHARACTER Menu ΓòÉΓòÉΓòÉ
  21490.  
  21491. Select which occurence of CHARACTER you want to display: 
  21492.  
  21493.   ACCEPT Statement - Format 7 - Workstation I/O 
  21494.   SIGN Clause 
  21495.  
  21496.  
  21497. ΓòÉΓòÉΓòÉ <hidden> CHARACTERS Menu ΓòÉΓòÉΓòÉ
  21498.  
  21499. Select which occurence of CHARACTERS you want to display: 
  21500.  
  21501.   MEMORY SIZE Phrase (OBJECT-COMPUTER Paragraph) 
  21502.   BLOCK CONTAINS Clause 
  21503.   RECORD CONTAINS Clause - Format 1 - Fixed Length Records 
  21504.   RECORD CONTAINS Clause - Format 2 - Fixed or Variable Length Records 
  21505.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21506.   INSPECT Statement - Format 1 - TALLYING 
  21507.   INSPECT Statement - Format 2 - REPLACING 
  21508.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21509.  
  21510.  
  21511. ΓòÉΓòÉΓòÉ <hidden> COLLATING Menu ΓòÉΓòÉΓòÉ
  21512.  
  21513. Select which occurence of COLLATING you want to display: 
  21514.  
  21515.   PROGRAM COLLATING SEQUENCE Phrase (OBJECT-COMPUTER Paragraph) 
  21516.   MERGE Statement 
  21517.   SORT Statement 
  21518.  
  21519.  
  21520. ΓòÉΓòÉΓòÉ <hidden> COLUMN Menu ΓòÉΓòÉΓòÉ
  21521.  
  21522. Select which occurence of COLUMN you want to display: 
  21523.  
  21524.   ACCEPT Statement - Format 7 - Workstation I/O 
  21525.   DISPLAY Statement - Format 3 - Workstation I/O 
  21526.  
  21527.  
  21528. ΓòÉΓòÉΓòÉ <hidden> CONTAINS Menu ΓòÉΓòÉΓòÉ
  21529.  
  21530. Select which occurence of CONTAINS you want to display: 
  21531.  
  21532.   MULTIPLE FILE TAPE Clause 
  21533.   BLOCK CONTAINS Clause 
  21534.   RECORD CONTAINS Clause - Format 1 - Fixed Length Records 
  21535.   RECORD CONTAINS Clause - Format 2 - Fixed or Variable Length Records 
  21536.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21537.  
  21538.  
  21539. ΓòÉΓòÉΓòÉ <hidden> DATA Menu ΓòÉΓòÉΓòÉ
  21540.  
  21541. Select which occurence of DATA you want to display: 
  21542.  
  21543.   DATA DIVISION 
  21544.   DATA RECORDS Clause 
  21545.   INITIALIZE Statement 
  21546.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21547.  
  21548.  
  21549. ΓòÉΓòÉΓòÉ <hidden> DELIMITED Menu ΓòÉΓòÉΓòÉ
  21550.  
  21551. Select which occurence of DELIMITED you want to display: 
  21552.  
  21553.   STRING Statement 
  21554.   UNSTRING Statement 
  21555.  
  21556.  
  21557. ΓòÉΓòÉΓòÉ <hidden> DEPENDING Menu ΓòÉΓòÉΓòÉ
  21558.  
  21559. Select which occurence of DEPENDING you want to display: 
  21560.  
  21561.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21562.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21563.   GO TO Statement - Format 2 - Conditional 
  21564.  
  21565.  
  21566. ΓòÉΓòÉΓòÉ <hidden> DESCENDING Menu ΓòÉΓòÉΓòÉ
  21567.  
  21568. Select which occurence of DESCENDING you want to display: 
  21569.  
  21570.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21571.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21572.   MERGE Statement 
  21573.   SORT Statement 
  21574.  
  21575.  
  21576. ΓòÉΓòÉΓòÉ <hidden> DISPLAY Menu ΓòÉΓòÉΓòÉ
  21577.  
  21578. Select which occurence of DISPLAY you want to display: 
  21579.  
  21580.   CONSOLE Clause 
  21581.   USAGE Clause 
  21582.   ACCEPT Statement - Format 8 - Session I/O 
  21583.   DISPLAY Statement - Format 1 to Format 4 
  21584.  
  21585.  
  21586. ΓòÉΓòÉΓòÉ <hidden> DOWN Menu ΓòÉΓòÉΓòÉ
  21587.  
  21588. Select which occurence of DOWN you want to display: 
  21589.  
  21590.   SET Statement - Format 2 - UP BY / DOWN BY 
  21591.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21592.  
  21593.  
  21594. ΓòÉΓòÉΓòÉ <hidden> DUPLICATES Menu ΓòÉΓòÉΓòÉ
  21595.  
  21596. Select which occurence of DUPLICATES you want to display: 
  21597.  
  21598.   RECORD KEY Clause 
  21599.   SORT Statement 
  21600.  
  21601.  
  21602. ΓòÉΓòÉΓòÉ <hidden> END Menu ΓòÉΓòÉΓòÉ
  21603.  
  21604. Select which occurence of END you want to display: 
  21605.  
  21606.   END DECLARATIVES key words (PROCEDURE DIVISION) 
  21607.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21608.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21609.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21610.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21611.   RETURN Statement 
  21612.   SEARCH Statement - Format 1 - Serial Search 
  21613.   SEARCH Statement - Format 2 - Binary Search 
  21614.  
  21615.  
  21616. ΓòÉΓòÉΓòÉ <hidden> EQUAL Menu ΓòÉΓòÉΓòÉ
  21617.  
  21618. Select which occurence of EQUAL you want to display: 
  21619.  
  21620.   EQUAL TO Relational Condition Operator 
  21621.   COMPUTE Statement 
  21622.   SEARCH Statement - Format 2 - Binary Search 
  21623.   START Statement 
  21624.  
  21625.  
  21626. ΓòÉΓòÉΓòÉ <hidden> EXCEPTION Menu ΓòÉΓòÉΓòÉ
  21627.  
  21628. Select which occurence of EXCEPTION you want to display: 
  21629.  
  21630.   ACCEPT Statement - Format 5 - PIP Data Area 
  21631.   ACCEPT Statement - Format 7 - Workstation I/O 
  21632.   CALL Statement - Format 2 - ON EXCEPTION 
  21633.  
  21634.  
  21635. ΓòÉΓòÉΓòÉ <hidden> EXIT Menu ΓòÉΓòÉΓòÉ
  21636.  
  21637. Select which occurence of EXIT you want to display: 
  21638.  
  21639.   EXIT Statement 
  21640.   EXIT PROGRAM Statement 
  21641.  
  21642.  
  21643. ΓòÉΓòÉΓòÉ <hidden> EXTERNAL Menu ΓòÉΓòÉΓòÉ
  21644.  
  21645. Select which occurence of EXTERNAL you want to display: 
  21646.  
  21647.   EXTERNAL Clause (File Description Entry) 
  21648.   EXTERNAL Clause (Data Description Entry) 
  21649.  
  21650.  
  21651. ΓòÉΓòÉΓòÉ <hidden> FILE Menu ΓòÉΓòÉΓòÉ
  21652.  
  21653. Select which occurence of FILE you want to display: 
  21654.  
  21655.   FILE STATUS Clause 
  21656.   MULTIPLE FILE TAPE Clause 
  21657.   FILE SECTION 
  21658.  
  21659.  
  21660. ΓòÉΓòÉΓòÉ <hidden> FIRST Menu ΓòÉΓòÉΓòÉ
  21661.  
  21662. Select which occurence of FIRST you want to display: 
  21663.  
  21664.   INSPECT Statement - Format 2 - REPLACING 
  21665.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21666.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21667.  
  21668.  
  21669. ΓòÉΓòÉΓòÉ <hidden> FOR Menu ΓòÉΓòÉΓòÉ
  21670.  
  21671. Select which occurence of FOR you want to display: 
  21672.  
  21673.   LINKAGE TYPE Clause 
  21674.   SAME AREA Clause 
  21675.   SAME RECORD AREA Clause 
  21676.   SAME SORT AREA Clause 
  21677.   SAME SORT-MERGE AREA Clause 
  21678.   COMMITMENT CONTROL Clause 
  21679.   ACCEPT Statement - Format 3 - Feedback 
  21680.   ACCEPT Statement - Format 4 - Local Data Area 
  21681.   ACCEPT Statement - Format 6 - Attribute Data 
  21682.   ACQUIRE Statement 
  21683.   CLOSE Statement - Format 1 - Sequential Files 
  21684.   DISPLAY Statement - Format 2 - Local Data Area 
  21685.   INSPECT Statement - Format 1 - TALLYING 
  21686.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21687.  
  21688.  
  21689. ΓòÉΓòÉΓòÉ <hidden> FROM Menu ΓòÉΓòÉΓòÉ
  21690.  
  21691. Select which occurence of FROM you want to display: 
  21692.  
  21693.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21694.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21695.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21696.   ACCEPT Statement - Format 1 - Data Transfer 
  21697.   ACCEPT Statement - Format 2 - System Information Transfer 
  21698.   ACCEPT Statement - Format 3 - Feedback 
  21699.   ACCEPT Statement - Format 4 - Local Data Area 
  21700.   ACCEPT Statement - Format 5 - PIP Data Area 
  21701.   ACCEPT Statement - Format 6 - Attribute Data 
  21702.   ACCEPT Statement - Format 7 - Workstation I/O 
  21703.   ACCEPT Statement - Format 8 - Session I/O 
  21704.   DROP Statement 
  21705.   PERFORM Statement - Format 4 - VARYING 
  21706.   RELEASE Statement 
  21707.   WRITE Statement - Format 1 - Sequential Files 
  21708.   WRITE Statement - Format 2 - Indexed and Relative Files 
  21709.   WRITE Statement - Format 3 - FORMATEFILE 
  21710.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21711.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  21712.  
  21713.  
  21714. ΓòÉΓòÉΓòÉ <hidden> GIVING Menu ΓòÉΓòÉΓòÉ
  21715.  
  21716. Select which occurence of GIVING you want to display: 
  21717.  
  21718.   GIVING Phrase (arithmetic operations) 
  21719.   MERGE Statement 
  21720.   SORT Statement 
  21721.  
  21722.  
  21723. ΓòÉΓòÉΓòÉ <hidden> GLOBAL Menu ΓòÉΓòÉΓòÉ
  21724.  
  21725. Select which occurence of GLOBAL you want to display: 
  21726.  
  21727.   GLOBAL Clause (File Description Entry) 
  21728.   GLOBAL Clause (Data Description Entry) 
  21729.  
  21730.  
  21731. ΓòÉΓòÉΓòÉ <hidden> GREATER Menu ΓòÉΓòÉΓòÉ
  21732.  
  21733. Select which occurence of GREATER you want to display: 
  21734.  
  21735.   GREATER THAN Relational Condition Operator 
  21736.   START Statement 
  21737.  
  21738.  
  21739. ΓòÉΓòÉΓòÉ <hidden> IN Menu ΓòÉΓòÉΓòÉ
  21740.  
  21741. Select which occurence of IN you want to display: 
  21742.  
  21743.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21744.   SORT Statement 
  21745.   UNSTRING Statement 
  21746.  
  21747.  
  21748. ΓòÉΓòÉΓòÉ <hidden> INDEXED Menu ΓòÉΓòÉΓòÉ
  21749.  
  21750. Select which occurence of INDEXED you want to display: 
  21751.  
  21752.   ORGANIZATION Clause - Format 2 - Indexed Files 
  21753.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21754.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21755.  
  21756.  
  21757. ΓòÉΓòÉΓòÉ <hidden> INITIAL Menu ΓòÉΓòÉΓòÉ
  21758.  
  21759. Select which occurence of INITIAL you want to display: 
  21760.  
  21761.   IDENTIFICATION DIVISION 
  21762.   INSPECT Statement - Format 1 - TALLYING 
  21763.   INSPECT Statement - Format 2 - REPLACING 
  21764.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21765.   INSPECT Statement - Format 4 - CONVERTING 
  21766.  
  21767.  
  21768. ΓòÉΓòÉΓòÉ <hidden> INPUT Menu ΓòÉΓòÉΓòÉ
  21769.  
  21770. Select which occurence of INPUT you want to display: 
  21771.  
  21772.   OPEN Statement - Format 1 - Sequential Files 
  21773.   OPEN Statement - Format 2 - Indexed and Relative Files 
  21774.   SORT Statement 
  21775.  
  21776.  
  21777. ΓòÉΓòÉΓòÉ <hidden> INTO Menu ΓòÉΓòÉΓòÉ
  21778.  
  21779. Select which occurence of INTO you want to display: 
  21780.  
  21781.   DIVIDE Statement - Format 1 - DIVIDE INTO 
  21782.   DIVIDE Statement - Format 2 - DIVIDE INTO GIVING 
  21783.   DIVIDE Statement - Format 4 - DIVIDE INTO GIVING REMAINDER 
  21784.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21785.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21786.   READ Statement - Format 3 - Random Retrieval 
  21787.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21788.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21789.   RETURN Statement 
  21790.   STRING Statement 
  21791.   UNSTRING Statement 
  21792.  
  21793.  
  21794. ΓòÉΓòÉΓòÉ <hidden> INVALID Menu ΓòÉΓòÉΓòÉ
  21795.  
  21796. Select which occurence of INVALID you want to display: 
  21797.  
  21798.   DELETE Statement 
  21799.   READ Statement - Format 3 - Random Retrieval 
  21800.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21801.   REWRITE Statement - Format 1 
  21802.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  21803.   START Statement 
  21804.   WRITE Statement - Format 2 - Indexed and Relative Files 
  21805.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  21806.  
  21807.  
  21808. ΓòÉΓòÉΓòÉ <hidden> IS Menu ΓòÉΓòÉΓòÉ
  21809.  
  21810. Select which occurence of IS you want to display: 
  21811.  
  21812.   IDENTIFICATION DIVISION 
  21813.   PROGRAM COLLATING SEQUENCE Phrase (OBJECT-COMPUTER Paragraph) 
  21814.   SEGMENT-LIMIT Phrase (OBJECT-COMPUTER Paragraph) 
  21815.   SPECIAL-NAMES Paragraph 
  21816.   ALPHABET Clause 
  21817.   CLASS Clause 
  21818.   CURRENCY SIGN Clause 
  21819.   DECIMAL POINT IS COMMA Clause 
  21820.   CONSOLE Clause 
  21821.   CURSOR Clause 
  21822.   CRT STATUS Clause 
  21823.   LINKAGE TYPE Clause 
  21824.   ORGANIZATION Clause - Format 1 - Sequential Files 
  21825.   ORGANIZATION Clause - Format 2 - Indexed Files 
  21826.   ORGANIZATION Clause - Format 3 - Relative Files 
  21827.   ORGANISATION Clause - Format 5 - TRANSACTION 
  21828.   ACCESS MODE Clause - Format 1 - Sequential Files 
  21829.   ACCESS MODE Clause - Format 2 - Indexed Files 
  21830.   ACCESS MODE Clause - Format 3 - Relative Files 
  21831.   ACCESS MODE Clause - Format 5 - TRANSACTION 
  21832.   RECORD KEY Clause 
  21833.   RELATIVE KEY Clause 
  21834.   FILE STATUS Clause 
  21835.   CONTROL-AREA Clause 
  21836.   EXTERNAL Clause (File Description Entry) 
  21837.   GLOBAL Clause (File Description Entry) 
  21838.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  21839.   LABEL RECORDS Clause 
  21840.   VALUE OF Clause 
  21841.   DATA RECORDS Clause 
  21842.   LINAGE Clause 
  21843.   CODE-SET Clause 
  21844.   EXTERNAL Clause (Data Description Entry) 
  21845.   GLOBAL Clause (Data Description Entry) 
  21846.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21847.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21848.   PICTURE Clause 
  21849.   SIGN Clause 
  21850.   USAGE Clause 
  21851.   VALUE Clause 
  21852.   Class Condition Operator 
  21853.   Relation Condition Operator 
  21854.   Sign Condition Operator 
  21855.   ACCEPT Statement - Format 7 - Workstation I/O 
  21856.   CALL Statement - Format 1 - ON OVERFLOW 
  21857.   CALL Statement - Format 2 - ON EXCEPTION 
  21858.   CANCEL Statement 
  21859.   DELETE Statement 
  21860.   DISPLAY Statement - Format 3 - Workstation I/O 
  21861.   MERGE Statement 
  21862.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21863.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21864.   READ Statement - Format 3 - Random Retrieval 
  21865.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21866.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21867.   REWRITE Statement - Format 1 
  21868.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  21869.   SEARCH Statement - Format 2 - Binary Search 
  21870.   SORT Statement 
  21871.   START Statement 
  21872.   WRITE Statement - Format 2 - Indexed and Relative Files 
  21873.   WRITE Statement - Format 3 - FORMATEFILE 
  21874.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21875.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  21876.  
  21877.  
  21878. ΓòÉΓòÉΓòÉ <hidden> KEY Menu ΓòÉΓòÉΓòÉ
  21879.  
  21880. Select which occurence of KEY you want to display: 
  21881.  
  21882.   RECORD KEY Clause 
  21883.   RELATIVE KEY Clause 
  21884.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  21885.   OCCURS Clause - Format 2 - Variable-Length Tables 
  21886.   DELETE Statement 
  21887.   MERGE Statement 
  21888.   READ Statement - Format 3 - Random Retrieval 
  21889.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  21890.   REWRITE Statement - Format 1 
  21891.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  21892.   SEARCH Statement - Format 2 - Binary Search 
  21893.   SORT Statement 
  21894.   START Statement 
  21895.   WRITE Statement - Format 2 - Indexed and Relative Files 
  21896.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  21897.  
  21898.  
  21899. ΓòÉΓòÉΓòÉ <hidden> LEADING Menu ΓòÉΓòÉΓòÉ
  21900.  
  21901. Select which occurence of LEADING you want to display: 
  21902.  
  21903.   SIGN Clause 
  21904.   INSPECT Statement - Format 1 - TALLYING 
  21905.   INSPECT Statement - Format 2 - REPLACING 
  21906.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  21907.  
  21908.  
  21909. ΓòÉΓòÉΓòÉ <hidden> LESS Menu ΓòÉΓòÉΓòÉ
  21910.  
  21911. Select which occurence of LESS you want to display: 
  21912.  
  21913.   LESS THAN Relational Condition Operator 
  21914.   START Statement 
  21915.  
  21916.  
  21917. ΓòÉΓòÉΓòÉ <hidden> LINE Menu ΓòÉΓòÉΓòÉ
  21918.  
  21919. Select which occurence of LINE you want to display: 
  21920.  
  21921.   ACCEPT Statement - Format 7 - Workstation I/O 
  21922.   DISPLAY Statement - Format 3 - Workstation I/O 
  21923.   WRITE Statement - Format 1 - Sequential Files 
  21924.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21925.  
  21926.  
  21927. ΓòÉΓòÉΓòÉ <hidden> LINES Menu ΓòÉΓòÉΓòÉ
  21928.  
  21929. Select which occurence of LINES you want to display: 
  21930.  
  21931.   LINAGE Clause 
  21932.   WRITE Statement - Format 1 - Sequential Files 
  21933.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  21934.  
  21935.  
  21936. ΓòÉΓòÉΓòÉ <hidden> LINKAGE Menu ΓòÉΓòÉΓòÉ
  21937.  
  21938. Select which occurence of LINKAGE you want to display: 
  21939.  
  21940.   LINKAGE TYPE Clause 
  21941.   LINKAGE SECTION 
  21942.   CALL Statement - Format 1 - ON OVERFLOW 
  21943.   CALL Statement - Format 2 - ON EXCEPTION 
  21944.   CANCEL Statement 
  21945.  
  21946.  
  21947. ΓòÉΓòÉΓòÉ <hidden> LOCK Menu ΓòÉΓòÉΓòÉ
  21948.  
  21949. Select which occurence of LOCK you want to display: 
  21950.  
  21951.   CLOSE Statement - Format 1 
  21952.   CLOSE Statement - Format 2 - Tape Files 
  21953.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21954.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21955.   READ Statement - Format 3 - Random Retrieval 
  21956.  
  21957.  
  21958. ΓòÉΓòÉΓòÉ <hidden> MODE Menu ΓòÉΓòÉΓòÉ
  21959.  
  21960. Select which occurence of MODE you want to display: 
  21961.  
  21962.   WITH DEBUGGING MODE Phrase (SOURCE-COMPUTER Paragraph) 
  21963.   ACCESS MODE Clause - Format 1 - Sequential Files 
  21964.   ACCESS MODE Clause - Format 2 - Indexed Files 
  21965.   ACCESS MODE Clause - Format 3 - Relative Files 
  21966.   ACCESS MODE Clause - Format 5 - TRANSACTION 
  21967.   ACCEPT Statement - Format 7 - Workstation I/O 
  21968.   DISPLAY Statement - Format 3 - Workstation I/O 
  21969.  
  21970.  
  21971. ΓòÉΓòÉΓòÉ <hidden> NEXT Menu ΓòÉΓòÉΓòÉ
  21972.  
  21973. Select which occurence of NEXT you want to display: 
  21974.  
  21975.   IF Statement 
  21976.   DISPLAY Statement - Format 3 - Workstation I/O 
  21977.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21978.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21979.   SEARCH Statement - Format 1 - Serial Search 
  21980.   SEARCH Statement - Format 2 - Binary Search 
  21981.  
  21982.  
  21983. ΓòÉΓòÉΓòÉ <hidden> NO Menu ΓòÉΓòÉΓòÉ
  21984.  
  21985. Select which occurence of NO you want to display: 
  21986.  
  21987.   CLOSE Statement - Format 1 - Sequential Files 
  21988.   DISPLAY Statement - Format 1 - Data Transfer 
  21989.   DISPLAY Statement - Format 4 - Session I/O 
  21990.   OPEN Statement - Format 1 - Sequential Files 
  21991.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  21992.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  21993.   READ Statement - Format 3 - Random Retrieval 
  21994.  
  21995.  
  21996. ΓòÉΓòÉΓòÉ <hidden> NOT Menu ΓòÉΓòÉΓòÉ
  21997.  
  21998. Select which occurence of NOT you want to display: 
  21999.  
  22000.   Class Condition Operator 
  22001.   Relation Condition Operator 
  22002.   Sign Condition Operator 
  22003.   Complex Condition Operator 
  22004.   SIZE ERROR Phrases 
  22005.   ACCEPT Statement - Format 5 - PIP Data Area 
  22006.   ACCEPT Statement - Format 7 - Workstation I/O 
  22007.   CALL Statement - Format 2 - ON EXCEPTION 
  22008.   DELETE Statement 
  22009.   EVALUATE Statement 
  22010.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  22011.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  22012.   READ Statement - Format 3 - Random Retrieval 
  22013.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22014.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22015.   RETURN Statement 
  22016.   REWRITE Statement - Format 1 
  22017.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22018.   START Statement 
  22019.   STRING Statement 
  22020.   UNSTRING Statement 
  22021.   SUBTRACT Statement - Format 1 
  22022.   SUBTRACT Statement - Format 2 - GIVING 
  22023.   SUBTRACT Statement - Format 3 - CORRESPONDING 
  22024.   WRITE Statement - Format 1 - Sequential Files 
  22025.   WRITE Statement - Format 2 - Indexed and Relative Files 
  22026.   WRITE Statement - Format 3 - FORMATEFILE 
  22027.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22028.  
  22029.  
  22030. ΓòÉΓòÉΓòÉ <hidden> NUMBER Menu ΓòÉΓòÉΓòÉ
  22031.  
  22032. Select which occurence of NUMBER you want to display: 
  22033.  
  22034.   ACCEPT Statement - Format 7 - Workstation I/O 
  22035.   DISPLAY Statement - Format 3 - Workstation I/O 
  22036.  
  22037.  
  22038. ΓòÉΓòÉΓòÉ <hidden> NUMERIC Menu ΓòÉΓòÉΓòÉ
  22039.  
  22040. Select which occurence of NUMERIC you want to display: 
  22041.  
  22042.   Class Condition (identifer IS/IS NOT NUMERIC) 
  22043.   INITIALIZE Statement 
  22044.  
  22045.  
  22046. ΓòÉΓòÉΓòÉ <hidden> OF Menu ΓòÉΓòÉΓòÉ
  22047.  
  22048. Select which occurence of OF you want to display: 
  22049.  
  22050.   RERUN Clause 
  22051.   ADDRESS OF Statement 
  22052.   ADDRESS OF Special Register 
  22053.   VALUE OF Clause 
  22054.   LENGTH OF Special Register 
  22055.   SET Statement - Format 5 - Pointer Data Item 
  22056.   SET Statement - Format 6 - Procedure-pointer Data Item 
  22057.  
  22058.  
  22059. ΓòÉΓòÉΓòÉ <hidden> OFF Menu ΓòÉΓòÉΓòÉ
  22060.  
  22061. Select which occurence of OFF you want to display: 
  22062.  
  22063.   SPECIAL-NAMES Paragraph 
  22064.   SET Statement - Format 3 - ON / OFF Phrase 
  22065.  
  22066.  
  22067. ΓòÉΓòÉΓòÉ <hidden> OMITTED Menu ΓòÉΓòÉΓòÉ
  22068.  
  22069. Select which occurence of OMITTED you want to display: 
  22070.  
  22071.   LABEL RECORDS Clause 
  22072.   CALL Statement - Format 1 - ON OVERFLOW 
  22073.   CALL Statement - Format 2 - ON EXCEPTION 
  22074.  
  22075.  
  22076. ΓòÉΓòÉΓòÉ <hidden> ON Menu ΓòÉΓòÉΓòÉ
  22077.  
  22078. Select which occurence of ON you want to display: 
  22079.  
  22080.   SPECIAL-NAMES Paragraph 
  22081.   RERUN Clause 
  22082.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  22083.   OCCURS Clause - Format 2 - Variable-Length Tables 
  22084.   SIZE ERROR Phrases 
  22085.   ACCEPT Statement - Format 5 - PIP Data Area 
  22086.   ACCEPT Statement - Format 7 - Workstation I/O 
  22087.   CALL Statement - Format 1 - ON OVERFLOW 
  22088.   CALL Statement - Format 2 - ON EXCEPTION 
  22089.   GO TO Statement - Format 2 - Conditional 
  22090.   MERGE Statement 
  22091.   SET Statement - Format 3 - ON / OFF Phrase 
  22092.   SORT Statement 
  22093.   STRING Statement 
  22094.   SUBTRACT Statement - Format 1 
  22095.   SUBTRACT Statement - Format 2 - GIVING 
  22096.   SUBTRACT Statement - Format 3 - CORRESPONDING 
  22097.   UNSTRING Statement 
  22098.  
  22099.  
  22100. ΓòÉΓòÉΓòÉ <hidden> OR Menu ΓòÉΓòÉΓòÉ
  22101.  
  22102. Select which occurence of OR you want to display: 
  22103.  
  22104.   Relation Condition Operator 
  22105.   Complex Condition Operator 
  22106.   START Statement 
  22107.   UNSTRING Statement 
  22108.  
  22109.  
  22110. ΓòÉΓòÉΓòÉ <hidden> OUTPUT Menu ΓòÉΓòÉΓòÉ
  22111.  
  22112. Select which occurence of OUTPUT you want to display: 
  22113.  
  22114.   MERGE Statement 
  22115.   OPEN Statement - Format 1 - Sequential Files 
  22116.   OPEN Statement - Format 2 - Indexed and Relative Files 
  22117.   SORT Statement 
  22118.  
  22119.  
  22120. ΓòÉΓòÉΓòÉ <hidden> OVERFLOW Menu ΓòÉΓòÉΓòÉ
  22121.  
  22122. Select which occurence of OVERFLOW you want to display: 
  22123.  
  22124.   CALL Statement - Format 1 - ON OVERFLOW 
  22125.   STRING Statement 
  22126.   UNSTRING Statement 
  22127.  
  22128.  
  22129. ΓòÉΓòÉΓòÉ <hidden> POINTER Menu ΓòÉΓòÉΓòÉ
  22130.  
  22131. Select which occurence of POINTER you want to display: 
  22132.  
  22133.   USAGE Clause 
  22134.   STRING Statement 
  22135.   UNSTRING Statement 
  22136.  
  22137.  
  22138. ΓòÉΓòÉΓòÉ <hidden> PROCEDURE Menu ΓòÉΓòÉΓòÉ
  22139.  
  22140. Select which occurence of PROCEDURE you want to display: 
  22141.  
  22142.   LINKAGE TYPE Clause 
  22143.   CALL Statement - Format 1 - ON OVERFLOW 
  22144.   CALL Statement - Format 2 - ON EXCEPTION 
  22145.   CANCEL Statement 
  22146.   MERGE Statement 
  22147.   SORT Statement 
  22148.  
  22149.  
  22150. ΓòÉΓòÉΓòÉ <hidden> PROGRAM Menu ΓòÉΓòÉΓòÉ
  22151.  
  22152. Select which occurence of PROGRAM you want to display: 
  22153.  
  22154.   IDENTIFICATION DIVISION 
  22155.   PROGRAM COLLATING SEQUENCE Phrase (OBJECT-COMPUTER Paragraph) 
  22156.   LINKAGE TYPE Clause 
  22157.   CALL Statement - Format 1 - ON OVERFLOW 
  22158.   CALL Statement - Format 2 - ON EXCEPTION 
  22159.   CANCEL Statement 
  22160.   EXIT PROGRAM Statement 
  22161.  
  22162.  
  22163. ΓòÉΓòÉΓòÉ <hidden> RECORD Menu ΓòÉΓòÉΓòÉ
  22164.  
  22165. Select which occurence of RECORD you want to display: 
  22166.  
  22167.   RECORD KEY Clause 
  22168.   SAME RECORD AREA Clause 
  22169.   RECORD CONTAINS Clause - Format 1 - Fixed Length Records 
  22170.   RECORD CONTAINS Clause - Format 2 - Fixed or Variable Length Records 
  22171.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  22172.   LABEL RECORDS Clause 
  22173.   DATA RECORDS Clause 
  22174.   DELETE Statement 
  22175.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  22176.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  22177.   READ Statement - Format 3 - Random Retrieval 
  22178.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22179.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22180.   RETURN Statement 
  22181.  
  22182.  
  22183. ΓòÉΓòÉΓòÉ <hidden> RECORDS Menu ΓòÉΓòÉΓòÉ
  22184.  
  22185. Select which occurence of RECORDS you want to display: 
  22186.  
  22187.   RERUN Clause 
  22188.   BLOCK CONTAINS Clause 
  22189.   LABEL RECORDS Clause 
  22190.   DATA RECORDS Clause 
  22191.  
  22192.  
  22193. ΓòÉΓòÉΓòÉ <hidden> RELATIVE Menu ΓòÉΓòÉΓòÉ
  22194.  
  22195. Select which occurence of RELATIVE you want to display: 
  22196.  
  22197.   ORGANIZATION Clause - Format 3 - Relative Files 
  22198.   RELATIVE KEY Clause 
  22199.  
  22200.  
  22201. ΓòÉΓòÉΓòÉ <hidden> REPLACING Menu ΓòÉΓòÉΓòÉ
  22202.  
  22203. Select which occurence of REPLACING you want to display: 
  22204.  
  22205.   INITIALIZE Statement 
  22206.   INSPECT Statement - Format 2 - REPLACING 
  22207.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  22208.  
  22209.  
  22210. ΓòÉΓòÉΓòÉ <hidden> REWIND Menu ΓòÉΓòÉΓòÉ
  22211.  
  22212. Select which occurence of REWIND you want to display: 
  22213.  
  22214.   CLOSE Statement - Format 1 - Sequential Files 
  22215.   OPEN Statement - Format 1 - Sequential Files 
  22216.  
  22217.  
  22218. ΓòÉΓòÉΓòÉ <hidden> RIGHT Menu ΓòÉΓòÉΓòÉ
  22219.  
  22220. Select which occurence of RIGHT you want to display: 
  22221.  
  22222.   JUSTIFIED Clause 
  22223.   SYNCHRONIZED Clause 
  22224.  
  22225.  
  22226. ΓòÉΓòÉΓòÉ <hidden> SAME Menu ΓòÉΓòÉΓòÉ
  22227.  
  22228. Select which occurence of SAME you want to display: 
  22229.  
  22230.   SAME AREA Clause 
  22231.   SAME RECORD AREA Clause 
  22232.   SAME SORT AREA Clause 
  22233.   SAME SORT-MERGE AREA Clause 
  22234.  
  22235.  
  22236. ΓòÉΓòÉΓòÉ <hidden> SECTION Menu ΓòÉΓòÉΓòÉ
  22237.  
  22238. Select which occurence of SECTION you want to display: 
  22239.  
  22240.   FILE SECTION 
  22241.   LINKAGE SECTION 
  22242.   WORKING-STORAGE SECTION 
  22243.  
  22244.  
  22245. ΓòÉΓòÉΓòÉ <hidden> SEQUENCE Menu ΓòÉΓòÉΓòÉ
  22246.  
  22247. Select which occurence of SEQUENCE you want to display: 
  22248.  
  22249.   PROGRAM COLLATING SEQUENCE Phrase (OBJECT-COMPUTER Paragraph) 
  22250.   MERGE Statement 
  22251.   SORT Statement 
  22252.  
  22253.  
  22254. ΓòÉΓòÉΓòÉ <hidden> SEQUENTIAL Menu ΓòÉΓòÉΓòÉ
  22255.  
  22256. Select which occurence of SEQUENTIAL you want to display: 
  22257.  
  22258.   ORGANIZATION Clause - Format 1 - Sequential Files 
  22259.   ACCESS MODE Clause - Format 1 - Sequential Files 
  22260.  
  22261.  
  22262. ΓòÉΓòÉΓòÉ <hidden> SIGN Menu ΓòÉΓòÉΓòÉ
  22263.  
  22264. Select which occurence of SIGN you want to display: 
  22265.  
  22266.   CURRENCY SIGN Clause 
  22267.   SIGN Clause 
  22268.  
  22269.  
  22270. ΓòÉΓòÉΓòÉ <hidden> SIZE Menu ΓòÉΓòÉΓòÉ
  22271.  
  22272. Select which occurence of SIZE you want to display: 
  22273.  
  22274.   MEMORY SIZE Phrase (OBJECT-COMPUTER Paragraph) 
  22275.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  22276.   SIZE ERROR Phrases 
  22277.   ACCEPT Statement - Format 7 - Workstation I/O 
  22278.   DISPLAY Statement - Format 3 - Workstation I/O 
  22279.   STRING Statement 
  22280.   SUBTRACT Statement - Format 1 
  22281.   SUBTRACT Statement - Format 2 - GIVING 
  22282.   SUBTRACT Statement - Format 3 - CORRESPONDING 
  22283.  
  22284.  
  22285. ΓòÉΓòÉΓòÉ <hidden> SORT Menu ΓòÉΓòÉΓòÉ
  22286.  
  22287. Select which occurence of SORT you want to display: 
  22288.  
  22289.   SAME SORT AREA Clause 
  22290.   SORT Statement 
  22291.  
  22292.  
  22293. ΓòÉΓòÉΓòÉ <hidden> STATUS Menu ΓòÉΓòÉΓòÉ
  22294.  
  22295. Select which occurence of STATUS you want to display: 
  22296.  
  22297.   SPECIAL-NAMES Paragraph 
  22298.   CRT STATUS Clause 
  22299.   FILE STATUS Clause 
  22300.  
  22301.  
  22302. ΓòÉΓòÉΓòÉ <hidden> TALLYING Menu ΓòÉΓòÉΓòÉ
  22303.  
  22304. Select which occurence of TALLYING you want to display: 
  22305.  
  22306.   INSPECT Statement - Format 1 - TALLYING 
  22307.   INSPECT Statement - Format 3 - TALLYING REPLACING 
  22308.   UNSTRING Statement 
  22309.  
  22310.  
  22311. ΓòÉΓòÉΓòÉ <hidden> TERMINAL Menu ΓòÉΓòÉΓòÉ
  22312.  
  22313. Select which occurence of TERMINAL you want to display: 
  22314.  
  22315.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22316.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22317.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22318.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22319.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22320.  
  22321.  
  22322. ΓòÉΓòÉΓòÉ <hidden> THAN Menu ΓòÉΓòÉΓòÉ
  22323.  
  22324. Select which occurence of THAN you want to display: 
  22325.  
  22326.   Relation Condition Operator 
  22327.   START Statement 
  22328.  
  22329.  
  22330. ΓòÉΓòÉΓòÉ <hidden> THROUGH Menu ΓòÉΓòÉΓòÉ
  22331.  
  22332. Select which occurence of THROUGH you want to display: 
  22333.  
  22334.   ALPHABET Clause 
  22335.   CLASS Clause 
  22336.   RENAMES Clause 
  22337.   VALUE Clause 
  22338.   EVALUATE Statement 
  22339.   PERFORM Statement - Format 1 
  22340.   PERFORM Statement - Format 2 - TIMES 
  22341.   PERFORM Statement - Format 3 - UNTIL 
  22342.   PERFORM Statement - Format 4 - VARYING 
  22343.   SORT Statement 
  22344.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22345.  
  22346.  
  22347. ΓòÉΓòÉΓòÉ <hidden> THRU Menu ΓòÉΓòÉΓòÉ
  22348.  
  22349. Select which occurence of THRU you want to display: 
  22350.  
  22351.   ALPHABET Clause 
  22352.   CLASS Clause 
  22353.   RENAMES Clause 
  22354.   VALUE Clause 
  22355.   EVALUATE Statement 
  22356.   PERFORM Statement - Format 1 
  22357.   PERFORM Statement - Format 2 - TIMES 
  22358.   PERFORM Statement - Format 3 - UNTIL 
  22359.   PERFORM Statement - Format 4 - VARYING 
  22360.   SORT Statement 
  22361.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22362.  
  22363.  
  22364. ΓòÉΓòÉΓòÉ <hidden> TIMES Menu ΓòÉΓòÉΓòÉ
  22365.  
  22366. Select which occurence of TIMES you want to display: 
  22367.  
  22368.   OCCURS Clause - Format 1 - Fixed-Length Tables 
  22369.   OCCURS Clause - Format 2 - Variable-Length Tables 
  22370.   PERFORM Statement - Format 2 - TIMES 
  22371.  
  22372.  
  22373. ΓòÉΓòÉΓòÉ <hidden> TO Menu ΓòÉΓòÉΓòÉ
  22374.  
  22375. Select which occurence of TO you want to display: 
  22376.  
  22377.   ASSIGN Clause 
  22378.   BLOCK CONTAINS Clause 
  22379.   RECORD CONTAINS Clause - Format 2 - Fixed or Variable Length Records 
  22380.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  22381.   EQUAL TO Relational Condition Operator 
  22382.   ADD Statement - Format 1 
  22383.   ADD Statement - Format 2 - GIVING 
  22384.   ADD Statement - Format 3 - CORRESPONDING 
  22385.   ALTER Statement 
  22386.   GO TO Statement - Format 1 - Unconditional 
  22387.   GO TO Statement - Format 2 - Conditional 
  22388.   GO TO Statement - Format 3 - Altered 
  22389.   MOVE Statement - Format 1 
  22390.   MOVE Statement - Format 2 - CORRESPONDING 
  22391.   SEARCH Statement - Format 2 - Binary Search 
  22392.   SET Statement - Format 1 - TO Phrase 
  22393.   SET Statement - Format 3 - ON / OFF Phrase 
  22394.   SET Statement - Format 4 - TRUE Phrase 
  22395.   SET Statement - Format 5 - Pointer Data Item 
  22396.   SET Statement - Format 6 - Procedure-pointer 
  22397.   START Statement 
  22398.  
  22399.  
  22400. ΓòÉΓòÉΓòÉ <hidden> TRUE Menu ΓòÉΓòÉΓòÉ
  22401.  
  22402. Select which occurence of TRUE you want to display: 
  22403.  
  22404.   EVALUATE Statement 
  22405.   SET Statement - Format 4 - TRUE Phrase 
  22406.  
  22407.  
  22408. ΓòÉΓòÉΓòÉ <hidden> TYPE Menu ΓòÉΓòÉΓòÉ
  22409.  
  22410. Select which occurence of TYPE you want to display: 
  22411.  
  22412.   LINKAGE TYPE Clause 
  22413.   CALL Statement - Format 1 - ON OVERFLOW 
  22414.   CALL Statement - Format 2 - ON EXCEPTION 
  22415.   CANCEL Statement 
  22416.  
  22417.  
  22418. ΓòÉΓòÉΓòÉ <hidden> UP Menu ΓòÉΓòÉΓòÉ
  22419.  
  22420. Select which occurence of UP you want to display: 
  22421.  
  22422.   SET Statement - Format 2 - UP BY / DOWN BY 
  22423.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22424.  
  22425.  
  22426. ΓòÉΓòÉΓòÉ <hidden> USING Menu ΓòÉΓòÉΓòÉ
  22427.  
  22428. Select which occurence of USING you want to display: 
  22429.  
  22430.   VALUE Clause 
  22431.   USING Phrase (PROCEDURE DIVISION) 
  22432.   CALL Statement - Format 1 - ON OVERFLOW 
  22433.   CALL Statement - Format 2 - ON EXCEPTION 
  22434.   MERGE Statement 
  22435.   SORT Statement 
  22436.  
  22437.  
  22438. ΓòÉΓòÉΓòÉ <hidden> VALUE Menu ΓòÉΓòÉΓòÉ
  22439.  
  22440. Select which occurence of VALUE you want to display: 
  22441.  
  22442.   VALUE OF Clause 
  22443.   VALUE Clause 
  22444.  
  22445.  
  22446. ΓòÉΓòÉΓòÉ <hidden> VARYING Menu ΓòÉΓòÉΓòÉ
  22447.  
  22448. Select which occurence of VARYING you want to display: 
  22449.  
  22450.   RECORD CONTAINS Clause - Format 3 - Variable Length Records 
  22451.   PERFORM Statement - Format 4 - VARYING 
  22452.   SEARCH Statement - Format 1 - Serial Search 
  22453.  
  22454.  
  22455. ΓòÉΓòÉΓòÉ <hidden> WHEN Menu ΓòÉΓòÉΓòÉ
  22456.  
  22457. Select which occurence of WHEN you want to display: 
  22458.  
  22459.   BLANK WHEN ZERO Clause 
  22460.   EVALUATE Statement 
  22461.   SEARCH Statement - Format 1 - Serial Search 
  22462.   SEARCH Statement - Format 2 - Binary Search 
  22463.  
  22464.  
  22465. ΓòÉΓòÉΓòÉ <hidden> WITH Menu ΓòÉΓòÉΓòÉ
  22466.  
  22467. Select which occurence of WITH you want to display: 
  22468.  
  22469.   WITH DEBUGGING MODE Phrase (SOURCE-COMPUTER Paragraph) 
  22470.   RECORD KEY Clause 
  22471.   ACCEPT Statement - Format 7 - Workstation I/O 
  22472.   CLOSE Statement - Format 1 
  22473.   CLOSE Statement - Format 2 - Tape Files 
  22474.   DISPLAY Statement - Format 3 - Workstation I/O 
  22475.   OPEN Statement - Format 1 - Sequential Files 
  22476.   PERFORM Statement - Format 3 - UNTIL 
  22477.   PERFORM Statement - Format 4 - VARYING 
  22478.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  22479.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  22480.   READ Statement - Format 3 - Random Retrieval 
  22481.   SORT Statement 
  22482.   STRING Statement 
  22483.   UNSTRING Statement 
  22484.  
  22485.  
  22486. ΓòÉΓòÉΓòÉ <hidden> ZERO Menu ΓòÉΓòÉΓòÉ
  22487.  
  22488. Select which occurence of ZERO you want to display: 
  22489.  
  22490.   BLANK WHEN ZERO Clause 
  22491.   Sign Condition Operator 
  22492.  
  22493.  
  22494. ΓòÉΓòÉΓòÉ <hidden> > (GREATER THAN) Menu ΓòÉΓòÉΓòÉ
  22495.  
  22496. Select which occurence of > (GREATER THAN) you want to display: 
  22497.  
  22498.   > (GREATER THAN) Relational Condition Operator 
  22499.   START Statement 
  22500.  
  22501.  
  22502. ΓòÉΓòÉΓòÉ <hidden> < (LESS THAN) Menu ΓòÉΓòÉΓòÉ
  22503.  
  22504. Select which occurence of < (LESS THAN) you want to display: 
  22505.  
  22506.   < (LESS THAN) Relational Condition Operator 
  22507.   START Statement 
  22508.  
  22509.  
  22510. ΓòÉΓòÉΓòÉ <hidden> = (EQUAL TO) Menu ΓòÉΓòÉΓòÉ
  22511.  
  22512. Select which occurence of = (EQUAL TO) you want to display: 
  22513.  
  22514.   EQUAL TO Relational Condition Operator 
  22515.   COMPUTE Statement 
  22516.   SEARCH Statement - Format 2 - Binary Search 
  22517.   START Statement 
  22518.  
  22519.  
  22520. ΓòÉΓòÉΓòÉ <hidden> ADDRESS Menu ΓòÉΓòÉΓòÉ
  22521.  
  22522. Select which occurence of ADDRESS you want to display: 
  22523.  
  22524.   ADDRESS OF Statement 
  22525.   ADDRESS OF Special Register 
  22526.   SET Statement - Format 5 - Pointer Data Item 
  22527.  
  22528.  
  22529. ΓòÉΓòÉΓòÉ <hidden> EXTERNALY-DESCRIBED-KEY Menu ΓòÉΓòÉΓòÉ
  22530.  
  22531. Select which occurence of EXTERNALLY-DESCRIBED-KEY you want to display: 
  22532.  
  22533.   RECORD KEY Clause 
  22534.  
  22535.  
  22536. ΓòÉΓòÉΓòÉ <hidden> FORMAT Menu ΓòÉΓòÉΓòÉ
  22537.  
  22538. Select which occurence of FORMAT you want to display: 
  22539.  
  22540.   DELETE Statement 
  22541.   READ Statement - Format 1 - Sequential Retrieval/Sequential Access 
  22542.   READ Statement - Format 2 - Sequential Retrieval/Dynamic Access 
  22543.   READ Statement - Format 3 - Random Retrieval 
  22544.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22545.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22546.   REWRITE Statement - Format 1 
  22547.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22548.   WRITE Statement - Format 2 - Indexed and Relative Files 
  22549.   WRITE Statement - Format 3 - FORMATEFILE 
  22550.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22551.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22552.  
  22553.  
  22554. ΓòÉΓòÉΓòÉ <hidden> INDIC Menu ΓòÉΓòÉΓòÉ
  22555.  
  22556. Select which occurence of INDIC you want to display: 
  22557.  
  22558.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22559.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22560.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22561.   WRITE Statement - Format 3 - FORMATEFILE 
  22562.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22563.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22564.  
  22565.  
  22566. ΓòÉΓòÉΓòÉ <hidden> INDICATOR Menu ΓòÉΓòÉΓòÉ
  22567.  
  22568. Select which occurence of INDICATOR you want to display: 
  22569.  
  22570.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22571.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22572.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22573.   WRITE Statement - Format 3 - FORMATEFILE 
  22574.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22575.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22576.  
  22577.  
  22578. ΓòÉΓòÉΓòÉ <hidden> INDICATORS Menu ΓòÉΓòÉΓòÉ
  22579.  
  22580. Select which occurence of INDICATORS you want to display: 
  22581.  
  22582.   READ Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22583.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22584.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22585.   WRITE Statement - Format 3 - FORMATEFILE 
  22586.   WRITE Statement - Format 4 - TRANSACTION (Nonsubfile) 
  22587.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22588.  
  22589.  
  22590. ΓòÉΓòÉΓòÉ <hidden> NULL Menu ΓòÉΓòÉΓòÉ
  22591.  
  22592. Select which occurence of NULL you want to display: 
  22593.  
  22594.   VALUE Clause 
  22595.   Figurative Constant - NULL 
  22596.   SET Statement - Format 5 - Pointer Data Item 
  22597.   SET Statement - Format 6 - Procedure-pointer 
  22598.  
  22599.  
  22600. ΓòÉΓòÉΓòÉ <hidden> NULLS Menu ΓòÉΓòÉΓòÉ
  22601.  
  22602. Select which occurence of NULLS you want to display: 
  22603.  
  22604.   VALUE Clause 
  22605.   Figurative Constant - NULLS 
  22606.   SET Statement - Format 5 - Pointer Data Item 
  22607.   SET Statement - Format 6 - Procedure-pointer 
  22608.  
  22609.  
  22610. ΓòÉΓòÉΓòÉ <hidden> SUBFILE Menu ΓòÉΓòÉΓòÉ
  22611.  
  22612. Select which occurence of NULLS you want to display: 
  22613.  
  22614.   READ Statement - Format 5 - TRANSACTION (Subfile) 
  22615.   REWRITE Statement - Format 2 - TRANSACTION (Subfile) 
  22616.   WRITE Statement - Format 5 - TRANSACTION (Subfile) 
  22617.  
  22618.  
  22619. ΓòÉΓòÉΓòÉ <hidden> BACKGROUND-COLOR Menu ΓòÉΓòÉΓòÉ
  22620.  
  22621. Select which occurence of BACKGROUND-COLOR you want to display: 
  22622.  
  22623.   ACCEPT Statement - Format 7 - Workstation I/O 
  22624.   DISPLAY Statement - Format 3 - Workstation I/O 
  22625.  
  22626.  
  22627. ΓòÉΓòÉΓòÉ <hidden> BACKGROUND-COLOUR Menu ΓòÉΓòÉΓòÉ
  22628.  
  22629. Select which occurence of BACKGROUND-COLOUR you want to display: 
  22630.  
  22631.   ACCEPT Statement - Format 7 - Workstation I/O 
  22632.   DISPLAY Statement - Format 3 - Workstation I/O 
  22633.  
  22634.  
  22635. ΓòÉΓòÉΓòÉ <hidden> BEEP Menu ΓòÉΓòÉΓòÉ
  22636.  
  22637. Select which occurence of BEEP you want to display: 
  22638.  
  22639.   ACCEPT Statement - Format 7 - Workstation I/O 
  22640.   DISPLAY Statement - Format 3 - Workstation I/O 
  22641.  
  22642.  
  22643. ΓòÉΓòÉΓòÉ <hidden> BELL Menu ΓòÉΓòÉΓòÉ
  22644.  
  22645. Select which occurence of BELL you want to display: 
  22646.  
  22647.   ACCEPT Statement - Format 7 - Workstation I/O 
  22648.   DISPLAY Statement - Format 3 - Workstation I/O 
  22649.  
  22650.  
  22651. ΓòÉΓòÉΓòÉ <hidden> BLINK Menu ΓòÉΓòÉΓòÉ
  22652.  
  22653. Select which occurence of BLINK you want to display: 
  22654.  
  22655.   ACCEPT Statement - Format 7 - Workstation I/O 
  22656.   DISPLAY Statement - Format 3 - Workstation I/O 
  22657.  
  22658.  
  22659. ΓòÉΓòÉΓòÉ <hidden> COL Menu ΓòÉΓòÉΓòÉ
  22660.  
  22661. Select which occurence of COL you want to display: 
  22662.  
  22663.   ACCEPT Statement - Format 7 - Workstation I/O 
  22664.   DISPLAY Statement - Format 3 - Workstation I/O 
  22665.  
  22666.  
  22667. ΓòÉΓòÉΓòÉ <hidden> CRT Menu ΓòÉΓòÉΓòÉ
  22668.  
  22669. Select which occurence of CRT you want to display: 
  22670.  
  22671.   ACCEPT Statement - Format 7 - Workstation I/O 
  22672.   DISPLAY Statement - Format 3 - Workstation I/O 
  22673.   CONSOLE Clause 
  22674.   CRT STATUS Clause 
  22675.  
  22676.  
  22677. ΓòÉΓòÉΓòÉ <hidden> FOREGROUND-COLOR Menu ΓòÉΓòÉΓòÉ
  22678.  
  22679. Select which occurence of FOREGROUND-COLOR you want to display: 
  22680.  
  22681.   ACCEPT Statement - Format 7 - Workstation I/O 
  22682.   DISPLAY Statement - Format 3 - Workstation I/O 
  22683.  
  22684.  
  22685. ΓòÉΓòÉΓòÉ <hidden> FOREGROUND-COLOUR Menu ΓòÉΓòÉΓòÉ
  22686.  
  22687. Select which occurence of FOREGROUND-COLOUR you want to display: 
  22688.  
  22689.   ACCEPT Statement - Format 7 - Workstation I/O 
  22690.   DISPLAY Statement - Format 3 - Workstation I/O 
  22691.  
  22692.  
  22693. ΓòÉΓòÉΓòÉ <hidden> HIGHLIGHT Menu ΓòÉΓòÉΓòÉ
  22694.  
  22695. Select which occurence of HIGHLIGHT you want to display: 
  22696.  
  22697.   ACCEPT Statement - Format 7 - Workstation I/O 
  22698.   DISPLAY Statement - Format 3 - Workstation I/O 
  22699.  
  22700.  
  22701. ΓòÉΓòÉΓòÉ <hidden> REVERSE-VIDEO Menu ΓòÉΓòÉΓòÉ
  22702.  
  22703. Select which occurence of REVERSE-VIDEO you want to display: 
  22704.  
  22705.   ACCEPT Statement - Format 7 - Workstation I/O 
  22706.   DISPLAY Statement - Format 3 - Workstation I/O 
  22707.  
  22708.  
  22709. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22710.  
  22711. Represents one of the following, depending on the context: 
  22712.  
  22713.   The numeric value zero (0) 
  22714.   One or more occurrences of the nonnumeric character zero (0) 
  22715.  
  22716.  -----IBM Extension----- 
  22717.  
  22718.   The Boolean value B"0" 
  22719.  
  22720.  ---End of IBM Extension--- 
  22721.  
  22722.  
  22723. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22724.  
  22725. Represents one or more blanks or spaces; treated as a nonnumeric literal. 
  22726.  
  22727.  
  22728. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22729.  
  22730. Represents one or more occurrences of the character that has the highest 
  22731. ordinal position in the collating sequence used. For the NATIVE and EBCDIC 
  22732. collating sequences, the character is X'FF'; for the STANDARD-1 and STANDARD-2 
  22733. collating sequences, the character is X'07'; for other collating sequences, the 
  22734. actual character used depends on the collating sequence. HIGH-VALUE is treated 
  22735. as a nonnumeric literal. 
  22736.  
  22737.  
  22738. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22739.  
  22740. Represents one or more occurrences of the character that has the lowest ordinal 
  22741. position in the collating sequence used. For the NATIVE, EBCDIC, STANDARD-1, 
  22742. and STANDARD-2 collating sequences, the character is X'00'; for other collating 
  22743. sequences, the actual character used depends on the collating sequence. 
  22744. LOW-VALUE is treated as a nonnumeric literal. 
  22745.  
  22746.  
  22747. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22748.  
  22749. Represents one or more occurrences of the quotation mark character and must be 
  22750. nonnumeric. QUOTE, or QUOTES cannot be used in place of a quotation mark or an 
  22751. apostrophe to enclose a nonnumeric literal. 
  22752.  
  22753. -----IBM Extension----- 
  22754.  
  22755. When APOST is specified as a compiler option, the figurative constant QUOTE has 
  22756. the EBCDIC value of an apostrophe. 
  22757.  
  22758. ---End of IBM Extension--- 
  22759.  
  22760.  
  22761. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22762.  
  22763. Represents one or more occurrences of the string of characters comprising the 
  22764. literal. The literal must be a nonnumeric literal or a figurative constant 
  22765. other than the ALL literal. 
  22766.  
  22767. When a figurative constant other than ALL literal is used, the word ALL is 
  22768. redundant and is used for readability only. The figurative constant ALL literal 
  22769. must not be used with the INSPECT, STOP, or STRING statements. 
  22770.  
  22771. Note:   The figurative constant ALL literal, when associated with a numeric or 
  22772. numeric-edited item and when the length of the literal is greater than one, is 
  22773. an obsolete element and is to be deleted from the next revision of the ANSI 
  22774. Standard. 
  22775.  
  22776. -----IBM Extension----- 
  22777.  
  22778. The literal used in an ALL literal can be a Boolean literal.. 
  22779.  
  22780. ---End of IBM Extension--- 
  22781.  
  22782.  
  22783. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22784.  
  22785. -----IBM Extension----- 
  22786.  
  22787. Represents a value used to indicate that a data item defined with the USAGE IS 
  22788. POINTER clause, USAGE IS PROCEDURE-POINTER clause, ADDRESS OF phrase, or 
  22789. ADDRESS OF special register does not contain a valid address. NULL can be used 
  22790. only where explicitly allowed in the syntax format. 
  22791.  
  22792. In the ILE COBOL/400 language, a value of NULL is undefined. 
  22793.  
  22794. ---End of IBM Extension--- 
  22795.  
  22796.  
  22797. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22798.  
  22799. This register is syntax checked only. 
  22800.  
  22801.  
  22802. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22803.  
  22804. The opening delimiter for hexadecimal notation of a nonnumeric literal. (If the 
  22805. compiler option *APOST or the PROCESS statement option APOST is specified, the 
  22806. opening delimiter is X'.) 
  22807.  
  22808.  
  22809. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22810.  
  22811. The closing delimiter for hexadecimal notation of a nonnumeric literal. (If the 
  22812. compiler option *APOST or the PROCESS statement option APOST is specified, the 
  22813. closing delimiter is '.) 
  22814.  
  22815.  
  22816. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22817.  
  22818. Hexadecimal digits are characters that range from 0 to 9, a to f, and A to F, 
  22819. inclusive. Two hexadecimal digits represent a single character, so an even 
  22820. number of hexadecimal digits must be specified in each case. 
  22821.  
  22822.  
  22823. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22824.  
  22825. A space can immediately precede or follow any separator except: 
  22826.  
  22827.   The opening pseudo-text delimiter (where the preceding space is required). 
  22828.  
  22829.   Within quotation marks (or apostrophes if the APOST option is in effect). 
  22830.    Spaces between quotation marks are considered part of the nonnumeric 
  22831.    literal; they are not considered separators. 
  22832.  
  22833.  
  22834. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22835.  
  22836. A separator period, comma, or semicolon is composed of a period, comma, or 
  22837. semicolon followed by a space. 
  22838.  
  22839. The separator period must be used only to indicate the end of a sentence, or as 
  22840. shown in formats. The separator comma and separator semicolon may be used 
  22841. anywhere the separator space is used. 
  22842.  
  22843.   In the Identification Division, separator commas and separator semicolons 
  22844.    can be used in the comment-entries. Each paragraph must end with a separator 
  22845.    period. 
  22846.  
  22847.   In the Environment Division, separator commas or separator semicolons may 
  22848.    separate clauses and operands within clauses. The SOURCE-COMPUTER, 
  22849.    OBJECT-COMPUTER, SPECIAL-NAMES, and I-O-CONTROL paragraphs must each end 
  22850.    with a separator period. In the FILE-CONTROL paragraph, each File-Control 
  22851.    entry must end with a separator period. 
  22852.  
  22853.   In the Data Division, separator commas or separator semicolons may separate 
  22854.    clauses and operands within clauses. File (FD), Sort/Merge file (SD), and 
  22855.    data description entries must each end with a separator period. 
  22856.  
  22857.   In the Procedure Division, separator commas or separator semicolons may 
  22858.    separate statements within a sentence, and operands within a statement. Each 
  22859.    sentence and each procedure must end with a separator period. 
  22860.  
  22861.  
  22862. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22863.  
  22864. Except in pseudo-text, they must appear as balanced pairs of left and right 
  22865. parentheses. They delimit subscripts, reference modification, arithmetic 
  22866. expressions, and conditions. 
  22867.  
  22868.  
  22869. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22870.  
  22871. An opening quotation mark must be immediately preceded by a space or a left 
  22872. parenthesis. A closing quotation mark must be immediately followed by a 
  22873. separator (space, comma, semicolon, period, or right parenthesis). Quotation 
  22874. marks must appear as balanced pairs. They delimit nonnumeric literals, except 
  22875. when the literal is continued (see Continuation Lines). 
  22876.  
  22877. -----IBM Extension----- 
  22878.  
  22879. Under the *APOST compiler option, or the APOST PROCESS option, an apostrophe 
  22880. can be used in place of a quotation mark. 
  22881.  
  22882. ---End of IBM Extension--- 
  22883.  
  22884.  
  22885. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22886.  
  22887. An opening pseudo-text delimiter must be immediately preceded by a space. A 
  22888. closing pseudo-text delimiter must be immediately followed by a separator 
  22889. (space, comma, semicolon, or period). Pseudo-text delimiters must appear as 
  22890. balanced pairs. They delimit pseudo-text.  (See COPY Statement.) 
  22891.  
  22892.  
  22893. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22894.  
  22895. The colon is a separator, and is required when shown in general formats. 
  22896.  
  22897.  
  22898. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22899.  
  22900. -----IBM Extension----- 
  22901.  
  22902. B" is a separator when used to describe a Boolean literal. The B must 
  22903. immediately precede the quotation mark. 
  22904.  
  22905. ---End of IBM Extension--- 
  22906.  
  22907.  
  22908. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22909.  
  22910. -----IBM Extension----- 
  22911.  
  22912. X" is a separator when used to describe a hexadecimal nonnumeric literal. The X 
  22913. must immediately precede the quotation mark. 
  22914.  
  22915. ---End of IBM Extension--- 
  22916.  
  22917.  
  22918. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22919.  
  22920. An entry is a series of clauses ending with a separator period. 
  22921.  
  22922.  
  22923. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22924.  
  22925. A clause is an ordered set of consecutive COBOL character-strings that 
  22926. specifies an attribute of an entry. 
  22927.  
  22928.  
  22929. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22930.  
  22931. A sentence is a sequence of one or more statements, ending with a separator 
  22932. period. 
  22933.  
  22934.  
  22935. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22936.  
  22937. A statement is a valid combination of a COBOL verb and its operands. It 
  22938. specifies an action to be taken by the object program. For descriptions of the 
  22939. different types of statements, see: 
  22940.  
  22941.   Imperative Statements 
  22942.   Conditional Statements 
  22943.   Delimited Scope Statements 
  22944.   Compiler-Directing Statements. 
  22945.  
  22946.  
  22947. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22948.  
  22949. Each clause or statement in the program can be subdivided into smaller units 
  22950. called phrases. 
  22951.  
  22952.  
  22953. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22954.  
  22955. Can be a record-name. 
  22956.  
  22957.  
  22958. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22959.  
  22960. Must be identified by an FD or SD entry in the Data Division. 
  22961.  
  22962. File-name-1 must be uniquely identifiable. 
  22963.  
  22964.  
  22965. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22966.  
  22967. Must be qualified each time it is referenced if more than one file description 
  22968. entry containing a LINAGE clause has been specified in the source program. 
  22969.  
  22970.  
  22971. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22972.  
  22973. Must be identified by an FD entry in the Data Division. 
  22974.  
  22975. File-name-2 must be unique within this program. 
  22976.  
  22977.  
  22978. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  22979.  
  22980. Can be defined in the Data Division or in the SPECIAL-NAMES paragraph within 
  22981. the Configuration Section of the Environment Division. If condition-name is 
  22982. defined in the Configuration Section, it can be referred to in the program 
  22983. containing the Configuration Section or in a nested program. If the 
  22984. condition-name is defined in the Data Division, it can be referenced according 
  22985. to the scoping rules for global and local names (see Global and Local Names). 
  22986.  
  22987. If explicitly referenced, a condition-name must be unique or be made unique 
  22988. through qualification and/or subscripting except when the scope of names 
  22989. conventions by themselves ensure uniqueness of reference. 
  22990.  
  22991. If qualification is used to make a condition-name unique, the associated 
  22992. conditional variable may be used as the first qualifier. If qualification is 
  22993. used, the hierarchy of names associated with the conditional variable itself 
  22994. must be used to make the condition-name unique. 
  22995.  
  22996. If references to a conditional variable require subscripting, reference to any 
  22997. of its condition-names also requires the same combination of subscripting. 
  22998.  
  22999. The format and restrictions on the combined use of qualification and 
  23000. subscripting of condition-name is exactly that of "identifier" except that 
  23001. data-name-1 is replaced by condition-name-1. 
  23002.  
  23003. In the general format of the chapters that follow, "condition-name" refers to a 
  23004. condition-name qualified or subscripted, as necessary. 
  23005.  
  23006.  
  23007. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23008.  
  23009. Can be a record-name. 
  23010.  
  23011.  
  23012. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23013.  
  23014. Must be identified by an FD or SD entry in the Data Division. 
  23015.  
  23016. File-name-1 must be unique within this program. 
  23017.  
  23018.  
  23019. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23020.  
  23021. Must be subordinate to a data description entry which contains an OCCURS 
  23022. clause. 
  23023.  
  23024.  
  23025. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23026.  
  23027. Must contain an OCCURS clause or must be subordinate to a data description 
  23028. entry which contains an OCCURS clause. 
  23029.  
  23030.  
  23031. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23032.  
  23033. Can be signed. If signed, it must be positive. 
  23034.  
  23035.  
  23036. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23037.  
  23038. Must be a numeric elementary item representing an integer. 
  23039.  
  23040. Data-name-3 can be qualified. 
  23041.  
  23042.  
  23043. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23044.  
  23045. Corresponds to a data description entry in the hierarchy of the table being 
  23046. referenced which contains an INDEXED BY phrase specifying the index-name. 
  23047.  
  23048.  
  23049. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23050.  
  23051. Must be an unsigned integer. 
  23052.  
  23053.  
  23054. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23055.  
  23056. Must refer to a data item whose implicit or explicit usage is DISPLAY. 
  23057. Data-name-1 can be qualified or subscripted. 
  23058.  
  23059. -----IBM Extension----- 
  23060.  
  23061. Must not refer to a Boolean data item. 
  23062.  
  23063. ---End of IBM Extension--- 
  23064.  
  23065.  
  23066. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23067.  
  23068. Must be an arithmetic expression. The evaluation of the 
  23069. leftmost-character-position must result in a positive nonzero integer that is 
  23070. less than or equal to the number of characters in the data item referenced by 
  23071. data-name-1. 
  23072.  
  23073.  
  23074. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23075.  
  23076. Must be an arithmetic expression. 
  23077.  
  23078. The sum of leftmost-character-position and length minus the value one must be 
  23079. less than or equal to the number of characters in data-name-1. If length is 
  23080. omitted, then the length used will be equal to the number of characters in 
  23081. data-name-1 plus one minus the leftmost-character-position. The evaluation of 
  23082. length must result in a positive nonzero integer. 
  23083.  
  23084. Note:   If the result of an arithmetic expression is something other than an 
  23085. integer, truncation occurs, resulting in an integer. 
  23086.  
  23087.  
  23088. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23089.  
  23090. A user-defined word that must be identical to a program-name declared in a 
  23091. preceding PROGRAM-ID paragraph. Refer to program-name in PROGRAM-ID Paragraph 
  23092. for the rules for formation of the program-name. 
  23093.  
  23094.  
  23095. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23096.  
  23097. -----IBM Extension----- Must be a nonnumeric literal. Refer to literal in 
  23098. PROGRAM-ID Paragraph for the rules for formation of the literal. 
  23099.  
  23100. ---End of IBM Extension--- 
  23101.  
  23102.  
  23103. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23104.  
  23105. Sibling programs are those that are directly contained by the same program. 
  23106.  
  23107.  
  23108. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23109.  
  23110. Name of the author of the program. It is syntax checked only. 
  23111.  
  23112.  
  23113. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23114.  
  23115. Name of the company or location. It is syntax checked only. 
  23116.  
  23117.  
  23118. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23119.  
  23120. Date the program was written. It is syntax checked only. 
  23121.  
  23122.  
  23123. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23124.  
  23125. Date the program was compiled. 
  23126.  
  23127.  
  23128. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23129.  
  23130. Level of confidentiality of the program. 
  23131.  
  23132.  
  23133. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23134.  
  23135. A system-name. The suggested computer-name is: 
  23136.  
  23137. IBM-AS400.
  23138.  
  23139.  
  23140. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23141.  
  23142. A system-name, which is syntax checked but has no effect on the execution of 
  23143. the program. The suggested computer-name is: 
  23144.  
  23145. IBM-AS400.
  23146.  
  23147.  
  23148. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23149.  
  23150. Expressed in words, characters, or modules. 
  23151.  
  23152.  
  23153. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23154.  
  23155. The collating sequence. 
  23156.  
  23157.  
  23158. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23159.  
  23160. Must be an integer varying in value from 1 through 49. 
  23161.  
  23162.  
  23163. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23164.  
  23165. Specifies the ASCII character set. 
  23166.  
  23167.  
  23168. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23169.  
  23170. Specifies the International Reference Version of the ISO 7-bit code defined in 
  23171. International Standard 646, 7-bit Coded Character Set for Information 
  23172. Processing Interchange. 
  23173.  
  23174.  
  23175. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23176.  
  23177. Specifies the EBCDIC character set. 
  23178.  
  23179.  
  23180. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23181.  
  23182. Specifies the EBCDIC character set. 
  23183.  
  23184.  
  23185. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23186.  
  23187. Use the SRTSEQ and LANGID specifications in the compiler options (or implied 
  23188. defaults) for alternate collating sequence aspects of the alphabet-name. An 
  23189. alphabet-name associated with NLSSORT can be referred to only in the PROGRAM 
  23190. COLLATING SEQUENCE clause or in the COLLATING SEQUENCE phrase of the SORT and 
  23191. MERGE statements. 
  23192.  
  23193.  
  23194. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23195.  
  23196. -----IBM Extension----- 
  23197.  
  23198. Must be described in the WORKING-STORAGE SECTION and must be a 6-byte 
  23199. alphanumeric field or a 6-byte unsigned zoned integer. If data-name-2 is 
  23200. referenced from a nested program, it must be defined as global in the outermost 
  23201. program. 
  23202.  
  23203. ---End of IBM Extension--- 
  23204.  
  23205.  
  23206. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23207.  
  23208. -----IBM Extension----- 
  23209.  
  23210. Linkage to a program object (*PGM) is generated. This is synonymous to an 
  23211. environment-name-3 of PGM. 
  23212.  
  23213. ---End of IBM Extension--- 
  23214.  
  23215.  
  23216. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23217.  
  23218. -----IBM Extension----- 
  23219.  
  23220. Linkage to an ILE procedure is generated. This is synonymous to an 
  23221. environment-name-3 of PRC. 
  23222.  
  23223. ---End of IBM Extension--- 
  23224.  
  23225.  
  23226. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23227.  
  23228. -----IBM Extension----- 
  23229.  
  23230. Literal-7 is the name of the program object or procedure. Literal-7 can contain 
  23231. an extended-name. It can be at most 10 characters long for program names and 
  23232. 256 characters long for procedure names. Literal-7 is affected by the 
  23233. OPTION(*MONOPRC) parameter. When *MONOPRC is specified, lowercase characters 
  23234. are converted to uppercase and the rules for formation of a program-name are 
  23235. followed. See program-name in PROGRAM-ID Paragraph for details. 
  23236.  
  23237. ---End of IBM Extension--- 
  23238.  
  23239.  
  23240. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23241.  
  23242. May be specified only for sequential and relative files opened in the input, 
  23243. I-O or extend mode. You must specify SELECT OPTIONAL for such input files that 
  23244. are not necessarily present each time the object program is executed. 
  23245.  
  23246.  
  23247. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23248.  
  23249. Must be identified by an FD or SD entry in the Data Division. A file-name must 
  23250. conform to the rules for a COBOL user-defined name, must contain at least one 
  23251. alphabetic character, and must be unique within this program. 
  23252.  
  23253.  
  23254. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23255.  
  23256. Must be defined in the Data Division as an alphanumeric one-character data 
  23257. item, and must not be defined in the File Section. Data-name-6 can be 
  23258. qualified. 
  23259.  
  23260.  
  23261. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23262.  
  23263. Must be a 1-character nonnumeric literal. 
  23264.  
  23265.  
  23266. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23267.  
  23268. If STANDARD-1 is specified, the external medium must be a magnetic tape file. 
  23269.  
  23270.  
  23271. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23272.  
  23273. Can be any COBOL word. 
  23274.  
  23275.  
  23276. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23277.  
  23278. Records in the file are accessed in the sequence established when the file was 
  23279. created or extended (arrival sequence). 
  23280.  
  23281.  
  23282. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23283.  
  23284. Records in the file are accessed in the ascending sequence of relative record 
  23285. numbers of existing records in the file. 
  23286.  
  23287.  
  23288. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23289.  
  23290. Records in the file are accessed in the sequence of ascending record key values 
  23291. according to the collating sequence of the file. 
  23292.  
  23293. -----IBM Extension----- 
  23294.  
  23295. When using an externally described file, if the DDS keyword DESCEND is used 
  23296. when the field is specified as a key field, the records in the file are 
  23297. accessed in the sequence of descending record key values within the index. 
  23298. Either the DESCEND keyword, or the ASCEND keyword (if DESCEND is not specified) 
  23299. appears under the heading RETRIEVAL in a comment table in the COBOL source 
  23300. program listing. 
  23301.  
  23302. ---End of IBM Extension--- 
  23303.  
  23304.  
  23305. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23306.  
  23307. The value placed in a relative key data item specifies the record to be 
  23308. accessed. 
  23309.  
  23310.  
  23311. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23312.  
  23313. The value placed in a record key data item for the current key of reference 
  23314. specifies the record to be accessed. 
  23315.  
  23316.  
  23317. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23318.  
  23319. Records in the file may be accessed sequentially or randomly, depending on the 
  23320. form of the specific input-output request. 
  23321.  
  23322.  
  23323. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23324.  
  23325. Records in the file may be accessed sequentially or randomly, depending on the 
  23326. form of the specific input-output request. 
  23327.  
  23328.  
  23329. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23330.  
  23331. The name of a sequentially organized file. The file named in the RERUN clause 
  23332. must be a file defined in the same program as the I-O-CONTROL paragraph, even 
  23333. if the file is defined as GLOBAL. 
  23334.  
  23335.  
  23336. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23337.  
  23338. This name can be any user defined word. The file named in the RERUN clause must 
  23339. be a file defined in the same program as the I-O-CONTROL paragraph, even if the 
  23340. file is defined as GLOBAL. 
  23341.  
  23342.  
  23343. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23344.  
  23345. A checkpoint record is to be written for every integer-1 record in file-name-2 
  23346. that is processed. 
  23347.  
  23348. When multiple integer-1 RECORDS phrases are specified, no two of them may 
  23349. specify the same file-name-2. 
  23350.  
  23351. Integer-1 must be an unsigned integer.  It specifies the number of records to 
  23352. be processed before the RERUN information is written. 
  23353.  
  23354.  
  23355. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23356.  
  23357. No two multiple END OF REEL or END OF UNIT phrases can specify the same 
  23358. file-name-2. The definition of UNIT is determined by each assignment-name-1. 
  23359.  
  23360.  
  23361. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23362.  
  23363. Only one RERUN clause containing the CLOCK-UNITS phrase can be specified. 
  23364.  
  23365.  
  23366. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23367.  
  23368. Must be specified in the FILE-CONTROL paragraph of the same program as the 
  23369. I-O-CONTROL paragraph. They cannot reference an external file connector. 
  23370.  
  23371.  
  23372. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23373.  
  23374. Must be an unsigned integer.  It specifies the relative position of the file on 
  23375. the tape. 
  23376.  
  23377.  
  23378. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23379.  
  23380. Names the files that share the tape. 
  23381.  
  23382.  
  23383. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23384.  
  23385. Represents the highest level of organization in the File Section. It provides 
  23386. information about the physical structure and identification of a file, and 
  23387. gives the record-name(s) associated with that file. For the format and the 
  23388. clauses required in a file description entry, see Data Division-File and Sort 
  23389. Description Entries. 
  23390.  
  23391.  
  23392. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23393.  
  23394. A set of data description entries that describe the particular record(s) 
  23395. contained within a particular file. For the format and the clauses required in 
  23396. a record description entry, see Data Division-Data Description Entry. 
  23397.  
  23398. More than one record description entry may be specified; each is an alternative 
  23399. description of the same record storage area. 
  23400.  
  23401. Data areas described in the File Section are not available for processing 
  23402. unless the file containing the data area is open. 
  23403.  
  23404.  
  23405. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23406.  
  23407. Independent items in the Working-Storage Section that bear no hierarchic 
  23408. relationship to one another need not be grouped into records, provided that 
  23409. they do not need to be further subdivided. Each is defined in a separate 
  23410. data-item description entry that begins with either the level number 77 or 01. 
  23411. For the format and the clauses required in a data-item description entry, see 
  23412. Data Division-Data Description Entry. 
  23413.  
  23414.  
  23415. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23416.  
  23417. Must be nonzero unsigned integers. They specify the number of characters or 
  23418. records. 
  23419.  
  23420.  
  23421. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23422.  
  23423. Must be an unsigned integer that specifies the number of character positions 
  23424. contained in each record in the file. 
  23425.  
  23426.  
  23427. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23428.  
  23429. Specifies the minimum number of character positions to be contained in any 
  23430. record of the file. If integer-4 is not specified, the minimum number of 
  23431. character positions to be contained in any record of the file is equal to the 
  23432. smallest number of character positions described for a record in that file. If 
  23433. specified, integer-4 must be nonzero and less than integer-5. 
  23434.  
  23435.  
  23436. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23437.  
  23438. Specifies the maximum number of character positions in any record of the file. 
  23439. If integer-5 is not specified, the maximum number of character positions in any 
  23440. record of the file is equal to the greatest number of character positions 
  23441. described for a record in that file. 
  23442.  
  23443.  
  23444. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23445.  
  23446. Must be an elementary unsigned integer. 
  23447.  
  23448. If data-name-1 is specified: 
  23449.  
  23450.   The number of character positions in the record must be placed into the data 
  23451.    item referenced by data-name-1 before any RELEASE, REWRITE, or WRITE 
  23452.    statement is executed for the file. 
  23453.  
  23454.   The execution of a DELETE, RELEASE, REWRITE, START, or WRITE statement or 
  23455.    the unsuccessful execution of a READ or RETURN statement does not alter the 
  23456.    contents of the data item referenced by data-name-1. 
  23457.  
  23458.   After the successful execution of a READ or RETURN statement for the file, 
  23459.    the contents of the data item referenced by data-name-1 indicate the number 
  23460.    of character positions in the record just read. 
  23461.  
  23462.  
  23463. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23464.  
  23465. Must be unsigned integers. Integer-6 specifies the size of the smallest data 
  23466. record, and integer-7 specifies the size of the largest data record. 
  23467.  
  23468.  
  23469. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23470.  
  23471. Labels conforming to system specifications exist for this file. 
  23472.  
  23473.  
  23474. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23475.  
  23476. No labels exist for this file. 
  23477.  
  23478.  
  23479. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23480.  
  23481. Must follow the rules for formation of a user-defined word. 
  23482.  
  23483.  
  23484. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23485.  
  23486. Can be any literal. 
  23487.  
  23488.  
  23489. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23490.  
  23491. Should be qualified when necessary, but cannot be subscripted. It must be 
  23492. described in the Working-Storage Section, and cannot be described with the 
  23493. USAGE IS INDEX clause. 
  23494.  
  23495.  
  23496. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23497.  
  23498. The names of record description entries associated with this file. 
  23499.  
  23500.  
  23501. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23502.  
  23503. The number of lines that can be written and/or spaced on this logical page. The 
  23504. area of the page that these lines represent is called the page body. The value 
  23505. must be greater than zero. 
  23506.  
  23507.  
  23508. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23509.  
  23510. Integer-9 or the value in data-name-4 specifies the first line number of the 
  23511. footing area within the page body. The footing line number must be greater than 
  23512. zero, and not greater than the last line of the page body. The footing area 
  23513. extends between those two lines. 
  23514.  
  23515.  
  23516. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23517.  
  23518. Integer-10 or the value in data-name-5 specifies the number of lines in the top 
  23519. margin of the logical page. The value may be zero. 
  23520.  
  23521.  
  23522. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23523.  
  23524. Integer-11 or the value in data-name-6 specifies the number of lines in the 
  23525. bottom margin of the logical page. The value may be zero. 
  23526.  
  23527.  
  23528. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23529.  
  23530. -----IBM Extension----- 
  23531.  
  23532. Can refer to an elementary item, a group item, or an index-name. 
  23533.  
  23534. ---End of IBM Extension--- 
  23535.  
  23536.  
  23537. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23538.  
  23539. -----IBM Extension----- 
  23540.  
  23541. Specifies the difference in length between the new and existing items. 
  23542.  
  23543. It can be signed. 
  23544.  
  23545. If a blank or a + precedes the integer, the new item is longer. If a - precedes 
  23546. the integer, the new item is shorter. 
  23547.  
  23548. You cannot use the LIKE clause to: 
  23549.  
  23550.   Change the length of an edited item 
  23551.  
  23552.   Change the length of an index, pointer, or procedure-pointer item 
  23553.  
  23554.   Change the number of decimal places in a data item 
  23555.  Note that an item whose attributes include BLANK WHEN ZERO is treated as an 
  23556.  edited item. 
  23557.  
  23558.  ---End of IBM Extension--- 
  23559.  
  23560.  
  23561. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23562.  
  23563. Specifies the exact number of occurrences, and must be greater than zero. 
  23564.  
  23565. In the ILE COBOL/400 language, integer-2 must be between 1 and 16 711 568 
  23566. bytes. 
  23567.  
  23568.  
  23569. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23570.  
  23571. Must be the name of the subject entry, or the name of an entry subordinate to 
  23572. the subject entry. 
  23573.  
  23574. If data-name-2 names the subject entry, that entire entry becomes the 
  23575. ASCENDING/DESCENDING KEY, and is the only key that may be specified for this 
  23576. table element. 
  23577.  
  23578. If data-name-2 does not name the subject entry, then data-name-2: 
  23579.  
  23580.   Must be subordinate to the subject of the table entry itself 
  23581.  
  23582.   Must not be subordinate to, or follow, any other entry that contains an 
  23583.    OCCURS clause 
  23584.  
  23585.   Must not contain an OCCURS clause 
  23586.  
  23587.  
  23588. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23589.  
  23590. index-name-1 Must follow the rules for formation of user-defined words. At 
  23591. least one character must be alphabetic. 
  23592.  
  23593. Each index-name specifies an index to be created by the compiler for use by the 
  23594. program. These index-names are not data-names, and are not identified elsewhere 
  23595. in the COBOL program; instead, they can be regarded as private special 
  23596. registers for the use of this object program only. As such, they are not data, 
  23597. or part of any data hierarchy; as such, each must be unique. 
  23598.  
  23599. If a data item possessing the GLOBAL attribute includes a table accessed with 
  23600. an index, the index defined for the table also possess the GLOBAL attribute. 
  23601.  
  23602.  
  23603. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23604.  
  23605. The minimum number of occurrences. 
  23606.  
  23607. The value of integer-1 must be greater than or equal to zero; it must also be 
  23608. less than the value of integer-2. 
  23609.  
  23610.  
  23611. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23612.  
  23613. The maximum number of occurrences. 
  23614.  
  23615.  
  23616. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23617.  
  23618. Specifies the object of the OCCURS DEPENDING ON clause; that is, the (integer) 
  23619. data item whose current value represents the current number of occurrences of 
  23620. the subject item. The contents of items whose occurrence numbers exceed the 
  23621. value of the object are unpredictable. 
  23622.  
  23623.  
  23624. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23625.  
  23626. Is the redefined item or the REDEFINES object. Contrast it with data-name-1, 
  23627. which is the REDEFINES clause subject. 
  23628.  
  23629.  
  23630. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23631.  
  23632. A user-specified name that associates a value with a conditional variable. If 
  23633. the associated conditional variable requires subscripts or indexes, each 
  23634. procedural reference to the condition-name must be subscripted or indexed as 
  23635. required for the conditional variable. 
  23636.  
  23637. Condition-names are tested procedurally in condition-name conditions (see 
  23638. Conditional Expressions). 
  23639.  
  23640.  
  23641. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23642.  
  23643. When literal-1 is specified alone, the condition-name is associated with a 
  23644. single value. 
  23645.  
  23646.  
  23647. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23648.  
  23649. The condition-name is associated with at least one range of values. Whenever 
  23650. the THROUGH phrase is used, literal-1 must be less than literal-2. 
  23651.  
  23652.  
  23653. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23654.  
  23655. Must reference a data item whose usage is DISPLAY. When the identifier is a 
  23656. group item of zero length and NOT is specified in the class condition, the 
  23657. result is always true. If NOT is not specified, the result is always false. 
  23658.  
  23659.  
  23660. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23661.  
  23662. When used, NOT and the next keyword define the class test to be executed for 
  23663. truth value. For example, NOT NUMERIC is a truth test for determining that an 
  23664. identifier is nonnumeric. 
  23665.  
  23666.  
  23667. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23668.  
  23669. The data item referenced by the identifier consists entirely of any combination 
  23670. of the lowercase or uppercase alphabetic characters A through Z, and the space. 
  23671.  
  23672.  
  23673. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23674.  
  23675. The data item referenced by the identifier consists entirely of any combination 
  23676. of the lowercase alphabetic characters a through z, and the space. 
  23677.  
  23678.  
  23679. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23680.  
  23681. The data item referenced by the identifier consists entirely of any combination 
  23682. of the uppercase alphabetic characters A through Z, and the space. 
  23683.  
  23684.  
  23685. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23686.  
  23687. The data item referenced by the identifier consists entirely of the characters 
  23688. listed in the definition of class-name in the SPECIAL-NAMES paragraph. 
  23689.  
  23690. The class-name test must not be used with an identifier described as numeric. 
  23691.  
  23692.  
  23693. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23694.  
  23695. The subject of the relation condition. 
  23696.  
  23697.  
  23698. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23699.  
  23700. The object of the relation condition. 
  23701.  
  23702.  
  23703. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23704.  
  23705. -----IBM Extension----- 
  23706.  
  23707. May specify any level item defined in the Data Division Section, except level 
  23708. 66 and level 88. 
  23709.  
  23710. ---End of IBM Extension--- 
  23711.  
  23712.  
  23713. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23714.  
  23715. -----IBM Extension----- 
  23716.  
  23717. Must be described as USAGE IS POINTER. 
  23718.  
  23719. ---End of IBM Extension--- 
  23720.  
  23721.  
  23722. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23723.  
  23724. -----IBM Extension----- 
  23725.  
  23726. Can be used only if the other operand is one of these: 
  23727.  
  23728.   An item whose usage is POINTER 
  23729.   The ADDRESS OF an item 
  23730.   The ADDRESS OF special register. 
  23731.  That is, NULL=NULL is not allowed. 
  23732.  
  23733.  ---End of IBM Extension--- 
  23734.  
  23735.  
  23736. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23737.  
  23738. -----IBM Extension----- 
  23739.  
  23740. Must be described as USAGE IS PROCEDURE-POINTER (see PROCEDURE-POINTER Phrase 
  23741. for more information). 
  23742.  
  23743. ---End of IBM Extension--- 
  23744.  
  23745.  
  23746. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23747.  
  23748. -----IBM Extension----- 
  23749.  
  23750. Used only if the other operand is defined as USAGE IS PROCEDURE-POINTER. 
  23751. NULL=NULL is not allowed. 
  23752.  
  23753. ---End of IBM Extension--- 
  23754.  
  23755.  
  23756. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23757.  
  23758. Must be defined as a numeric identifier, or it must be defined as an arithmetic 
  23759. expression that contains at least one reference to an identifier. 
  23760.  
  23761. An unsigned operand is either POSITIVE or ZERO. 
  23762.  
  23763.  
  23764. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23765.  
  23766. An algebraic test is executed for the truth value of the sign condition. For 
  23767. example, NOT ZERO is regarded as true when the operand tested is positive or 
  23768. negative in value. 
  23769.  
  23770.  
  23771. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23772.  
  23773. Must be defined in the SPECIAL-NAMES paragraph as associated with the ON or OFF 
  23774. value of an UPSI switch. (See SPECIAL-NAMES Paragraph.) 
  23775.  
  23776.  
  23777. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23778.  
  23779. The receiving data item. 
  23780.  
  23781.  
  23782. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23783.  
  23784. -----IBM Extension----- 
  23785.  
  23786. May be specified in place of mnemonic-name. Valid environment-names are CONSOLE 
  23787. and SYSIN. 
  23788.  
  23789. ---End of IBM Extension--- 
  23790.  
  23791.  
  23792. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23793.  
  23794. The receiving data item. 
  23795.  
  23796.  
  23797. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23798.  
  23799. Has the implicit PICTURE 9(6). 
  23800.  
  23801. The sequence of data elements (from left to right) is: 
  23802.  
  23803. 2 digits for year of century
  23804. 2 digits for month of year
  23805. 2 digits for day of month
  23806.  
  23807. Thus, 16 November 1963 is expressed as: 
  23808.  
  23809. 631116
  23810.  
  23811.  
  23812. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23813.  
  23814. Has the implicit PICTURE 9(5). 
  23815.  
  23816. The sequence of data elements (from left to right) is: 
  23817.  
  23818. 2 digits for year of century
  23819. 3 digits for day of year
  23820.  
  23821. Thus 25 December 1988 is expressed as: 
  23822.  
  23823. 88360
  23824.  
  23825.  
  23826. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23827.  
  23828. Has the implicit PICTURE 9(1). 
  23829.  
  23830. The single data element represents the day of the week thus: 
  23831.  
  23832. 1 represents Monday
  23833. 2 represents Tuesday
  23834. 3 represents Wednesday
  23835. 4 represents Thursday
  23836. 5 represents Friday
  23837. 6 represents Saturday
  23838. 7 represents Sunday
  23839.  
  23840. Thus Thursday is expressed as: 4 
  23841.  
  23842.  
  23843. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23844.  
  23845. Has the implicit PICTURE 9(8). 
  23846.  
  23847. The sequence of data elements (from left to right) is: 
  23848.  
  23849. 2 digits for hour of day
  23850. 2 digits for minute of hour
  23851. 2 digits for second of minute
  23852. 2 digits for hundredths of second
  23853.  
  23854. Thus 12.25 seconds after 2:41 PM is expressed as: 
  23855.  
  23856. 14411225
  23857.  
  23858.  
  23859. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23860.  
  23861. -----IBM Extension----- 
  23862.  
  23863. Identifier-1 can be any fixed-length group item or an elementary alphabetic, 
  23864. alphanumeric, or external decimal item. File-name-1 must be defined in an FD 
  23865. entry, and must be open prior to the execution of the ACCEPT statement. If 
  23866. file-name-1 is not open, the contents of identifier-1 remain unchanged. 
  23867.  
  23868. ---End of IBM Extension--- 
  23869.  
  23870.  
  23871. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23872.  
  23873. -----IBM Extension----- 
  23874.  
  23875. The FROM phrase specifies a mnemonic-name that must be associated with an 
  23876. environment-name of OPEN-FEEDBACK or I-O-FEEDBACK in the SPECIAL-NAMES 
  23877. paragraph. 
  23878.  
  23879. ---End of IBM Extension--- 
  23880.  
  23881.  
  23882. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23883.  
  23884. -----IBM Extension----- 
  23885.  
  23886. When the FOR phrase is specified, the feedback information is from the file 
  23887. specified in the phrase.  When the FOR phrase is not specified, the feedback 
  23888. information is from the last file opened or used in an input or output 
  23889. operation of the current program. 
  23890.  
  23891. ---End of IBM Extension--- 
  23892.  
  23893.  
  23894. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23895.  
  23896. -----IBM Extension----- 
  23897.  
  23898. This format is only applicable when the mnemonic-name in the SPECIAL-NAMES 
  23899. paragraph is associated with the environment-name LOCAL-DATA. 
  23900.  
  23901. ---End of IBM Extension--- 
  23902.  
  23903.  
  23904. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23905.  
  23906. -----IBM Extension----- 
  23907.  
  23908. When the FOR phrase is specified, it is syntax checked during compilation but 
  23909. treated as a comment during execution. The value of literal-1 or identifier-2 
  23910. indicates the program device name of the device that is associated with the 
  23911. local data area. There is only one local data area for each job, and all 
  23912. devices in a job access the same local data area. Literal-1, if specified, must 
  23913. be nonnumeric and 10 characters or less in length. Identifier-2, if specified, 
  23914. must refer to an alphanumeric data item, 10 characters or less in length. 
  23915.  
  23916. ---End of IBM Extension--- 
  23917.  
  23918.  
  23919. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23920.  
  23921. -----IBM Extension----- 
  23922.  
  23923. This format only applies when you associate the mnemonic-name in the 
  23924. SPECIAL-NAMES paragraph with the environment-name PIP-DATA. 
  23925.  
  23926. The move into identifier-1 takes place according to the rules for the MOVE 
  23927. statement for a group move without the CORRESPONDING phrase. 
  23928.  
  23929. ---End of IBM Extension--- 
  23930.  
  23931.  
  23932. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23933.  
  23934. -----IBM Extension----- 
  23935.  
  23936. If the PIP data area exists, the job is a prestart job, and any imperative 
  23937. statement specified in the NOT ON EXCEPTION phrase is processed. 
  23938.  
  23939. ---End of IBM Extension--- 
  23940.  
  23941.  
  23942. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23943.  
  23944. -----IBM Extension----- 
  23945.  
  23946. If the PIP data area does not exist, the job is not a prestart job, and any 
  23947. imperative statement specified in the ON EXCEPTION phrase is processed. In the 
  23948. absence of the ON EXCEPTION phrase, a run-time message is issued if the PIP 
  23949. data area does not exist. 
  23950.  
  23951. ---End of IBM Extension--- 
  23952.  
  23953.  
  23954. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23955.  
  23956. -----IBM Extension----- 
  23957.  
  23958. The END-ACCEPT explicit scope terminator serves to delimit the scope of the 
  23959. ACCEPT statement. END-ACCEPT permits a conditional ACCEPT statement to be 
  23960. nested in another conditional statement. END-ACCEPT may also be used with an 
  23961. imperative ACCEPT statement. For more information, see Delimited Scope 
  23962. Statements. 
  23963.  
  23964. ---End of IBM Extension--- 
  23965.  
  23966.  
  23967. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23968.  
  23969. -----IBM Extension----- 
  23970.  
  23971. Mnemonic-name must be associated with the environment-name ATTRIBUTE-DATA in 
  23972. the SPECIAL-NAMES paragraph. 
  23973.  
  23974. ---End of IBM Extension--- 
  23975.  
  23976.  
  23977. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23978.  
  23979. -----IBM Extension----- 
  23980.  
  23981. If file-name-1 is not specified, the default file for the ACCEPT statement is 
  23982. the first TRANSACTION file specified in a SELECT clause of the FILE-CONTROL 
  23983. paragraph. 
  23984.  
  23985. ---End of IBM Extension--- 
  23986.  
  23987.  
  23988. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  23989.  
  23990. -----IBM Extension----- 
  23991.  
  23992. Literal-1 or the contents of identifier-2, if specified, indicates the program 
  23993. device name for which attribute data is made available. 
  23994.  
  23995. For an ICF file, this device must have been defined (through a ADDICFDEVE, 
  23996. CHGICFDEVE, or OVRICFDEVE command) as available to be acquired by the file, but 
  23997. need not have actually been acquired. For a display file, if the program device 
  23998. name is not the name of the display device, then the device must have been 
  23999. specified in the DEV parameter when the file was created, changed, or 
  24000. overridden, and before the OPEN is issued for the file. Literal-1, if 
  24001. specified, must be nonnumeric and 10 characters or less in length. The contents 
  24002. of identifier-2, if specified, must be an alphanumeric data item 10 characters 
  24003. or less in length.  If an invalid program device name is specified, message 
  24004. LNR7205 is issued and execution terminates. 
  24005.  
  24006. If both FOR phrases are omitted (indicating the default TRANSACTION file is 
  24007. being used) the ACCEPT statement uses the program device from which a READ, 
  24008. WRITE, REWRITE, or ACCEPT (Attribute Data) operation on the default file was 
  24009. most recently performed.  If the only prior operation on the file was an OPEN, 
  24010. the ACCEPT statement uses the program device implicitly acquired by the file 
  24011. when the file was opened.  When both FOR phrases are omitted, a program device 
  24012. must have been acquired in order to use this format of the ACCEPT statement. 
  24013.  
  24014. ---End of IBM Extension--- 
  24015.  
  24016.  
  24017. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24018.  
  24019. -----IBM Extension----- 
  24020.  
  24021. A data item whose value may be updated. 
  24022.  
  24023. Fields accepted or displayed require an attribute byte before and after the 
  24024. field. To accomplish this, space must be available on the screen for, at a 
  24025. minimum, the initial display attribute. For this reason, line 1 and column 1 
  24026. cannot be used for data because that position is required for the first display 
  24027. attribute. The lowest position that can be used on the screen for data is line 
  24028. 1, column 2. 
  24029.  
  24030. ---End of IBM Extension--- 
  24031.  
  24032.  
  24033. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24034.  
  24035. -----IBM Extension----- 
  24036.  
  24037. The LINE phrase specifies the line at which the screen item starts on the 
  24038. screen. 
  24039.  
  24040. ---End of IBM Extension--- 
  24041.  
  24042.  
  24043. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24044.  
  24045. -----IBM Extension----- 
  24046.  
  24047. The COLUMN phrase specifies the column at which the screen item starts on the 
  24048. screen. 
  24049.  
  24050. COL is an abbreviation for COLUMN. 
  24051.  
  24052. ---End of IBM Extension--- 
  24053.  
  24054.  
  24055. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24056.  
  24057. -----IBM Extension----- 
  24058.  
  24059. Identifier-2 and integer-1 must be an unsigned numeric integer with a value 
  24060. greater than or equal to zero and less than 9 digits. If the value for LINE or 
  24061. COLUMN is negative, the absolute value is taken. Identifier-2 or integer-1 is 
  24062. moved into a PIC 9(3) number. 
  24063.  
  24064. ---End of IBM Extension--- 
  24065.  
  24066.  
  24067. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24068.  
  24069. -----IBM Extension----- 
  24070.  
  24071. Identifier-3 must be a PIC 9(4) or a PIC 9(6) field. Integer-2 must be a 4- or 
  24072. 6-byte numeric field. 
  24073.  
  24074. If identifier-3 or integer-2 is 4 digits long, the first 2 digits specify the 
  24075. line, and the second 2 digits specify the column. If identifier-3 or integer-2 
  24076. is 6 digits long, the first 3 digits specify the line, the second 3 digits 
  24077. specify the column. 
  24078.  
  24079. ---End of IBM Extension--- 
  24080.  
  24081.  
  24082. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24083.  
  24084. -----IBM Extension----- 
  24085.  
  24086. Indicates that the ACCEPT statement is extended. 
  24087.  
  24088. ---End of IBM Extension--- 
  24089.  
  24090.  
  24091. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24092.  
  24093. -----IBM Extension----- 
  24094.  
  24095. The identifier is to be treated as an elementary item; thus, even if it is a 
  24096. group item it is accepted as one item. 
  24097.  
  24098. ---End of IBM Extension--- 
  24099.  
  24100.  
  24101. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24102.  
  24103. -----IBM Extension----- 
  24104.  
  24105. If ON EXCEPTION is specified, imperative-statement-1 is executed if the ACCEPT 
  24106. operation finishes with anything other than a normal completion. That is, if 
  24107. the CRT Status Key 1 is other than 0. 
  24108.  
  24109. The use of the ON EXCEPTION phrase does not prevent the generation of a 
  24110. run-time message for such conditions as workstation boundaries or out-of-screen 
  24111. ranges. 
  24112.  
  24113. ---End of IBM Extension--- 
  24114.  
  24115.  
  24116. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24117.  
  24118. -----IBM Extension----- 
  24119.  
  24120. If NOT ON EXCEPTION is specified, imperative-statement-2 is executed if the 
  24121. ACCEPT operation finishes with a normal completion. 
  24122.  
  24123. ---End of IBM Extension--- 
  24124.  
  24125.  
  24126. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24127.  
  24128. -----IBM Extension----- 
  24129.  
  24130. END-ACCEPT is optional. It is required if ACCEPT statements are nested. 
  24131.  
  24132. ---End of IBM Extension--- 
  24133.  
  24134.  
  24135. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24136.  
  24137. -----IBM Extension----- 
  24138.  
  24139. The WITH phrase allows the user to specify certain options for the ACCEPT 
  24140. operation. These options are described in the following phrases. 
  24141.  
  24142. ---End of IBM Extension--- 
  24143.  
  24144.  
  24145. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24146.  
  24147. -----IBM Extension----- 
  24148.  
  24149. When a field has been filled by operator input, the cursor automatically steps 
  24150. to the next input field, rather than waiting for a terminating character to be 
  24151. entered. If the field is the last in a group, AUTO-SKIP acts as if the ENTER 
  24152. key had been pressed. 
  24153.  
  24154. AUTO and AUTO-SKIP may be used interchangeably. 
  24155.  
  24156. ---End of IBM Extension--- 
  24157.  
  24158.  
  24159. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24160.  
  24161. -----IBM Extension----- 
  24162.  
  24163. An audible alarm sounds each time the item containing this phrase is accepted. 
  24164.  
  24165. BELL and BEEP may be used interchangeably. 
  24166.  
  24167. ---End of IBM Extension--- 
  24168.  
  24169.  
  24170. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24171.  
  24172. -----IBM Extension----- 
  24173.  
  24174. The screen item blinks when it appears on the screen. 
  24175.  
  24176. ---End of IBM Extension--- 
  24177.  
  24178.  
  24179. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24180.  
  24181. -----IBM Extension----- 
  24182.  
  24183. The operator must either leave the screen item completely empty or fill it 
  24184. entirely with data. The FIELD-EXIT, FIELD+, FIELD- keys are not allowed.  Any 
  24185. attempt to use the delete key on the data within the input field, followed by 
  24186. the enter key, is also not allowed. The FULL phrase can be satisfied by data 
  24187. that is initially displayed. 
  24188.  
  24189. If this phrase is specified at a group level, it applies to all suitable 
  24190. subordinate elementary items. 
  24191.  
  24192. The FULL phrase is effective during the execution of any ACCEPT statement. 
  24193.  
  24194. FULL and LENGTH-CHECK may be used interchangeably. 
  24195.  
  24196. ---End of IBM Extension--- 
  24197.  
  24198.  
  24199. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24200.  
  24201. -----IBM Extension----- 
  24202.  
  24203. The screen item is in high-intensity mode when it appears on the screen. 
  24204.  
  24205. ---End of IBM Extension--- 
  24206.  
  24207.  
  24208. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24209.  
  24210. -----IBM Extension----- 
  24211.  
  24212. The REQUIRED phrase is used to ensure that a field does not remain empty. 
  24213.  
  24214. For alphanumeric items, this means that the field must contain at least one 
  24215. character other than a space or a hexadecimal zero. For numeric items, the 
  24216. field must contain a value of other than zero. 
  24217.  
  24218. If a field remains empty when this phrase is specified, a run-time message will 
  24219. be issued which requires the user to press the reset key and then to re-enter 
  24220. the data. 
  24221.  
  24222. REQUIRED and EMPTY-CHECK may be used interchangeably. 
  24223.  
  24224. ---End of IBM Extension--- 
  24225.  
  24226.  
  24227. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24228.  
  24229. -----IBM Extension----- 
  24230.  
  24231. The screen item is displayed in reverse image. 
  24232.  
  24233. ---End of IBM Extension--- 
  24234.  
  24235.  
  24236. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24237.  
  24238. -----IBM Extension----- 
  24239.  
  24240. Operator-keyed data is prevented from appearing on the screen. This phrase may 
  24241. be specified on a group screen item, in which case it applies to all suitable 
  24242. elementary items which are subordinate to that item. When the SECURE phrase is 
  24243. specified, only spaces and cursor appear in the screen item. 
  24244.  
  24245. SECURE and NO-ECHO may be used interchangeably. 
  24246.  
  24247. ---End of IBM Extension--- 
  24248.  
  24249.  
  24250. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24251.  
  24252. -----IBM Extension----- 
  24253.  
  24254. The screen item is underlined when it appears on the screen. 
  24255.  
  24256. ---End of IBM Extension--- 
  24257.  
  24258.  
  24259. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24260.  
  24261. -----IBM Extension----- 
  24262.  
  24263. Operator-keyed characters are moved on the screen to the rightmost character 
  24264. positions of the field. Trailing spaces and trailing hexadecimal zeros are 
  24265. removed. 
  24266.  
  24267. This option affects only non-edited data items. This takes effect upon display 
  24268. of the initial data in the data item and also upon termination of the ACCEPT 
  24269. operation. This is the only way in which numeric data are handled. 
  24270.  
  24271. If the data item is defined with the JUSTIFIED RIGHT clause in the DATA 
  24272. DIVISION, then the data item is treated as if the RIGHT-JUSTIFY phrase had been 
  24273. specified. 
  24274.  
  24275. ---End of IBM Extension--- 
  24276.  
  24277.  
  24278. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24279.  
  24280. -----IBM Extension----- 
  24281.  
  24282. Specifies the size of the data item on the screen.  You can use this phrase 
  24283. with elementary data items only. 
  24284.  
  24285. The SIZE phrase has no effect if the size you specify is zero. In this case, 
  24286. the length of the field is used to display the data item. 
  24287.  
  24288. If you specify a size that is less than the size implied by the associated 
  24289. PICTURE clause, only the leftmost portion of the data item appears on the 
  24290. workstation display. 
  24291.  
  24292. When the size specified for a numeric or numeric-edited data item is less than 
  24293. that implied by the PICTURE clause, truncation of the rightmost positions 
  24294. occurs when the value is displayed, or predisplayed in the ACCEPT operation. 
  24295. The data item is then updated following the rules for the MOVE operation. 
  24296.  
  24297. If you specify a SIZE literal whose value causes the field length to exceed the 
  24298. screen size, alphanumeric data will be truncated and numeric data will be 
  24299. ignored and not displayed. 
  24300.  
  24301. For justified items, only the rightmost portion appears when you specify a size 
  24302. that is smaller than the length of the item. 
  24303.  
  24304. If the size you specify is greater than the size implied by the PICTURE clause, 
  24305. the displayed version of the item is padded with spaces. The padding occurs on 
  24306. the right. 
  24307.  
  24308. ---End of IBM Extension--- 
  24309.  
  24310.  
  24311. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24312.  
  24313. -----IBM Extension----- 
  24314.  
  24315. For non-edited data items, trailing hexadecimal zeros are converted to spaces, 
  24316. and the items appear on the screen with zero-suppression in all character 
  24317. positions. This takes effect when initial data in the data item is displayed 
  24318. and again when the ACCEPT operation into the data item is terminated. This 
  24319. option has no effect on edited fields. 
  24320.  
  24321. ---End of IBM Extension--- 
  24322.  
  24323.  
  24324. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24325.  
  24326. -----IBM Extension----- 
  24327.  
  24328. The operational sign appears in the rightmost character position of the field. 
  24329. This takes effect upon display of initial data in the data item and also upon 
  24330. termination of the ACCEPT operation. This option affects only signed, 
  24331. non-edited numeric data items. When this option is not specified, the sign 
  24332. precedes the number. 
  24333.  
  24334. ---End of IBM Extension--- 
  24335.  
  24336.  
  24337. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24338.  
  24339. -----IBM Extension----- 
  24340.  
  24341. The current contents of the data item are displayed before the operator is 
  24342. prompted to key in any new data; the initial data is then treated as though it 
  24343. were operator-keyed. 
  24344.  
  24345. Predisplaying by Data Type 
  24346.  
  24347. In the absence of the UPDATE phrase, you can control the predisplaying of some 
  24348. data. To predisplay only numeric-edited data, specify the *ACCUPDNE option of 
  24349. the EXTDSPOPT parameter. To predisplay all data, use the default option, 
  24350. *ACCUPDALL. 
  24351.  
  24352. ---End of IBM Extension--- 
  24353.  
  24354.  
  24355. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24356.  
  24357. -----IBM Extension----- 
  24358.  
  24359. Non-edited data items appear on the screen with no zero-suppression. For 
  24360. left-justified data, trailing spaces and trailing hexadecimal zeros are 
  24361. converted to zeros. For right-justified data, leading spaces are converted to 
  24362. zeros. 
  24363.  
  24364. This takes effect when initial data in the data item is displayed and again 
  24365. when the ACCEPT operation into the data item is terminated.  It has no effect 
  24366. on edited fields. 
  24367.  
  24368. ---End of IBM Extension--- 
  24369.  
  24370.  
  24371. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24372.  
  24373. -----IBM Extension----- 
  24374.  
  24375. Syntax checked and then treated as documentation by the compiler. 
  24376.  
  24377. ---End of IBM Extension--- 
  24378.  
  24379.  
  24380. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24381.  
  24382. -----IBM Extension----- 
  24383.  
  24384. The literal you specify, or the contents of the identifier, will specify the 
  24385. program device name to be acquired by the specified file. The literal must be 
  24386. nonnumeric and 10 characters or less in length.  The identifier must refer to 
  24387. an alphanumeric data item 10 characters or less in length. 
  24388.  
  24389. ---End of IBM Extension--- 
  24390.  
  24391.  
  24392. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24393.  
  24394. -----IBM Extension----- 
  24395.  
  24396. File-name must be the name of a file with an organization of TRANSACTION, and 
  24397. the file must be open when the ACQUIRE statement is run. A compilation error 
  24398. message is issued if the organization is not TRANSACTION. 
  24399.  
  24400. ---End of IBM Extension--- 
  24401.  
  24402.  
  24403. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24404.  
  24405. Must be an elementary numeric item. 
  24406.  
  24407.  
  24408. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24409.  
  24410. Must be an elementary numeric item or a numeric-edited item. 
  24411.  
  24412.  
  24413. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24414.  
  24415. Must be a group item. 
  24416.  
  24417.  
  24418. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24419.  
  24420. Must be a numeric literal. 
  24421.  
  24422.  
  24423. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24424.  
  24425. This explicit scope terminator delimits the scope of the ADD statement. END-ADD 
  24426. converts a conditional ADD statement into an imperative statement so that it 
  24427. can be nested in another conditional statement. 
  24428.  
  24429. For more information, see Delimited Scope Statements. 
  24430.  
  24431.  
  24432. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24433.  
  24434. Must be a Procedure Division paragraph that contains only one sentence: a GO TO 
  24435. statement without the DEPENDING ON phrase. 
  24436.  
  24437.  
  24438. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24439.  
  24440. Must be a Procedure Division section or paragraph. 
  24441.  
  24442.  
  24443. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24444.  
  24445. The CALL linkage determines the type of program called and thus also restricts 
  24446. the content and size of literal-1.  The linkage made is either to a program 
  24447. object or an ILE procedure. If the linkage is to a program object, then 
  24448. literal-1 must be nonnumeric, uppercase (except for an extended system name), 
  24449. and must conform to the rules for formation of program-names. The first 10 
  24450. characters of the literal are used to make the correspondence between the 
  24451. calling program and the called subprogram. Literal-1 can contain an extended 
  24452. name. 
  24453.  
  24454. If the linkage is to an ILE procedure, then literal-1 must be nonnumeric and at 
  24455. most 256 characters long. Depending on the compiler option *MONOPRC, literal-1 
  24456. might need to be uppercase and conform to the rules for formation of 
  24457. program-names. The literal must specify the program-name of the called 
  24458. subprogram. 
  24459.  
  24460.  
  24461. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24462.  
  24463. Must be an alphanumeric or a procedure-pointer data item. 
  24464.  
  24465. For an alphanumeric data item, the following rules apply: 
  24466.  
  24467.   If the linkage is to a program object, the contents of identifier-1 must 
  24468.    conform to the rules for formation of a program-name. The first 10 
  24469.    characters of identifier-1 are used to make the correspondence between the 
  24470.    calling and the called program. 
  24471.  
  24472.   If the linkage is to a procedure, the first 256 characters of identifier-1 
  24473.    are used. The called procedure must be in the same compilation unit as the 
  24474.    calling procedure. 
  24475.  
  24476.   Depending on the compiler option *MONOPRC, the contents of identifier-1 
  24477.    might need to be uppercase and conform to the rules for formation of 
  24478.    program-names. 
  24479.  
  24480.  Procedure-pointer data items must be set to the address of a program or a 
  24481.  procedure using the SET statement prior to the CALL. For information on 
  24482.  setting procedure-pointer data items, see Format 6 - Procedure-Pointer Data 
  24483.  Item. 
  24484.  
  24485.  
  24486. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24487.  
  24488. The type of linkage the compiler will generate for the CALL. 
  24489. Environment-name-1 can be defined as: 
  24490.  
  24491.  PGM     Linkage to a program object (*PGM) is generated. 
  24492.  PRC     Linkage to an ILE procedure is generated. 
  24493.  
  24494.  
  24495. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24496.  
  24497. Linkage to a program object (*PGM) 
  24498.  
  24499.  
  24500. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24501.  
  24502. Linkage to an ILE procedure 
  24503.  
  24504.  
  24505. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24506.  
  24507. Must be defined as a level-01, level-77, or elementary data item in the File 
  24508. Section, Working-Storage Section, or Linkage Section. 
  24509.  
  24510. -----IBM Extension----- 
  24511.  
  24512. It can be: 
  24513.  
  24514.   A data item of any level in the Data Division 
  24515.   A pointer data item (an item defined implicitly or explicitly as USAGE IS 
  24516.    POINTER) 
  24517.   A procedure-pointer data item 
  24518.  
  24519.  ---End of IBM Extension--- 
  24520.  
  24521.  
  24522. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24523.  
  24524. -----IBM Extension----- 
  24525.  
  24526. Must appear in an FD entry. It passes a null pointer data item. 
  24527.  
  24528. ---End of IBM Extension--- 
  24529.  
  24530.  
  24531. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24532.  
  24533. -----IBM Extension----- 
  24534.  
  24535. For standard arguments when a parameter is passed BY REFERENCE, a pointer to 
  24536. the original data item is passed to the called program. When OMITTED is 
  24537. specified, a NULL pointer is passed to the called program.  In this case, the 
  24538. called program will use its default value. 
  24539.  
  24540. OMITTED can only be specified on calls to programs with a LINKAGE TYPE of 
  24541. procedure. 
  24542.  
  24543. ---End of IBM Extension--- 
  24544.  
  24545.  
  24546. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24547.  
  24548. -----IBM Extension----- 
  24549.  
  24550. Can be: 
  24551.  
  24552.   A nonnumeric literal 
  24553.   A figurative constant 
  24554.   A Boolean literal 
  24555.  
  24556.  ---End of IBM Extension--- 
  24557.  
  24558.  
  24559. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24560.  
  24561. The ON OVERFLOW phrase has the same effect as the ON EXCEPTION phrase. 
  24562.  
  24563.  
  24564. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24565.  
  24566. This phrase delimits the scope of the CALL statement. END-CALL permits a 
  24567. conditional CALL statement to be nested in another conditional statement. 
  24568. END-CALL can also be used with an imperative CALL statement. 
  24569.  
  24570. For more information, see Delimited Scope Statements. 
  24571.  
  24572.  
  24573. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24574.  
  24575. The name of the subprogram to be canceled. Literal-1 can contain an extended 
  24576. name. The CANCEL linkage determines the type of program to be canceled and thus 
  24577. also restricts the content and size of literal-1.  The linkage made is either 
  24578. to a program object or an ILE procedure.  If the linkage is to a program 
  24579. object, then literal-1 must be nonnumeric, uppercase (except for an extended 
  24580. system name), and must conform to the rules for formation of program-names. The 
  24581. first 10 characters of the literal are used to make the correspondence between 
  24582. the calling program and the called subprogram. 
  24583.  
  24584. If the linkage is to an ILE procedure, then literal-1 must be nonnumeric and at 
  24585. most 250 characters long. Depending on the compiler option *MONOPRC, literal-1 
  24586. might need to be uppercase and conform to the rules for formation of 
  24587. program-names. The literal must specify the program-name of the called 
  24588. subprogram. 
  24589.  
  24590.  
  24591. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24592.  
  24593. Must be an alphanumeric data item where the following rules apply: 
  24594.  
  24595.   If the linkage is to a program object, the contents of identifier-1 must 
  24596.    conform to the rules for formation of a program-name. The first 10 
  24597.    characters of identifier-1 are used to make the correspondence between the 
  24598.    calling and the called program. 
  24599.  
  24600.   If the linkage is to a procedure, the first 250 characters of identifier-1 
  24601.    are used. 
  24602.  
  24603.   If the compiler option *MONOPRC is specified, the contents of identifier-1 
  24604.    need to be uppercase and must conform to the rules for formation of 
  24605.    program-names. 
  24606.  
  24607.  Each literal or contents of the identifier specified in the CANCEL statement 
  24608.  must be the same as the literal or contents of the identifier specified in an 
  24609.  associated CALL statement. 
  24610.  
  24611.  
  24612. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24613.  
  24614. -----IBM Extension----- 
  24615.  
  24616. The LINKAGE TYPE phrase is used to specify the type of program that the CANCEL 
  24617. statement targets.  It could target a program object (*PGM) or an ILE 
  24618. procedure. 
  24619.  
  24620. ---End of IBM Extension--- 
  24621.  
  24622.  
  24623. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24624.  
  24625. -----IBM Extension----- 
  24626.  
  24627. The type of program that the CANCEL statement will affect.  Environment-name-1 
  24628. can be defined as: 
  24629.  
  24630.  PGM 
  24631.            A program object (*PGM) 
  24632.  
  24633.  PRC 
  24634.            An ILE procedure 
  24635.  
  24636.  ---End of IBM Extension--- 
  24637.  
  24638.  
  24639. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24640.  
  24641. -----IBM Extension----- 
  24642.  
  24643. A program object (*PGM) is canceled. 
  24644.  
  24645. ---End of IBM Extension--- 
  24646.  
  24647.  
  24648. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24649.  
  24650. -----IBM Extension----- 
  24651.  
  24652. An ILE procedure is canceled. 
  24653.  
  24654. ---End of IBM Extension--- 
  24655.  
  24656.  
  24657. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24658.  
  24659. Designates the file upon which the CLOSE statement is to operate. If more than 
  24660. one file name is specified, the files need not have the same organization or 
  24661. access. File-name-1 must not be a sort or merge file. 
  24662.  
  24663.  
  24664. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24665.  
  24666. Must be either elementary numeric item(s) or elementary numeric-edited item(s). 
  24667.  
  24668.  
  24669. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24670.  
  24671. May be any arithmetic expression, as defined in Arithmetic Expressions. 
  24672.  
  24673. When the COMPUTE statement is executed, the value of the arithmetic expression 
  24674. is calculated, and this value is stored as the new value of each data item 
  24675. referenced by identifier-1. 
  24676.  
  24677. An arithmetic expression consisting of a single identifier or numeric literal 
  24678. allows the user to set the value of the data item(s) referenced by identifier-1 
  24679. equal to the value of that identifier or literal. 
  24680.  
  24681.  
  24682. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24683.  
  24684. This explicit scope terminator serves to delimit the scope of the COMPUTE 
  24685. statement. END-COMPUTE permits a conditional COMPUTE statement to be nested in 
  24686. another conditional statement. END-COMPUTE may also be used with an imperative 
  24687. COMPUTE statement. 
  24688.  
  24689. For more information, see Delimited Scope Statements. 
  24690.  
  24691.  
  24692. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24693.  
  24694. Must be defined in an FD entry in the Data Division and must be the name of an 
  24695. indexed or relative file. 
  24696.  
  24697.  
  24698. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24699.  
  24700. The key fields in the record area are the locations in the buffer selected in 
  24701. accordance with a record format or specification in order to build a search 
  24702. argument. 
  24703.  
  24704.  
  24705. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24706.  
  24707. The INVALID KEY phrase must be specified for files for which an applicable USE 
  24708. procedure is not specified. For more information, refer to INVALID KEY 
  24709. Condition. 
  24710.  
  24711.  
  24712. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24713.  
  24714. After the successful processing of a DELETE statement for which there is a NOT 
  24715. INVALID KEY phrase, control transfers to the imperative statement associated 
  24716. with the phrase. 
  24717.  
  24718.  
  24719. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24720.  
  24721. The FORMAT phrase applies only to indexed files of device type DATABASE. It is 
  24722. required when processing a file that has multiple record formats and has unique 
  24723. keys. If the record key is defined with duplicates, the FORMAT phrase is 
  24724. incorrect and is ignored. 
  24725.  
  24726. The value specified in the FORMAT phrase contains the name of the record format 
  24727. to use for this I-O operation.  The system uses this to specify or select which 
  24728. record format must be operated on. 
  24729.  
  24730. If an identifier is specified, it must be a character string of ten characters 
  24731. or less, and it must be the name of one of the following: 
  24732.  
  24733.   A Working-Storage Section entry 
  24734.   A Linkage Section entry 
  24735.   A record description entry for a previously opened file. 
  24736.  
  24737.  If a literal is specified, it must be an uppercase character string of ten 
  24738.  characters or less. A value of all blanks is treated as though the FORMAT 
  24739.  phrase were not specified.  If the value is not valid for a file, a FILE 
  24740.  STATUS of 9K is returned and a USE procedure is invoked, if applicable for the 
  24741.  file. 
  24742.  
  24743.  
  24744. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24745.  
  24746. This explicit scope terminator delimits the scope of the DELETE statement. It 
  24747. permits a conditional DELETE statement to be nested in another conditional 
  24748. statement. END-DELETE can also be used with an imperative DELETE statement. 
  24749.  
  24750.  
  24751. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24752.  
  24753. If it is numeric and is not described as external decimal, the identifier is 
  24754. converted automatically to external format, as follows: 
  24755.  
  24756.   Binary or internal decimal items are converted to external decimal. Negative 
  24757.    signed values cause a low-order sign to be displayed. For example, if SIGN 
  24758.    WITH SEPARATE CHARACTER is not specified and two numeric items have the 
  24759.    values -34 and 34, they are displayed as 3M and 34, respectively.  If SIGN 
  24760.    WITH SEPARATE CHARACTER is specified, a + or a - sign is displayed as either 
  24761.    leading or trailing, depending on how the number was specified. 
  24762.  
  24763.    Note:   Group items containing packed or binary data (COMP, COMP-3, 
  24764.    PACKED-DECIMAL, BINARY, or COMP-4) should not be displayed on a display 
  24765.    station.  Such data can contain display station control characters which can 
  24766.    cause undesirable and unpredictable results. 
  24767.  
  24768.   No other identifiers require conversion. 
  24769.  
  24770.  
  24771. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24772.  
  24773. May be any figurative constant. When a figurative constant is specified, only a 
  24774. single occurrence of that figurative constant is displayed. 
  24775.  
  24776. Each numeric literal must be an unsigned integer. 
  24777.  
  24778. -----IBM Extension----- 
  24779.  
  24780. Signed noninteger numeric literals are allowed. 
  24781.  
  24782. ---End of IBM Extension--- 
  24783.  
  24784.  
  24785. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24786.  
  24787. mnemonic-name must be associated in the SPECIAL-NAMES paragraph with either the 
  24788. workstation (REQUESTOR) or the system operator's message queue (CONSOLE or 
  24789. SYSTEM-CONSOLE). 
  24790.  
  24791.  
  24792. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24793.  
  24794. -----IBM Extension----- 
  24795.  
  24796. environment-name may be specified in place of mnemonic-name. Valid 
  24797. environment-names are CONSOLE and SYSOUT. 
  24798.  
  24799. ---End of IBM Extension--- 
  24800.  
  24801.  
  24802. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24803.  
  24804. When the UPON phrase is omitted, the DISPLAY statement sends output to the 
  24805. REQUESTOR. 
  24806.  
  24807.  
  24808. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24809.  
  24810. This phrase is syntax checked only and ignored. For a description of a 
  24811. functional WITH NO ADVANCING phrase see Format 4 - Session I/O. 
  24812.  
  24813.  
  24814. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24815.  
  24816. -----IBM Extension----- 
  24817.  
  24818. This format is only applicable when the mnemonic-name in the SPECIAL-NAMES 
  24819. paragraph is associated with the environment-name LOCAL-DATA. 
  24820.  
  24821. ---End of IBM Extension--- 
  24822.  
  24823.  
  24824. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24825.  
  24826. -----IBM Extension----- 
  24827.  
  24828. The FOR phrase, when specified, is syntax checked during compilation but is 
  24829. treated as comments during execution. The value of literal-2 or identifier-2 
  24830. indicates the program device name of the device that is writing data to the 
  24831. local data area.  There is only one local data area for each job, and all 
  24832. devices in a job access the same local data area. Literal-2, if specified, must 
  24833. be nonnumeric and 10 characters or less in length, and identifier-2, if 
  24834. specified, must refer to an alphanumeric data item 10 characters or less in 
  24835. length. 
  24836.  
  24837. ---End of IBM Extension--- 
  24838.  
  24839.  
  24840. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24841.  
  24842. -----IBM Extension----- 
  24843.  
  24844. The LINE phrase specifies the line at which the screen item starts on the 
  24845. screen. 
  24846.  
  24847. ---End of IBM Extension--- 
  24848.  
  24849.  
  24850. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24851.  
  24852. -----IBM Extension----- 
  24853.  
  24854. The COLUMN phrase specifies the column at which the screen item starts on the 
  24855. screen. 
  24856.  
  24857. COL is an abbreviation for COLUMN. 
  24858.  
  24859. ---End of IBM Extension--- 
  24860.  
  24861.  
  24862. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24863.  
  24864. -----IBM Extension----- 
  24865.  
  24866. Identifier-2 and integer-1 must be unsigned numeric integers greater than or 
  24867. equal to zero, and less than 9 digits. If LINE or COLUMN is negative, the 
  24868. absolute value is taken. 
  24869.  
  24870. ---End of IBM Extension--- 
  24871.  
  24872.  
  24873. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24874.  
  24875. -----IBM Extension----- 
  24876.  
  24877. Identifier-3 must be a PIC 9(4) or a PIC 9(6) field. Integer-2 must be a 4- or 
  24878. 6-byte numeric field. 
  24879.  
  24880. If identifier-3 or integer-2 is 4 digits long, the first two digits specify the 
  24881. line, and the second two digits specify the column. If identifier-3 or 
  24882. integer-2 is 6 digits long, the first three digits specify the line, and the 
  24883. second three digits specify the column. 
  24884.  
  24885. ---End of IBM Extension--- 
  24886.  
  24887.  
  24888. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24889.  
  24890. -----IBM Extension----- 
  24891.  
  24892. Indicates that the DISPLAY statement is extended. 
  24893.  
  24894. CRT-UNDER also underlines the displayed data item preceding the UPON CRT-UNDER 
  24895. phrase. 
  24896.  
  24897. ---End of IBM Extension--- 
  24898.  
  24899.  
  24900. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24901.  
  24902. -----IBM Extension----- 
  24903.  
  24904. The identifier is treated as an elementary item.  Even if it is a group item, 
  24905. it is displayed as one item. 
  24906.  
  24907. ---End of IBM Extension--- 
  24908.  
  24909.  
  24910. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24911.  
  24912. -----IBM Extension----- 
  24913.  
  24914. The WITH phrase allows the user to specify certain options for the DISPLAY 
  24915. operation. These options are described in the following phrases. 
  24916.  
  24917. ---End of IBM Extension--- 
  24918.  
  24919.  
  24920. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24921.  
  24922. -----IBM Extension----- 
  24923.  
  24924. An audible alarm sounds each time the item containing this phrase is displayed. 
  24925.  
  24926. BELL and BEEP can be used interchangeably. 
  24927.  
  24928. ---End of IBM Extension--- 
  24929.  
  24930.  
  24931. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24932.  
  24933. -----IBM Extension----- 
  24934.  
  24935. BLANK is effective each time the screen item containing this clause is 
  24936. displayed. 
  24937.  
  24938. BLANK LINE erases from the current cursor position to the end of the current 
  24939. line. BLANK SCREEN erases the entire screen and places the cursor at line 1, 
  24940. column 2. 
  24941.  
  24942. The erasing is done before the item is displayed. 
  24943.  
  24944. ---End of IBM Extension--- 
  24945.  
  24946.  
  24947. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24948.  
  24949. -----IBM Extension----- 
  24950.  
  24951. The screen item blinks when it appears on the screen. 
  24952.  
  24953. ---End of IBM Extension--- 
  24954.  
  24955.  
  24956. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24957.  
  24958. -----IBM Extension----- 
  24959.  
  24960. The screen item is in high-intensity mode when it appears on the screen. 
  24961.  
  24962. ---End of IBM Extension--- 
  24963.  
  24964.  
  24965. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24966.  
  24967. -----IBM Extension----- 
  24968.  
  24969. The screen item is displayed in reverse image. 
  24970.  
  24971. ---End of IBM Extension--- 
  24972.  
  24973.  
  24974. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24975.  
  24976. -----IBM Extension----- 
  24977.  
  24978. Identifier-4 must be an unsigned numeric integer, and must not be subject to an 
  24979. OCCURS clause. Integer-3 must be unsigned. 
  24980.  
  24981. If identifier-4 or integer-3 has a sign, the compiler uses the absolute value, 
  24982. and issues a warning message. 
  24983.  
  24984. ---End of IBM Extension--- 
  24985.  
  24986.  
  24987. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24988.  
  24989. -----IBM Extension----- 
  24990.  
  24991. The screen item is underlined when it appears on the screen. 
  24992.  
  24993. ---End of IBM Extension--- 
  24994.  
  24995.  
  24996. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  24997.  
  24998. Must be an elementary numeric item. 
  24999.  
  25000.  
  25001. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25002.  
  25003. Must be an elementary numeric or numeric-edited item. 
  25004.  
  25005.  
  25006. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25007.  
  25008. Must be a numeric literal. 
  25009.  
  25010.  
  25011. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25012.  
  25013. For Formats 4 and 5, the quotient used to calculate the remainder is in an 
  25014. intermediate field. The value of the intermediate field is truncated rather 
  25015. than rounded. 
  25016.  
  25017.  
  25018. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25019.  
  25020. The result of subtracting the product of the quotient and the divisor from the 
  25021. dividend is stored in identifier-4. If identifier-3, the quotient, is a 
  25022. numeric-edited item, the quotient used to calculate the remainder is an 
  25023. intermediate field that contains the unedited quotient. 
  25024.  
  25025. Any subscripts for identifier-4 in the REMAINDER phrase are evaluated after the 
  25026. result of the divide operation is stored in identifier-3 of the GIVING phrase. 
  25027.  
  25028.  
  25029. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25030.  
  25031. For Formats 4 and 5, if the size error occurs in the quotient, no remainder 
  25032. calculation is meaningful. Therefore, the contents of the quotient field 
  25033. (identifier-3) and the remainder field (identifier-4) are unchanged. 
  25034.  
  25035. If size error occurs in the remainder, the contents of the remainder field 
  25036. (identifier-4) are unchanged. 
  25037.  
  25038. In either of these cases, you must analyze the results to determine which 
  25039. situation has actually occurred. 
  25040.  
  25041.  
  25042. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25043.  
  25044. This explicit scope terminator delimits the scope of the DIVIDE statement. 
  25045. END-DIVIDE converts a conditional DIVIDE statement into an imperative statement 
  25046. so that it can be nested in another conditional statement. 
  25047.  
  25048.  
  25049. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25050.  
  25051. -----IBM Extension----- 
  25052.  
  25053. Literal or the contents of identifier indicates the program device name of the 
  25054. device to be dropped.  Literal, if specified, must be nonnumeric and 10 
  25055. characters or less in length.  Identifier, if specified, must refer to an 
  25056. alphanumeric data item, 10 characters or less in length. 
  25057.  
  25058. ---End of IBM Extension--- 
  25059.  
  25060.  
  25061. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25062.  
  25063. -----IBM Extension----- 
  25064.  
  25065. File-name must refer to a file with an organization of TRANSACTION, and the 
  25066. file must be open in order to be used in the DROP statement.  If no DROP 
  25067. statement is issued, program devices attached to a TRANSACTION file are 
  25068. implicitly released when that file is finally closed. 
  25069.  
  25070. ---End of IBM Extension--- 
  25071.  
  25072.  
  25073. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25074.  
  25075. A system name that has no defined meaning. It must follow the rules for 
  25076. formation of a user-defined word. At least one character must be alphabetic. 
  25077.  
  25078.  
  25079. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25080.  
  25081. Must follow the rules for formation of a user-defined word. At least one 
  25082. character must be alphabetic. 
  25083.  
  25084.  
  25085. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25086.  
  25087. Separates selection subjects within a set of selection subjects; separates 
  25088. selection objects within a set of selection objects. 
  25089.  
  25090.  
  25091. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25092.  
  25093. This explicit scope terminator serves to delimit the scope of the EVALUATE 
  25094. statement. END-EVALUATE permits a conditional EVALUATE statement to be nested 
  25095. in another conditional statement. 
  25096.  
  25097.  
  25098. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25099.  
  25100. Any selection subject specified by identifier-1, identifier-2, . . . and any 
  25101. selection object specified by identifier-3 and/or identifier-5 without the NOT 
  25102. or THRU phrase, are assigned the value and class of the data item that they 
  25103. reference. 
  25104.  
  25105.  
  25106. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25107.  
  25108. Any selection subject specified by literal-1, literal-2, . . . and any 
  25109. selection object specified by literal-3 and/or literal-5 without the NOT or 
  25110. THRU phrase, are assigned the value and class of the specified literal. If 
  25111. literal-3 and/or literal-5 is the figurative constant ZERO, it is assigned the 
  25112. class of the corresponding selection subject. 
  25113.  
  25114.  
  25115. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25116.  
  25117. Any selection subject in which expression-1, expression-2, . . . is specified 
  25118. as an arithmetic expression, and any selection object without the NOT or THRU 
  25119. phrase in which arithmetic-expression-1 and/or arithmetic-expression-3 is 
  25120. specified, are assigned numeric values according to the rules for evaluating an 
  25121. arithmetic expression. (See Arithmetic Expressions.) 
  25122.  
  25123. Note:   Comparing one arithmetic expression to another is system-specific. The 
  25124.         truth status of the comparison may depend on the intermediate results 
  25125.         created on that system. 
  25126.  
  25127.  Any selection subject in which expression-1, expression-2, . . . is specified 
  25128.  as a conditional expression, and any selection object in which condition-1 
  25129.  and/or condition-2 is specified, are assigned a truth value according to the 
  25130.  rules for evaluating conditional expressions. (See Conditional Expressions.) 
  25131.  
  25132.  
  25133. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25134.  
  25135. Any selection subject or any selection object specified by the words TRUE or 
  25136. FALSE is assigned a truth value. The truth value "true" is assigned to those 
  25137. items specified with the word TRUE, and the truth value "false" is assigned to 
  25138. those items specified with the word FALSE. 
  25139.  
  25140.  
  25141. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25142.  
  25143. Any selection object specified by the word ANY is not further evaluated. 
  25144.  
  25145.  
  25146. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25147.  
  25148. If the THRU phrase is specified for a selection object without the NOT phrase, 
  25149. the range of values is all values that, when compared to the selection subject, 
  25150. are greater than or equal to the first operand and less than or equal to the 
  25151. second operand, according to the rules for comparison. If the first operand is 
  25152. greater than the second operand, there are no values in the range. 
  25153.  
  25154. Note:   Results of comparisons with nonnumeric operands may not be consistent 
  25155.         across systems, if the comparisons depend on the system's native 
  25156.         collating sequence. 
  25157.  
  25158.  
  25159. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25160.  
  25161. If the NOT phrase is specified for a selection object, the values assigned to 
  25162. that item are all values not equal to the value, or range of values, that would 
  25163. have been assigned to the item had the NOT phrase been omitted. 
  25164.  
  25165.  
  25166. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25167.  
  25168. Must be a section or paragraph in the same Procedure Division as the GO TO 
  25169. statement. 
  25170.  
  25171.  
  25172. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25173.  
  25174. Must be a section or paragraph in the Procedure Division. 
  25175.  
  25176.  
  25177. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25178.  
  25179. Must be a numeric elementary data item which is an integer. 
  25180.  
  25181. If 1, control is transferred to the first statement in the procedure named by 
  25182. the first occurrence of procedure-name-1; 
  25183.  
  25184. If 2, control is transferred to the first statement in the procedure named by 
  25185. the second occurrence of procedure-name-1, and so forth. 
  25186.  
  25187. If the value of identifier is anything other than a value within the range of 1 
  25188. through n (where n is the number of procedure-names specified in this GO TO 
  25189. statement), no control transfer occurs. Instead, control passes to the next 
  25190. statement in the normal sequence of execution. 
  25191.  
  25192.  
  25193. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25194.  
  25195. May be any simple or complex condition, as described in Conditional 
  25196. Expressions. 
  25197.  
  25198.  
  25199. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25200.  
  25201. Can be any one of the following: 
  25202.  
  25203.   An imperative statement 
  25204.   A conditional statement 
  25205.   An imperative statement followed by a conditional statement 
  25206.  
  25207.  
  25208. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25209.  
  25210. If the END-IF phrase is specified, the NEXT SENTENCE phrase must not be 
  25211. specified. 
  25212.  
  25213. -----IBM Extension----- 
  25214.  
  25215. NEXT SENTENCE can be specified with END-IF. 
  25216.  
  25217. ---End of IBM Extension--- 
  25218.  
  25219.  
  25220. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25221.  
  25222. May be omitted if it immediately precedes a separator period that ends the IF 
  25223. statement. 
  25224.  
  25225.  
  25226. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25227.  
  25228. This explicit scope terminator serves to delimit the scope of the IF statement. 
  25229. END-IF permits a conditional IF statement to be nested in another conditional 
  25230. statement. 
  25231.  
  25232. For more information, see Delimited Scope Statements. 
  25233.  
  25234.  
  25235. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25236.  
  25237. Receiving area(s). 
  25238.  
  25239.  
  25240. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25241.  
  25242. Sending area(s). 
  25243.  
  25244.  
  25245. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25246.  
  25247. Is the inspected item; an elementary or group item with USAGE DISPLAY. 
  25248.  
  25249. In Format-1, identifier-1 is a sending item.  In the other formats, it is 
  25250. treated as a sending data item for the purpose of determining its length. 
  25251.  
  25252.  
  25253. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25254.  
  25255. The count field. It must be an elementary numeric item defined without the 
  25256. symbol P in its PICTURE character-string. You must initialize identifier-2 
  25257. before the INSPECT statement is executed. 
  25258.  
  25259.  
  25260. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25261.  
  25262. The tallying operand (the item whose occurrences are tallied) If the tallying 
  25263. operand is a figurative constant, it is considered to be a 1-character 
  25264. nonnumeric literal. 
  25265.  
  25266.  
  25267. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25268.  
  25269. The subject field. 
  25270.  
  25271.  
  25272. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25273.  
  25274. The substitution field. 
  25275.  
  25276.  
  25277. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25278.  
  25279. These are not counted or replaced. However, counting and/or replacing of the 
  25280. inspected item is bounded by the presence of the identifiers and literals. If 
  25281. the delimiter (identifier-4 or literal-2) is a figurative constant, it is 
  25282. considered to be 1 character in length. 
  25283.  
  25284.  
  25285. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25286.  
  25287. The name given in the SD entry that describes the record. 
  25288.  
  25289. No file-name may be repeated in the MERGE statement. 
  25290.  
  25291. Do not specify a pair of file names in the MERGE statement that already share 
  25292. storage through a SAME AREA, SAME SORT AREA, or SAME SORT-MERGE AREA clause. 
  25293. However, you may specify file names in the MERGE statement that share the SAME 
  25294. RECORD AREA clause if they are also associated with the GIVING clause 
  25295. (file-name-4). 
  25296.  
  25297.  
  25298. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25299.  
  25300. Is a key data-name. Records are processed in ascending or descending order on 
  25301. this key. 
  25302.  
  25303.  
  25304. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25305.  
  25306. Must be specified in the SPECIAL-NAMES paragraph ALPHABET clause. Any one of 
  25307. the alphabet-name clause phrases can be specified with the following results: 
  25308.  
  25309.   When NATIVE is specified, the EBCDIC collating sequence is used for all 
  25310.    nonnumeric comparisons. 
  25311.  
  25312.   When NLSSORT is specified, the collating sequence is determined by the 
  25313.    LANGID and SRTSEQ parameters of the CRTCBLMOD and CRTBNDCBL commands. 
  25314.  
  25315.   When the literal phrase is specified, the collating sequence established by 
  25316.    the specification of literals in the alphabet-name clause is used for all 
  25317.    nonnumeric comparisons. 
  25318.  
  25319.   When STANDARD-1 is specified, the ASCII collating sequence is used for all 
  25320.    nonnumeric comparisons. 
  25321.  
  25322.   When STANDARD-2 is specified, the International Reference Version of the ISO 
  25323.    7-bit code defined in International Standard 646, 7-bit Coded Character Set 
  25324.    for Information Processing Interchange is used. 
  25325.  
  25326.  
  25327. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25328.  
  25329. Specifies the first (or only) section or paragraph in the OUTPUT PROCEDURE. 
  25330.  
  25331.  
  25332. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25333.  
  25334. Identifies the last section or paragraph of the OUTPUT PROCEDURE. 
  25335.  
  25336.  
  25337. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25338.  
  25339. Sending item 
  25340.  
  25341.  
  25342. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25343.  
  25344. Receiving item or items 
  25345.  
  25346.  
  25347. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25348.  
  25349. Must be an elementary numeric item. 
  25350.  
  25351.  
  25352. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25353.  
  25354. Must be a numeric literal. 
  25355.  
  25356.  
  25357. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25358.  
  25359. Must be an elementary numeric or numeric-edited item. 
  25360.  
  25361.  
  25362. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25363.  
  25364. This explicit scope terminator serves to delimit the scope of the MULTIPLY 
  25365. statement. END-MULTIPLY converts a conditional MULTIPLY statement into an 
  25366. imperative statement. This allows it to be nested in another conditional 
  25367. statement. 
  25368.  
  25369. For more information, see Delimited Scope Statements. 
  25370.  
  25371.  
  25372. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25373.  
  25374. -----IBM Extension----- 
  25375.  
  25376. Permits opening the file for both input and output operations. The I-O phrase 
  25377. can be specified only for files assigned to direct access devices, such as 
  25378. DISK, DATABASE, and workstation files. 
  25379.  
  25380. ---End of IBM Extension--- 
  25381.  
  25382.  
  25383. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25384.  
  25385. Permits opening the file for output operations. 
  25386.  
  25387. The EXTEND phrase must not be specified for a multiple file reel. 
  25388.  
  25389. The EXTEND phrase is not allowed for: 
  25390.  
  25391.   FORMATFILE files 
  25392.   Printer files 
  25393.   DISKETTE files 
  25394.  
  25395.  
  25396. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25397.  
  25398. Designates a file upon which the OPEN statement is to operate. If more than one 
  25399. file is specified, the files need not have the same organization or access. 
  25400. Each file-name must be defined in an FD entry in the Data Division, and must 
  25401. not name a sort or merge file. The FD entry must be equivalent to the 
  25402. information supplied when the file was defined. 
  25403.  
  25404.  
  25405. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25406.  
  25407. Must be a section or paragraph in the Procedure Division. 
  25408.  
  25409. When both procedure-name-1 and procedure-name-2 are specified, if either is a 
  25410. procedure-name in a declarative procedure, both must be procedure-names in the 
  25411. same declarative procedure. 
  25412.  
  25413. If the PERFORM statement is in a declarative section, procedure-name-1 and 
  25414. procedure-name-2 must also be in a declarative section. 
  25415.  
  25416. If procedure-name-1 is specified, imperative-statement and the END-PERFORM 
  25417. phrase must not be specified. 
  25418.  
  25419. If procedure-name-1 is omitted, imperative-statement and the END-PERFORM phrase 
  25420. must be specified. 
  25421.  
  25422.  
  25423. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25424.  
  25425. The statement(s) to be executed for an in-line PERFORM. 
  25426.  
  25427.  
  25428. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25429.  
  25430. Delimits the scope of the in-line PERFORM statement. Execution of an in-line 
  25431. PERFORM is completed after the last statement contained within it has been 
  25432. executed. 
  25433.  
  25434.  
  25435. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25436.  
  25437. Must be an integer item. 
  25438.  
  25439. If identifier-1 is zero or a negative number at the time the PERFORM statement 
  25440. is initiated, control passes to the statement following the PERFORM statement. 
  25441.  
  25442. After the PERFORM statement has been initiated, any change to identifier-1 has 
  25443. no effect in varying the number of times the procedures are initiated. 
  25444.  
  25445.  
  25446. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25447.  
  25448. May be any condition described under Conditional Expressions. If the condition 
  25449. is true at the time the PERFORM statement is initiated, the specified 
  25450. procedure(s) are not executed. 
  25451.  
  25452. Any subscripting associated with the operands specified in condition-1 is 
  25453. evaluated each time the condition is tested. 
  25454.  
  25455.  
  25456. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25457.  
  25458. If the TEST BEFORE phrase is specified or assumed, the condition is tested 
  25459. before any statements are executed (corresponds to DO WHILE). 
  25460.  
  25461. If the TEST AFTER phrase is specified, the statements to be performed are 
  25462. executed at least once before the condition is tested (corresponds to DO 
  25463. UNTIL). 
  25464.  
  25465. In either case, if the condition is true, control is transferred to the next 
  25466. executable statement following the end of the PERFORM statement. If neither the 
  25467. TEST BEFORE nor the TEST AFTER phrase is specified, the TEST BEFORE phrase is 
  25468. assumed. 
  25469.  
  25470.  
  25471. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25472.  
  25473. May be any condition described under Conditional Expressions. If the condition 
  25474. is true at the time the PERFORM statement is initiated, the specified 
  25475. procedure(s) are not executed. 
  25476.  
  25477. After the condition(s) specified in the UNTIL phrase are satisfied, control is 
  25478. passed to the next executable statement following the PERFORM statement. 
  25479.  
  25480. Any subscripting associated with the operands specified in condition-1 or 
  25481. condition-2 is evaluated each time the condition is tested. 
  25482.  
  25483.  
  25484. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25485.  
  25486. When TEST BEFORE is indicated, all specified conditions are tested before the 
  25487. first execution, and the statements to be performed are executed, if at all, 
  25488. only when all specified tests fail. When TEST AFTER is indicated, the 
  25489. statements to be performed are executed at least once, before any condition is 
  25490. tested. Any subscripting associated with the operands specified in condition-1 
  25491. is evaluated each time the condition is tested. 
  25492.  
  25493. If neither the TEST BEFORE nor the TEST AFTER phrase is specified, the TEST 
  25494. BEFORE phrase is assumed. 
  25495.  
  25496.  
  25497. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25498.  
  25499. File-name must be defined in a Data Division FD entry, and must not name a sort 
  25500. or merge file. 
  25501.  
  25502.  
  25503. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25504.  
  25505. The next record in the sequence of records. 
  25506.  
  25507.  
  25508. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25509.  
  25510. This phrase is specified only for indexed files.  Data-name-1 can be qualified; 
  25511. it cannot be subscripted. Data-name-1 must be the prime record key. This phrase 
  25512. is syntax checked only, and treated as documentation. 
  25513.  
  25514.  
  25515. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25516.  
  25517. After each successful completion of a READ statement with the NOT AT END phrase 
  25518. (the high order digit of the file status is 0), control transfers to the 
  25519. imperative statement associated with the phrase. 
  25520.  
  25521.  
  25522. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25523.  
  25524. The INVALID KEY phrase applies only when a relative or indexed file is read in 
  25525. random access mode or dynamic access mode. 
  25526.  
  25527. The INVALID KEY phrase must be specified for files for which there is not an 
  25528. appropriate EXCEPTION/ERROR procedure. 
  25529.  
  25530. For information about INVALID KEY phrase processing, see INVALID KEY Condition. 
  25531.  
  25532.  
  25533. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25534.  
  25535. The NOT INVALID KEY phrase applies only when a relative or indexed file is read 
  25536. in random access mode or dynamic access mode. 
  25537.  
  25538. After the successful completion of a READ statement with the NOT INVALID KEY 
  25539. phrase, control transfers to the imperative statement associated with the 
  25540. phrase. 
  25541.  
  25542.  
  25543. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25544.  
  25545. The NEXT phrase applies only for dynamic access mode. 
  25546.  
  25547. When a relative file is read dynamically and the NEXT phrase is specified, a 
  25548. sequential read is done. When omitted, a random read is done. 
  25549.  
  25550. When an indexed file is read dynamically and the NEXT phrase is specified, a 
  25551. sequential read is done. If NEXT, FIRST, LAST and PRIOR are all omitted, a 
  25552. random access read is done. 
  25553.  
  25554. If a READ NEXT operation is performed on a block of records, a READ PRIOR 
  25555. operation cannot occur until the block is empty. If a READ PRIOR operation is 
  25556. performed first, a READ NEXT operation cannot occur until the block is empty. 
  25557. If this is attempted, a file status of 9U will result. To recover from file 
  25558. status 9U, close the file, then open it again. 
  25559.  
  25560.  
  25561. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25562.  
  25563. -----IBM Extension----- 
  25564.  
  25565. The FIRST phrase applies only when indexed files are accessed dynamically. If 
  25566. NEXT, FIRST, LAST and PRIOR are all omitted, a random access read is done. 
  25567.  
  25568. ---End of IBM Extension--- 
  25569.  
  25570.  
  25571. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25572.  
  25573. -----IBM Extension----- 
  25574.  
  25575. The LAST phrase applies only when indexed files are accessed dynamically. If 
  25576. NEXT, FIRST, LAST and PRIOR are all omitted, a random access read is done. 
  25577.  
  25578. ---End of IBM Extension--- 
  25579.  
  25580.  
  25581. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25582.  
  25583. -----IBM Extension----- 
  25584.  
  25585. The PRIOR phrase applies only when indexed files are accessed dynamically. When 
  25586. specified, a sequential read is done. If NEXT, FIRST, LAST and PRIOR are all 
  25587. omitted, a random access read is done. 
  25588.  
  25589. If a READ PRIOR operation is performed on a block of records, a READ NEXT 
  25590. operation cannot occur until the block is empty. If a READ NEXT operation is 
  25591. performed first, a READ PRIOR operation cannot occur until the block is empty. 
  25592. If this is attempted, a file status of 9U will result. To recover from file 
  25593. status 9U, close the file, then open it again. 
  25594.  
  25595. ---End of IBM Extension--- 
  25596.  
  25597.  
  25598. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25599.  
  25600. This explicit scope terminator serves to delimit the scope of the READ 
  25601. statement. END-READ permits a conditional READ statement to be nested in 
  25602. another conditional statement. END-READ may also be used with an imperative 
  25603. READ statement. 
  25604.  
  25605. For more information, see Delimited Scope Statements. 
  25606.  
  25607.  
  25608. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25609.  
  25610. -----IBM Extension----- 
  25611.  
  25612. The INTO phrase cannot be specified unless: 
  25613.  
  25614.   All records associated with the file and the data item specified in the INTO 
  25615.    phrase are group items or elementary alphanumeric items. 
  25616.  
  25617.    OR 
  25618.  
  25619.   Only one record description is subordinate to the file description entry. 
  25620.  
  25621.  ---End of IBM Extension--- 
  25622.  
  25623.  
  25624. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25625.  
  25626. -----IBM Extension----- 
  25627.  
  25628. The KEY IS phrase may be specified only for indexed files. Data-name must 
  25629. identify a record key associated with file-name-1. Data-name-1 may be 
  25630. qualified; it may not be subscripted. 
  25631.  
  25632. Note:   The KEY IS phrase is syntax checked only and has no effect on the 
  25633. operation of the READ statement. 
  25634.  
  25635. ---End of IBM Extension--- 
  25636.  
  25637.  
  25638. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25639.  
  25640. -----IBM Extension----- 
  25641.  
  25642. Literal-1 or identifier-2 specifies the name of the record format to be read. 
  25643. Literal-1, if specified, must be nonnumeric, uppercase, and 10 characters or 
  25644. less in length.  Identifier-2, if specified, must refer to an alphanumeric data 
  25645. item, 10 characters or less in length.  If identifier-2 contains blanks, the 
  25646. READ statement is executed as if the FORMAT phrase were omitted. 
  25647.  
  25648. ---End of IBM Extension--- 
  25649.  
  25650.  
  25651. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25652.  
  25653. -----IBM Extension----- 
  25654.  
  25655. When the NO DATA phrase is specified, the READ statement will determine whether 
  25656. data is immediately available. If data is available, the data is returned in 
  25657. the record area. If no data is immediately available, imperative-statement-1 is 
  25658. executed.  The NO DATA phrase prevents the READ statement from waiting for data 
  25659. to become available. 
  25660.  
  25661. ---End of IBM Extension--- 
  25662.  
  25663.  
  25664. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25665.  
  25666. -----IBM Extension----- 
  25667.  
  25668. Literal-2 or identifier-3 specifies the program device name. Literal-2, if 
  25669. specified, must be nonnumeric and 10 characters or less in length. 
  25670. Identifier-3, if specified, must refer to an alphanumeric data item, 10 
  25671. characters or less in length. The program device must have been acquired before 
  25672. the READ statement is executed. If identifier-3 contains blanks, the READ 
  25673. statement is executed as if the TERMINAL phrase was omitted. For a single 
  25674. device file, the TERMINAL phrase can be omitted. The program device is assumed 
  25675. to be that single device. 
  25676.  
  25677. If the TERMINAL phrase is omitted for a READ of a Transaction file that has 
  25678. acquired multiple program devices, the default program device is used. 
  25679.  
  25680. ---End of IBM Extension--- 
  25681.  
  25682.  
  25683. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25684.  
  25685. -----IBM Extension----- 
  25686.  
  25687. Specifies which indicators are to be read when a data record is read. 
  25688. Indicators can be used to pass information about the data record and how it was 
  25689. entered into the program. 
  25690.  
  25691. Identifier-4 must be either an elementary Boolean data item specified without 
  25692. the OCCURS clause or a group item that has elementary Boolean data items 
  25693. subordinate to it. 
  25694.  
  25695. For detailed information on the INDICATORS phrase, refer to Using Indicators 
  25696. with Transaction Files in the ILE COBOL/400 Programmer's Guide. 
  25697.  
  25698. ---End of IBM Extension--- 
  25699.  
  25700.  
  25701. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25702.  
  25703. -----IBM Extension----- 
  25704.  
  25705. The AT END phrase serves to explicitly delimit the scope of the statement. 
  25706. Imperative-statement-2 is executed when the AT END condition is detected. The 
  25707. AT END condition occurs when there are no invited program devices and the timer 
  25708. function is not in effect. 
  25709.  
  25710. The AT END phrase should be specified when no applicable USE procedure is 
  25711. specified for the file-name. If the AT END phrase and a USE procedure are both 
  25712. specified for a file, and the AT END condition arises, control transfers to the 
  25713. AT END imperative statement and the USE procedure is not run. 
  25714.  
  25715. ---End of IBM Extension--- 
  25716.  
  25717.  
  25718. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25719.  
  25720. -----IBM Extension----- 
  25721.  
  25722. This phrase allows you to specify procedures that will be performed when the AT 
  25723. END condition does not exist for the statement that is used. 
  25724.  
  25725. ---End of IBM Extension--- 
  25726.  
  25727.  
  25728. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25729.  
  25730. -----IBM Extension----- 
  25731.  
  25732. This explicit scope terminator serves to delimit the scope of the READ 
  25733. statement. END-READ permits a conditional READ statement to be nested in 
  25734. another conditional statement. END-READ may also be used with an imperative 
  25735. READ statement. 
  25736.  
  25737. For more information, see Delimited Scope Statements. 
  25738.  
  25739. ---End of IBM Extension--- 
  25740.  
  25741.  
  25742. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25743.  
  25744. -----IBM Extension----- 
  25745.  
  25746. See Format 4 above for general considerations concerning the TERMINAL phrase. 
  25747.  
  25748. For a Format 5a or 5b READ, if the TERMINAL phrase is omitted for a file that 
  25749. has multiple devices acquired for it, a record is read from the subfile 
  25750. associated with the default program device. 
  25751.  
  25752. ---End of IBM Extension--- 
  25753.  
  25754.  
  25755. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25756.  
  25757. -----IBM Extension----- 
  25758.  
  25759. Specifies which indicators are to be read when a data record is read. 
  25760. Indicators can be used to pass information about the data record and how it was 
  25761. entered into the program. 
  25762.  
  25763. For detailed information on the INDICATORS phrase, refer to Using Indicators 
  25764. with Transaction Files in the ILE COBOL/400 Programmer's Guide. 
  25765.  
  25766. Identifier-4 must be either an elementary Boolean data item specified without 
  25767. the OCCURS clause or a group item that has elementary Boolean data items 
  25768. subordinate to it. 
  25769.  
  25770. ---End of IBM Extension--- 
  25771.  
  25772.  
  25773. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25774.  
  25775. -----IBM Extension----- 
  25776.  
  25777. If the RELATIVE KEY data item at the time of the execution of the READ 
  25778. statement contains a value that does not correspond to a relative record number 
  25779. for the subfile, the INVALID KEY condition exists and the execution of the READ 
  25780. statement is unsuccessful. 
  25781.  
  25782. The INVALID KEY phrase must be specified if the NEXT MODIFIED phrase is not 
  25783. specified and there is no applicable USE procedure specified for the file-name. 
  25784.  
  25785. For information about what happens when the invalid key condition occurs, see 
  25786. INVALID KEY Condition. 
  25787.  
  25788. ---End of IBM Extension--- 
  25789.  
  25790.  
  25791. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25792.  
  25793. -----IBM Extension----- 
  25794.  
  25795. This phrase specifies the procedures that will be performed when an invalid key 
  25796. condition does not exist for the statement that is used. 
  25797.  
  25798. ---End of IBM Extension--- 
  25799.  
  25800.  
  25801. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25802.  
  25803. -----IBM Extension----- 
  25804.  
  25805. If NEXT MODIFIED is specified and there is no user-modified record in the 
  25806. subfile, the AT END condition exists, and the execution of the READ statement 
  25807. is unsuccessful. 
  25808.  
  25809. The AT END phrase should be specified when the NEXT MODIFIED phrase is used, 
  25810. and no applicable USE procedure is specified for the file-name.  If the AT END 
  25811. phrase and a USE procedure are both specified for a file, and the AT END 
  25812. condition arises, control transfers to the AT END imperative statement and the 
  25813. USE procedure is not executed. 
  25814.  
  25815. ---End of IBM Extension--- 
  25816.  
  25817.  
  25818. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25819.  
  25820. -----IBM Extension----- 
  25821.  
  25822. This phrase allows you to specify procedures that will be performed when the AT 
  25823. END condition does not exist for the statement that is used. 
  25824.  
  25825. ---End of IBM Extension--- 
  25826.  
  25827.  
  25828. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25829.  
  25830. -----IBM Extension----- 
  25831.  
  25832. This explicit scope terminator serves to delimit the scope of the READ 
  25833. statement. END-READ permits a conditional READ statement to be nested in 
  25834. another conditional statement. END-READ may also be used with an imperative 
  25835. READ statement. 
  25836.  
  25837. For more information, see Delimited Scope Statements. 
  25838.  
  25839. ---End of IBM Extension--- 
  25840.  
  25841.  
  25842. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25843.  
  25844. Must specify the name of a record in a sort-merge file description entry (SD). 
  25845. Record-name-1 may be qualified. 
  25846.  
  25847.  
  25848. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25849.  
  25850. Makes the RELEASE statement equivalent to the statements: 
  25851.  
  25852. MOVE identifier-1 to record-name-1
  25853. RELEASE record-name-1
  25854.  
  25855. Moving takes place according to the rules for the MOVE statement without the 
  25856. CORRESPONDING phrase. 
  25857.  
  25858.  
  25859. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25860.  
  25861. The name of a record in the File Section, having the same number of character 
  25862. positions as the record being replaced. The name of the record cannot be 
  25863. reference modified. 
  25864.  
  25865.  
  25866. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25867.  
  25868. This is the sending item. 
  25869.  
  25870.  
  25871. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25872.  
  25873. -----IBM Extension----- 
  25874.  
  25875. Multiple data records, each with a different format, can be concurrently active 
  25876. for a Transaction file.  If the FORMAT phrase is specified, it must specify a 
  25877. valid format name that is defined to the system, and the I-O operation must be 
  25878. performed on a data record of the same format.  If the format is an invalid 
  25879. name or if it does not exist, the FILE STATUS data item, if specified, is set 
  25880. to a value of 9K and the contents of the record area are undefined. 
  25881.  
  25882. Note: 
  25883.  
  25884.   1. The record format specified in the FORMAT phrase must be the record format 
  25885.      accessed on the previous read operation. 
  25886.  
  25887.   2. Literal-1 or the contents of identifier-2 must be the name of the subfile 
  25888.      format accessed on the previous READ. 
  25889.  
  25890.  ---End of IBM Extension--- 
  25891.  
  25892.  
  25893. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25894.  
  25895. -----IBM Extension----- 
  25896.  
  25897. The TERMINAL phrase indicates which program device's subfile is to have a 
  25898. record rewritten. If the TERMINAL phrase is specified, literal-2 or 
  25899. identifier-3 must refer to a workstation that has been acquired by the 
  25900. Transaction file.  If literal-2 or identifier-3 contains blanks, the TERMINAL 
  25901. phrase has no effect.  The program device specified by the TERMINAL phrase must 
  25902. have been acquired, either explicitly or implicitly, and must have a subfile 
  25903. associated with the device. 
  25904.  
  25905. Literal-2 or identifier-3 must be a valid program device name.  Literal-2, if 
  25906. specified, must be nonnumeric and 10 characters or less.  Identifier-3, if 
  25907. specified, must refer to an alphanumeric data item, 10 characters or less in 
  25908. length. 
  25909.  
  25910. If the TERMINAL phrase is omitted from a Transaction file that has acquired 
  25911. multiple program devices, the subfile used is the subfile associated with the 
  25912. last program device from which a READ of the Transaction file was attempted. 
  25913.  
  25914. The REWRITE statement cannot be used for communications devices.  If the 
  25915. REWRITE statement is used for a communications device, the operation fails and 
  25916. a file status of 90 is set. 
  25917.  
  25918. ---End of IBM Extension--- 
  25919.  
  25920.  
  25921. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25922.  
  25923. -----IBM Extension----- 
  25924.  
  25925. Specifies which indicators are to be used when a data record is rewritten. 
  25926. Indicators can be used to pass information about the data record and how it was 
  25927. entered into the program. 
  25928.  
  25929. For detailed information on the INDICATORS phrase, refer to Using Indicators 
  25930. with Transaction Files in the ILE COBOL/400 Programmer's Guide. 
  25931.  
  25932. Identifier-4 must be either an elementary Boolean data item specified without 
  25933. the OCCURS clause or a group item that has elementary Boolean data items 
  25934. subordinate to it. 
  25935.  
  25936. ---End of IBM Extension--- 
  25937.  
  25938.  
  25939. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25940.  
  25941. -----IBM Extension----- 
  25942.  
  25943. If, at the time of the rewrite operation, the RELATIVE KEY data item contains a 
  25944. value that does not correspond to the relative record number of the record from 
  25945. the previous read operation, the INVALID KEY condition exists. 
  25946.  
  25947. The INVALID KEY phrase should be specified for files for which an appropriate 
  25948. USE procedure is not specified.  Undesirable results may occur if the INVALID 
  25949. KEY phrase is not specified, and no USE procedure is specified. 
  25950.  
  25951. ---End of IBM Extension--- 
  25952.  
  25953.  
  25954. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25955.  
  25956. -----IBM Extension----- 
  25957.  
  25958. After the successful completion of a REWRITE statement with the NOT INVALID KEY 
  25959. phrase, control transfers to the imperative statement associated with the 
  25960. phrase. 
  25961.  
  25962. ---End of IBM Extension--- 
  25963.  
  25964.  
  25965. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25966.  
  25967. -----IBM Extension----- 
  25968.  
  25969. This explicit scope terminator serves to delimit the scope of the REWRITE 
  25970. statement. END-REWRITE permits a conditional REWRITE statement to be nested in 
  25971. another conditional statement. END-REWRITE may also be used with an imperative 
  25972. REWRITE statement. For more information, see Delimited Scope Statements. 
  25973.  
  25974. ---End of IBM Extension--- 
  25975.  
  25976.  
  25977. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25978.  
  25979. Each condition-name specified must have only a single value, and each must be 
  25980. associated with an ASCENDING/DESCENDING KEY identifier for this table element. 
  25981.  
  25982.  
  25983. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25984.  
  25985. Must specify an ASCENDING/DESCENDING KEY data item in the identifier-1 table 
  25986. element and must be indexed by the first identifier-1 index-name, along with 
  25987. other indexes or literals, as required. Each data-name may be qualified. 
  25988.  
  25989.  
  25990. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25991.  
  25992. Must not be an ASCENDING/DESCENDING KEY data item for identifier-1 or an item 
  25993. that is indexed by the first index-name for identifier-1. 
  25994.  
  25995. Must not be a pointer or procedure-pointer data item. 
  25996.  
  25997.  
  25998. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  25999.  
  26000. May be any of the expressions defined under Arithmetic Expressions, with the 
  26001. following restriction: Any identifier in the arithmetic-expression must not be 
  26002. an ASCENDING/DESCENDING KEY data item for identifier-1 or an item that is 
  26003. indexed by the first index-name for identifier-1. 
  26004.  
  26005. When an ASCENDING/DESCENDING KEY data item is specified, explicitly or 
  26006. implicitly, in the WHEN phrase, all preceding ASCENDING/DESCENDING KEY 
  26007. data-names for identifier-1 must also be specified. 
  26008.  
  26009.  
  26010. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26011.  
  26012. Receiving fields. 
  26013.  
  26014. Must be either index data items or elementary numeric integer items. 
  26015.  
  26016.  
  26017. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26018.  
  26019. Sending field. 
  26020.  
  26021. The value before the SET statement is executed must correspond to the 
  26022. occurrence number of its associated table. 
  26023.  
  26024.  
  26025. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26026.  
  26027. Sending field. 
  26028.  
  26029. Must be either an index data item or an elementary numeric integer item. 
  26030.  
  26031.  
  26032. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26033.  
  26034. Sending field. 
  26035.  
  26036. Must be a positive integer. 
  26037.  
  26038.  
  26039. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26040.  
  26041. This index-name value both before and after the SET statement execution must 
  26042. correspond to the occurrence numbers in an associated table. 
  26043.  
  26044.  
  26045. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26046.  
  26047. This sending field must be an elementary integer data-item. 
  26048.  
  26049.  
  26050. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26051.  
  26052. This sending field must be an integer. 
  26053.  
  26054.  
  26055. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26056.  
  26057. Must be associated with an external switch, the status of which can be altered. 
  26058.  
  26059. For Format 3 each mnemonic-name must be associated with an external switch, the 
  26060. status of which can be altered.  The only external switches allowed are the 
  26061. UPSI switches, UPSI-0 through UPSI-7. 
  26062.  
  26063. The status of each external switch associated with the specified mnemonic-name 
  26064. is modified such that the truth value resultant from evaluation of a 
  26065. condition-name associated with that switch will reflect an on status if the ON 
  26066. phrase is specified, or an off status if the OFF phrase is specified. 
  26067.  
  26068.  
  26069. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26070.  
  26071. Must be associated with a conditional variable. 
  26072.  
  26073.  
  26074. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26075.  
  26076. -----IBM Extension----- 
  26077.  
  26078. Receiving fields. 
  26079.  
  26080. Must be described as USAGE IS POINTER. 
  26081.  
  26082. ---End of IBM Extension--- 
  26083.  
  26084.  
  26085. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26086.  
  26087. -----IBM Extension----- 
  26088.  
  26089. Receiving fields. 
  26090.  
  26091. This is the ADDRESS OF special register. 
  26092.  
  26093. Must be a level-01 or level-77 item defined in the Linkage Section. It is set 
  26094. to the value of the operand specified in the TO phrase. It cannot be 
  26095. subscripted or reference modified. 
  26096.  
  26097. ---End of IBM Extension--- 
  26098.  
  26099.  
  26100. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26101.  
  26102. -----IBM Extension----- 
  26103.  
  26104. Sending field. 
  26105.  
  26106. Must be described as USAGE IS POINTER. 
  26107.  
  26108. Must not contain an address within the program's own Working-Storage or File 
  26109. section. 
  26110.  
  26111. ---End of IBM Extension--- 
  26112.  
  26113.  
  26114. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26115.  
  26116. -----IBM Extension----- 
  26117.  
  26118. Sending field. 
  26119.  
  26120. Must be an item in the data division section of any level except 66 or 88. 
  26121.  
  26122. ADDRESS OF identifier-7 contains the address of the identifier, rather than its 
  26123. contents. Identifier-7 can be subscripted, reference modified, or both. 
  26124.  
  26125. ---End of IBM Extension--- 
  26126.  
  26127.  
  26128. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26129.  
  26130. -----IBM Extension----- 
  26131.  
  26132. Sending field. 
  26133.  
  26134. Sets the receiving field to contain the value of an invalid address. 
  26135.  
  26136. ---End of IBM Extension--- 
  26137.  
  26138.  
  26139. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26140.  
  26141. -----IBM Extension----- 
  26142.  
  26143. Procedure-pointer-data-item-1 is the receiving field. 
  26144.  
  26145. They must be described as USAGE IS PROCEDURE-POINTER. 
  26146.  
  26147. ---End of IBM Extension--- 
  26148.  
  26149.  
  26150. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26151.  
  26152. -----IBM Extension----- 
  26153.  
  26154. Must be defined as an alphanumeric item such that the value can be a program 
  26155. name. (For more information, see PROGRAM-ID Paragraph.) The procedure-pointer 
  26156. data item is set to the outermost COBOL program (an ILE procedure) of the same 
  26157. compilation unit, or to the program object (*PGM), named in identifier-1. The 
  26158. contents of the identifiers are affected by the *MONOPRC option of the 
  26159. CRTCBLMOD or CRTBNDCBL command. 
  26160.  
  26161. ---End of IBM Extension--- 
  26162.  
  26163.  
  26164. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26165.  
  26166. -----IBM Extension----- 
  26167.  
  26168. Must be nonnumeric and must conform to the rules for formation of 
  26169. program-names.  The literals are affected by the *MONOPRC option of the 
  26170. CRTCBLMOD or CRTBNDCBL command.  The procedure-pointer data item can be set to 
  26171. the outermost COBOL program (an ILE procedure) of the same compilation unit, 
  26172. the outermost COBOL program (an ILE procedure) in another compilation unit, an 
  26173. ILE procedure (written in another ILE language), or a program object (*PGM). 
  26174. The procedure-pointer data item cannot be set to a nested COBOL program even if 
  26175. the nested COBOL program of the specified name is visible from the point of 
  26176. SET. The LINKAGE TYPE phrase of the ENTRY clause, along with the LINKAGE TYPE 
  26177. clause of the SPECIAL-NAMES paragraph and the LINKLIT parameter of the 
  26178. CRTCBLMOD or CRTBNDCBL command determine the type of object that the 
  26179. procedure-pointer data item is set to. 
  26180.  
  26181. ---End of IBM Extension--- 
  26182.  
  26183.  
  26184. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26185.  
  26186. -----IBM Extension----- 
  26187.  
  26188. The LINKAGE TYPE phrase is used to specify the type of program that the 
  26189. procedure-pointer data item is set to. It could be set to the address of a 
  26190. separately compiled program object (*PGM) or a procedure within a program. 
  26191.  
  26192. ---End of IBM Extension--- 
  26193.  
  26194.  
  26195. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26196.  
  26197. -----IBM Extension----- 
  26198.  
  26199. The type of program that procedure-pointer-data-item-1 will be set to. 
  26200. Environment-name-1 can be defined as: 
  26201.  
  26202.   PGM (a program object, or *PGM) 
  26203.   PRC (a procedure) 
  26204.  
  26205.  ---End of IBM Extension--- 
  26206.  
  26207.  
  26208. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26209.  
  26210. -----IBM Extension----- 
  26211.  
  26212. Procedure-pointer-data-item-1 is set to a program object (*PGM). 
  26213.  
  26214. ---End of IBM Extension--- 
  26215.  
  26216.  
  26217. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26218.  
  26219. -----IBM Extension----- 
  26220.  
  26221. Procedure-pointer-data-item-1 is set to a procedure. 
  26222.  
  26223. ---End of IBM Extension--- 
  26224.  
  26225.  
  26226. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26227.  
  26228. -----IBM Extension----- 
  26229.  
  26230. Sets the receiving field to contain the value of an invalid address. 
  26231.  
  26232. ---End of IBM Extension--- 
  26233.  
  26234.  
  26235. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26236.  
  26237. The name given in the SD entry that describes the records being sorted. 
  26238.  
  26239.  
  26240. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26241.  
  26242. Specifies a KEY data item on which the sort will be based. Each such data-name 
  26243. must identify a data item in a record associated with file-name-1.  The 
  26244. following rules apply: 
  26245.  
  26246.   A specific KEY data item must be physically located in the same position and 
  26247.    have the same data format in each input file. However, it need not have the 
  26248.    same data-name. 
  26249.  
  26250.   If file-name-1 has more than one record description, then the KEY data items 
  26251.    need be described in only one of the record descriptions. 
  26252.  
  26253.   If file-name-1 contains variable length records, all of the KEY data-items 
  26254.    must be contained within the first n character positions of the record, 
  26255.    where n equals the maximum record size specified for file-name-1. 
  26256.  
  26257.   KEY data items must not contain an OCCURS clause or be subordinate to an 
  26258.    item that contains an OCCURS clause. 
  26259.  
  26260.   The total length of the KEY data item must not exceed 2 000 bytes. 
  26261.  
  26262.   KEY data items can be qualified, but they cannot be subscripted or indexed. 
  26263.  
  26264.    -----IBM Extension----- 
  26265.  
  26266.   KEY data items can be reference modified, but they cannot be subscripted or 
  26267.    indexed. 
  26268.  
  26269.    ---End of IBM Extension--- 
  26270.  
  26271.   Variable length fields can not be used in a SORT key as a variable length 
  26272.    field. Variable length fields are converted into group items by ILE 
  26273.    COBOL/400. Since variable length fields are converted into group items, they 
  26274.    are compared as alphanumeric data items when used in a SORT key. 
  26275.  
  26276.   Date, time, and timestamp fields can not be used as part of a SORT key as 
  26277.    date, time, and timestamp fields.  In ILE COBOL/400, date, time, and 
  26278.    timestamp fields are converted to alphanumeric data items.  They are 
  26279.    compared as alphanumeric data items when used in a SORT key. 
  26280.  
  26281.  SORT lists the KEY data items from left to right in order of decreasing 
  26282.  significance, no matter how they are divided into KEY phrases. The leftmost 
  26283.  data-name is the major key, the next data-name is the next most significant 
  26284.  key, and so forth. 
  26285.  
  26286.  
  26287. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26288.  
  26289. Must be specified in the alphabet-name clause of the SPECIAL-NAMES paragraph. 
  26290. Any one of the alphabet-name clause options may be specified. See SPECIAL-NAMES 
  26291. Paragraph for a list of alphabet-name clause options and their meanings. 
  26292.  
  26293.  
  26294. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26295.  
  26296. The input files. 
  26297.  
  26298.  
  26299. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26300.  
  26301. Specifies the first (or only) section or paragraph in the input procedure. 
  26302.  
  26303.  
  26304. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26305.  
  26306. Specifies the last section or paragraph in the input procedure. 
  26307.  
  26308.  
  26309. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26310.  
  26311. The output files. 
  26312.  
  26313.  
  26314. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26315.  
  26316. Specifies the first (or only) section or paragraph in the output procedure. 
  26317.  
  26318.  
  26319. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26320.  
  26321. Identifies the last section or paragraph in the output procedure. 
  26322.  
  26323.  
  26324. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26325.  
  26326. Must be a file with sequential or dynamic access. File-name-1 must be defined 
  26327. in an FD entry in the Data Division, and must not name a sort file. 
  26328.  
  26329.  
  26330. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26331.  
  26332. Can be qualified or reference modified, but it cannot be subscripted. 
  26333.  
  26334. -----IBM Extension----- 
  26335.  
  26336. Multiple data-names may be specified. All data-names, following the initial 
  26337. data-name, are syntax checked only. 
  26338.  
  26339. ---End of IBM Extension--- 
  26340.  
  26341.  
  26342. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26343.  
  26344. May be numeric, nonnumeric or Boolean, and may be any figurative constant 
  26345. except ALL literal. If the literal is numeric, it must be an unsigned integer. 
  26346.  
  26347.  
  26348. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26349.  
  26350. Represents the sending field(s). When the sending field or any of the 
  26351. delimiters is an elementary numeric item, it must be described as an integer, 
  26352. and its PICTURE character-string must not contain the symbol P. 
  26353.  
  26354.  
  26355. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26356.  
  26357. Represents the sending field(s). All literals must be nonnumeric literals; each 
  26358. may be any figurative constant without the ALL literal. When a figurative 
  26359. constant is specified, it is considered a 1-character nonnumeric literal. 
  26360.  
  26361.  
  26362. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26363.  
  26364. The DELIMITED BY phrase sets the limits of the string. 
  26365.  
  26366.  
  26367. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26368.  
  26369. Are delimiters; that is, character(s) that delimit the data to be transferred. 
  26370.  
  26371. If identifier-1 or identifier-2 occupies the same storage area as identifier-3 
  26372. or identifier-4, undefined results will occur, even if the identifiers are 
  26373. defined by the same data description entry. 
  26374.  
  26375. When a figurative constant is specified, it is considered a 1-character 
  26376. nonnumeric literal. 
  26377.  
  26378.  
  26379. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26380.  
  26381. Transfers the complete sending area. 
  26382.  
  26383.  
  26384. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26385.  
  26386. Represents the receiving field. 
  26387.  
  26388. It must not represent an edited data item and must not be described with the 
  26389. JUSTIFIED clause. It must not be reference modified. 
  26390.  
  26391. If identifier-3 and identifier-4 occupy the same storage area, undefined 
  26392. results will occur, even if the identifiers are defined by the same data 
  26393. description entry. 
  26394.  
  26395.  
  26396. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26397.  
  26398. Represents the pointer field, which points to a character position in the 
  26399. receiving field. 
  26400.  
  26401. It must be an elementary integer data item large enough to contain a value 
  26402. equal to the length of the receiving area plus 1. The pointer field must not 
  26403. contain the symbol P in its PICTURE character-string. 
  26404.  
  26405.  
  26406. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26407.  
  26408. In Formats 1 and 2, identifier-1 and identifier-2 must be elementary numeric 
  26409. items. 
  26410.  
  26411. In Format 2, each identifier-3 following the word GIVING must be a numeric or 
  26412. numeric-edited elementary item. 
  26413.  
  26414. In Format 3, identifier-1 must be a group item. 
  26415.  
  26416.  
  26417. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26418.  
  26419. Must be a numeric literal. 
  26420.  
  26421.  
  26422. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26423.  
  26424. The CORRESPONDING phrase (CORR) allows operations to be performed on elementary 
  26425. numeric data-items of the same name if the group items to which they belong are 
  26426. specified. 
  26427.  
  26428.  
  26429. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26430.  
  26431. This explicit scope terminator delimits the scope of the SUBTRACT statement. 
  26432. END-SUBTRACT converts a conditional SUBTRACT statement into an imperative 
  26433. statement so that it can be nested in another conditional statement. 
  26434.  
  26435. For more information, see Delimited Scope Statements. 
  26436.  
  26437.  
  26438. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26439.  
  26440. Represents the sending field. 
  26441.  
  26442. It must be an alphanumeric data item; it cannot be reference modified. Data is 
  26443. transferred from this field to the receiving fields. 
  26444.  
  26445.  
  26446. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26447.  
  26448. Each represents one delimiter. Each must be an alphanumeric data item. 
  26449.  
  26450.  
  26451. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26452.  
  26453. Each must be a nonnumeric literal; each may be any figurative constant except 
  26454. the ALL literal. When a figurative constant is specified, it is considered to 
  26455. be a 1-character nonnumeric literal. 
  26456.  
  26457.  
  26458. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26459.  
  26460. One or more contiguous occurrences of any delimiters are treated as if they 
  26461. were only one occurrence, and this one occurrence is moved to the delimiter 
  26462. receiving field (if specified). The delimiting characters in the sending field 
  26463. are treated as an elementary alphanumeric item and are moved into the current 
  26464. delimiter receiving field, according to the rules of the MOVE statement. 
  26465.  
  26466. When DELIMITED BY ALL is not specified, and two or more contiguous occurrences 
  26467. of any delimiter are encountered, the current data receiving field is filled 
  26468. with spaces or zeros, according to the description of the data receiving field. 
  26469.  
  26470.  
  26471. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26472.  
  26473. represents the data receiving fields. 
  26474.  
  26475. Each must have USAGE DISPLAY. These fields can be defined as: 
  26476.  
  26477.   Alphabetic 
  26478.   Alphanumeric 
  26479.   Numeric (without the symbol P in the PICTURE string). 
  26480.  
  26481.  
  26482. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26483.  
  26484. Identifier-5 represents the delimiter receiving fields. Identifier-5 must be 
  26485. alphanumeric. 
  26486.  
  26487. The DELIMITER IN phrase can be specified only if the DELIMITED BY phrase is 
  26488. specified. The identifiers must not be defined as alphanumeric edited or 
  26489. numeric edited items. 
  26490.  
  26491.  
  26492. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26493.  
  26494. Identifier-6, an integer data-item defined without the symbol P in the PICTURE 
  26495. string, is the data-count field for each data transfer. Each field holds the 
  26496. count of examined characters in the sending field, terminated by the delimiters 
  26497. or the end of the sending field, for the move to this receiving field; the 
  26498. delimiters are not included in this count. 
  26499.  
  26500. The COUNT IN phrase must not be specified unless the DELIMITED BY phrase is 
  26501. specified. 
  26502.  
  26503.  
  26504. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26505.  
  26506. Identifier-7, an integer data-item defined without the symbol P in the PICTURE 
  26507. string, contains a value that indicates a relative position in the sending 
  26508. field. When this phrase is specified, the user must initialize this field 
  26509. before execution of the UNSTRING statement is begun. 
  26510.  
  26511.  
  26512. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26513.  
  26514. Identifier-8 is the field-count field, initialized by the user through an 
  26515. integer data-item defined without the symbol P in the PICTURE string, and 
  26516. increased by the number of data receiving fields acted upon in this execution 
  26517. of the UNSTRING statement. 
  26518.  
  26519.  
  26520. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26521.  
  26522. This explicit scope terminator serves to delimit the scope of the UNSTRING 
  26523. statement. END-UNSTRING permits a conditional UNSTRING statement to be nested 
  26524. in another conditional statement. END-UNSTRING may also be used with an 
  26525. imperative UNSTRING statement. 
  26526.  
  26527. For more information, see Delimited Scope Statements. 
  26528.  
  26529.  
  26530. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26531.  
  26532. Must be defined in a Data Division FD entry. Record-name-1 may be qualified. It 
  26533. must not be associated with a sort or merge file. 
  26534.  
  26535.  
  26536. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26537.  
  26538. When FROM is specified, the result is the same as: 
  26539.  
  26540. MOVE identifier-1 TO record-name-1
  26541. WRITE record-name-1
  26542. The move is performed according to the rules of the MOVE statement, without the 
  26543. CORRESPONDING phrase. 
  26544.  
  26545. After the WRITE statement is executed, the information is still available in 
  26546. identifier-1, even though it may not be in record-name-1. (See INTO/FROM 
  26547. Identifier Phrase.) 
  26548.  
  26549.  
  26550. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26551.  
  26552. Must be an alphanumeric or numeric edited data item. Data is transferred from 
  26553. this field to the receiving fields. 
  26554.  
  26555.  
  26556. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26557.  
  26558. Must be an integer data item. 
  26559.  
  26560.  
  26561. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26562.  
  26563. This explicit scope terminator serves to delimit the scope of the WRITE 
  26564. statement. END-WRITE permits a conditional WRITE statement to be nested in 
  26565. another conditional statement. END-WRITE may also be used with an imperative 
  26566. WRITE statement. 
  26567.  
  26568. For more information, see Delimited Scope Statements. 
  26569.  
  26570.  
  26571. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26572.  
  26573. Must be defined in a Data Division FD entry. Record-name-1 may be qualified. It 
  26574. must not be associated with a sort or merge file. 
  26575.  
  26576. In the case of relative files, only, the number of character positions in 
  26577. record-name-1 must equal the number of character positions in the record being 
  26578. replaced. It must not be associated with a sort or merge file. 
  26579.  
  26580.  
  26581. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26582.  
  26583. When FROM is specified, the result is the same as: 
  26584.  
  26585. MOVE identifier-1 TO record-name-1
  26586. WRITE record-name-1
  26587.  
  26588. After the WRITE statement is executed, the information is still available in 
  26589. identifier-1, even though it may not be in record-name-1. (See INTO/FROM 
  26590. Identifier Phrase.) 
  26591.  
  26592.  
  26593. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26594.  
  26595. Must be an alphanumeric or numeric-edited data item.  Data is transferred from 
  26596. this field to the receiving fields. 
  26597.  
  26598. Record-name-1 and identifier-1 cannot both refer to the same storage area. 
  26599.  
  26600.  
  26601. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26602.  
  26603. If the NOT INVALID KEY phrase is specified and a valid key condition exists at 
  26604. the end of the execution of the WRITE statement, control is passed to the 
  26605. imperative statement associated with this phrase. 
  26606.  
  26607.  
  26608. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26609.  
  26610. This explicit scope terminator serves to delimit the scope of the WRITE 
  26611. statement. END-WRITE permits a conditional WRITE statement to be nested in 
  26612. another conditional statement. END-WRITE may also be used with an imperative 
  26613. WRITE statement. 
  26614.  
  26615. For more information, see Delimited Scope Statements. 
  26616.  
  26617.  
  26618. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26619.  
  26620. -----IBM Extension----- 
  26621.  
  26622. See Format 4 for general considerations concerning the TERMINAL phrase. 
  26623.  
  26624. The TERMINAL phrase specifies which program device's subfile is to have a 
  26625. record written to it.  If the TERMINAL phrase is specified, literal-2 or 
  26626. identifier-3 must refer to a workstation associated with the TRANSACTION file. 
  26627. If literal-2 or identifier-3 contains a value of blanks, the TERMINAL phrase is 
  26628. treated as if it was not specified. The workstation specified by the TERMINAL 
  26629. phrase must have been acquired, either explicitly or implicitly. 
  26630.  
  26631. If the TERMINAL phrase is omitted, the subfile used is the subfile associated 
  26632. with the default program device. 
  26633.  
  26634. ---End of IBM Extension--- 
  26635.  
  26636.  
  26637. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26638.  
  26639. -----IBM Extension----- 
  26640.  
  26641. The INVALID KEY condition exists if a record is already in the subfile with 
  26642. that record number, or if the relative record number specified is greater than 
  26643. the maximum allowable subfile record number. The INVALID KEY phrase should be 
  26644. specified in the WRITE SUBFILE statement for all files for which an appropriate 
  26645. USE procedure is not specified. 
  26646.  
  26647. ---End of IBM Extension--- 
  26648.  
  26649.  
  26650. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26651.  
  26652. -----IBM Extension----- 
  26653.  
  26654. This phrase allows you to specify procedures that will be performed when an 
  26655. invalid key condition does not exist for the statement that is used. 
  26656.  
  26657. ---End of IBM Extension--- 
  26658.  
  26659.  
  26660. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26661.  
  26662. -----IBM Extension----- 
  26663.  
  26664. This explicit scope terminator serves to delimit the scope of the WRITE 
  26665. statement. END-WRITE permits a conditional WRITE statement to be nested in 
  26666. another conditional statement. END-WRITE may also be used with an imperative 
  26667. WRITE statement. 
  26668.  
  26669. For more information, see Delimited Scope Statements. 
  26670.  
  26671. ---End of IBM Extension--- 
  26672.  
  26673.  
  26674. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26675.  
  26676. The text-name is the name of the member to be copied. The text-name must begin 
  26677. with an alphabetic character. The first 10 characters of the text-name are used 
  26678. as the member name; these first 10 characters must, therefore, be unique within 
  26679. one file. 
  26680.  
  26681. Text-name can be qualified by the library-name and file-name in which it 
  26682. resides. If no file-name is specified, QCBLLESRC is assumed as the file-name. 
  26683. If the copy member is not found in default file QCBLLESRC then file QLBLSRC is 
  26684. searched next for the copy member. If the file-name is not qualified by a 
  26685. library-name, file-name is assumed to reside in a library in the library list. 
  26686. A hyphen is required between library-name and file-name, with no intervening 
  26687. spaces. For example, to qualify file MYFILE in library MYLIB code as 
  26688. MYLIB-MYFILE. 
  26689.  
  26690. The library-name, file-name, and text-name must follow the rules for formation 
  26691. of a program-name. 
  26692.  
  26693.  
  26694. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26695.  
  26696. The first 10 characters of the library-name are used as the identifying name; 
  26697. these first 10 characters must therefore be unique within the system. To 
  26698. qualify file-name, a hyphen is required between library-name and file-name with 
  26699. no intervening spaces. 
  26700.  
  26701.  
  26702. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26703.  
  26704. -----IBM Extension----- 
  26705.  
  26706. The SUPPRESS phrase causes a COPY statement to suppress the listing of copied 
  26707. statements. For its duration, this type of COPY statement overrides any 
  26708. *CONTROL or *CBL statement. 
  26709.  
  26710. If the copied member contains *CONTROL or *CBL statements, the last one runs 
  26711. once the COPY member has been processed. 
  26712.  
  26713. For a nested COPY statement, SUPPRESS is in effect only until the next COPY is 
  26714. encountered. Suppression resumes after the nested COPY is completed. 
  26715.  
  26716. ---End of IBM Extension--- 
  26717.  
  26718.  
  26719. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26720.  
  26721. A sequence of character-strings and/or separators bounded by, but not 
  26722. including, pseudo-text delimiters (==). Both characters of each pseudo-text 
  26723. delimiter must appear on one line; however, character-strings within 
  26724. pseudo-text can be continued. Because of the replacement rules, the continued 
  26725. line of pseudo-text-2 can begin in Area A. 
  26726.  
  26727. A character-string for pseudo-text can consist of single-byte characters of any 
  26728. kind. The prefix portion of a data name, however, cannot be replaced using 
  26729. pseudo-text unless the entire data name is used. 
  26730.  
  26731. Pseudo-text-1 must not be null, nor may it consist solely of the space 
  26732. character, separator comma, separator semicolon, and/or of comment lines. 
  26733. Beginning and ending blanks are not included in the text comparison process. 
  26734. Embedded blanks are used in the text comparison process to indicate multiple 
  26735. text words. 
  26736.  
  26737. Pseudo-text-2 may be null; it may consist solely of space characters and/or 
  26738. comment lines. Each text word in pseudo-text-2 that is to be copied into the 
  26739. program is placed in the same area of the resultant program as the area in 
  26740. which it appears in pseudo-text-2. 
  26741.  
  26742.  
  26743. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26744.  
  26745. May be defined in any Data Division section. 
  26746.  
  26747.  
  26748. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26749.  
  26750. May be numeric or nonnumeric. 
  26751.  
  26752.  
  26753. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26754.  
  26755. May be any single COBOL word (except COPY). 
  26756.  
  26757.  
  26758. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26759.  
  26760. -----IBM Extension----- 
  26761.  
  26762. The DD option or the ALIAS option is used to reference alias (alternate) names. 
  26763. The specification of an alias name in DDS allows a data name of up to 30 
  26764. characters to be included in the COBOL program. 
  26765.  
  26766. When the DD option or the ALIAS option is used, any alias names present replace 
  26767. the corresponding DDS field names. All underscores in the alias names are 
  26768. translated into hyphens before any replacing occurs. 
  26769.  
  26770. ---End of IBM Extension--- 
  26771.  
  26772.  
  26773. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26774.  
  26775. -----IBM Extension----- 
  26776.  
  26777. The DDR option or the SUBSTITUTE option does everything that the DD option 
  26778. does. It also replaces the invalid COBOL characters @, #, $, and _ in a field 
  26779. name (or alias name, if applicable) with the corresponding valid COBOL 
  26780. characters A, N, D, and -. As well, it removes underscores from the end of a 
  26781. field name. 
  26782.  
  26783. ---End of IBM Extension--- 
  26784.  
  26785.  
  26786. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26787.  
  26788. -----IBM Extension----- 
  26789.  
  26790. The DDS option copies in the internal DDS format field names. 
  26791.  
  26792. ---End of IBM Extension--- 
  26793.  
  26794.  
  26795. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26796.  
  26797. -----IBM Extension----- 
  26798.  
  26799. The DDSR option does everything that the DDS option does. It also copies the 
  26800. internal DDS format field names, replacing the invalid COBOL characters @, #, 
  26801. $, and _ with the valid COBOL characters A, N, D, and - accordingly. This 
  26802. option also removes any underscores from the ends of the field names. 
  26803.  
  26804. ---End of IBM Extension--- 
  26805.  
  26806.  
  26807. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26808.  
  26809. -----IBM Extension----- 
  26810.  
  26811. The format-name is the name of the DDS record format definition that is to be 
  26812. translated into COBOL data description entries.  The format-name must follow 
  26813. the rules for formation of any AS/400 name. 
  26814.  
  26815. ---End of IBM Extension--- 
  26816.  
  26817.  
  26818. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26819.  
  26820. -----IBM Extension----- 
  26821.  
  26822. The VLR option specifies copying from variable-length records. Specify the 
  26823. CVTOPT(*VARCHAR) option on the CRTCBLMOD or CRTBNDCBL command to make 
  26824. variable-length records accessible to your program. (DBCS data is not allowed.) 
  26825.  
  26826. ---End of IBM Extension--- 
  26827.  
  26828.  
  26829. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26830.  
  26831. -----IBM Extension----- 
  26832.  
  26833. The PREFIX options allows you to specify a prefix (literal) to be inserted in 
  26834. front of every field name. You can use it to help identify (that is, document) 
  26835. the contents or usage of the field. The literal can be contained within a pair 
  26836. of apostrophes or a pair of quotation marks. 
  26837.  
  26838. ---End of IBM Extension--- 
  26839.  
  26840.  
  26841. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26842.  
  26843. -----IBM Extension----- 
  26844.  
  26845. If ALL-FORMATS is specified without the indicator attribute, each record format 
  26846. is generated as a redefinition of a 05 elementary item defined as either: 
  26847.  
  26848.   the size of the largest record format in the file, if the COPY statement 
  26849.    appears in the FILE SECTION. 
  26850.  
  26851.   the size of the largest record format that will be generated, if the COPY 
  26852.    statement appears outside of the FILE SECTION. 
  26853.  
  26854.  When the indicator attribute is specified, no redefinition takes place. 
  26855.  Instead, each of the formats generates a separate data structure. For details, 
  26856.  refer to INDICATOR Attribute of the Format 2 COPY Statement. 
  26857.  
  26858.  ---End of IBM Extension--- 
  26859.  
  26860.  
  26861. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26862.  
  26863. -----IBM Extension----- 
  26864.  
  26865. File-name is the name of an AS/400 system file. The generated DDS entries 
  26866. represent the record format(s) defined in the file. The file must be created 
  26867. before the program is compiled. 
  26868.  
  26869. ---End of IBM Extension--- 
  26870.  
  26871.  
  26872. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26873.  
  26874. -----IBM Extension----- 
  26875.  
  26876. Library-name is optional. If it is not specified, the current job library list 
  26877. is used as the default value. 
  26878.  
  26879. ---End of IBM Extension--- 
  26880.  
  26881.  
  26882. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26883.  
  26884. Can contain one or more of the following: 
  26885.  
  26886.   Text words 
  26887.   Separator is comma, or semicolon followed by a space 
  26888.   The word COPY, if it begins a valid COPY statement 
  26889.  
  26890.  Character strings can be continued. 
  26891.  
  26892.  
  26893. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26894.  
  26895. -----IBM Extension----- 
  26896.  
  26897. Must be nonnumeric and may be followed by a separator period. Must not be a 
  26898. figurative constant. 
  26899.  
  26900. ---End of IBM Extension--- 
  26901.  
  26902.  
  26903. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26904.  
  26905. Valid for all files. When this option is specified, the procedure is executed 
  26906. only for the file(s) named. No file-name can refer to a sort or merge file. For 
  26907. any given file, only one EXCEPTION/ERROR procedure may be specified; thus, 
  26908. file-name specification must not cause simultaneous requests for execution of 
  26909. more than one EXCEPTION/ERROR  procedure. 
  26910.  
  26911. -----IBM Extension----- 
  26912.  
  26913. The file-name phrase is also valid for TRANSACTION files. 
  26914.  
  26915. ---End of IBM Extension--- 
  26916.  
  26917. A USE AFTER EXCEPTION/ERROR declarative statement specifying the name of a file 
  26918. takes precedence over a declarative statement specifying the open mode of the 
  26919. file. 
  26920.  
  26921.  
  26922. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26923.  
  26924. Valid for all files. When this option is specified, the procedure is executed 
  26925. for all files opened in INPUT mode that get an error. 
  26926.  
  26927.  
  26928. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26929.  
  26930. Valid for all files. When this option is specified, the procedure is executed 
  26931. for all files opened in OUTPUT mode that get an error. 
  26932.  
  26933.  
  26934. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26935.  
  26936. Valid for all direct-access files. When this option is specified, the procedure 
  26937. is executed for all files opened in I-O mode that get an error. 
  26938.  
  26939. -----IBM Extension----- 
  26940.  
  26941. The I-O phrase is also valid for TRANSACTION files. 
  26942.  
  26943. ---End of IBM Extension--- 
  26944.  
  26945.  
  26946. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  26947.  
  26948. When this option is specified, the procedure is executed for all files opened 
  26949. in EXTEND mode that get an error.