Micro Focus RM/COBOL RM/COBOL Syntax Summary Contents Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com Copyright © Micro Focus 2017. All rights reserved. MICRO FOCUS, the Micro Focus logo, and Micro Focus product names are trademarks or registered trademarks of Micro Focus Development Limited or its subsidiaries or affiliated companies in the United States, United Kingdom, and other countries. All other marks are the property of their respective owners. Revised 2017-06-07 for version 12.15 Contents RM/COBOL Commands ........................................................................... 1 Compile Command .................................................................................................................... 1 Runtime Command .................................................................................................................... 3 Debug Command ....................................................................................................................... 4 RM/COBOL Language Syntax ................................................................. 9 Source Program General Format ................................................................................................ 9 Identification Division General Format ..................................................................................... 9 Environment Division General Format .................................................................................... 10 File Control Entry General Formats ................................................................................. 12 Data Division General Format ................................................................................................. 14 file-description-entry ........................................................................................................ 15 sort-merge-file-description-entry ...................................................................................... 15 record-description-entry.................................................................................................... 16 77-level-description-entry ................................................................................................. 16 data-description-entry ....................................................................................................... 16 communication-description-entry ..................................................................................... 19 screen-description-entry.................................................................................................... 20 Procedure Division General Formats ....................................................................................... 23 Procedure Division Verbs ........................................................................................................ 24 ACCEPT Statement .......................................................................................................... 24 ADD Statement ................................................................................................................. 26 ALTER Statement ............................................................................................................ 27 CALL Statement ............................................................................................................... 27 CALL PROGRAM Statement .......................................................................................... 28 CANCEL Statement ......................................................................................................... 28 CLOSE Statement ............................................................................................................. 29 COMPUTE Statement ...................................................................................................... 29 CONTINUE Statement ..................................................................................................... 29 DELETE Statement .......................................................................................................... 29 DELETE FILE Statement ................................................................................................. 29 DISABLE Statement ........................................................................................................ 30 DISPLAY Statement ........................................................................................................ 30 DIVIDE Statement ............................................................................................................ 32 ENABLE Statement .......................................................................................................... 33 ENTER Statement ............................................................................................................ 33 EVALUATE Statement .................................................................................................... 34 EXIT Statement ................................................................................................................ 34 GOBACK Statement ........................................................................................................ 35 GO TO Statement ............................................................................................................. 35 IF Statement ...................................................................................................................... 35 INITIALIZE Statement..................................................................................................... 36 INSPECT Statement ......................................................................................................... 36 RM/COBOL Syntax Summary iii Contents MERGE Statement ........................................................................................................... 38 MOVE Statement .............................................................................................................. 38 MULTIPLY Statement ..................................................................................................... 38 OPEN Statement ............................................................................................................... 39 PERFORM Statement ....................................................................................................... 39 PURGE Statement ............................................................................................................ 41 READ Statement .............................................................................................................. 41 RECEIVE Statement ........................................................................................................ 41 RELEASE Statement ........................................................................................................ 42 RETURN Statement ......................................................................................................... 42 REWRITE Statement ........................................................................................................ 42 SEARCH Statement .......................................................................................................... 42 SEND Statement ............................................................................................................... 43 SET Statement .................................................................................................................. 44 SORT Statement ............................................................................................................... 45 START Statement ............................................................................................................. 46 STOP Statement................................................................................................................ 46 STRING Statement ........................................................................................................... 47 SUBTRACT Statement..................................................................................................... 47 UNLOCK Statement ......................................................................................................... 48 UNSTRING Statement ..................................................................................................... 48 USE Statement .................................................................................................................. 49 WRITE Statement ............................................................................................................. 49 END PROGRAM Header General Format .............................................................................. 50 COPY and REPLACE Statement General Formats ................................................................. 50 General Formats for Conditions ............................................................................................... 51 General Formats for Qualification ........................................................................................... 53 Miscellaneous Formats ............................................................................................................ 54 Sentence ............................................................................................................................ 54 Statement Sequence .........................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages156 Page
-
File Size-