OpenCOBOL 1.1 Programmers Guide
06FEB2009 Version 8
Figure 6-42 - DISPLAY (Access / Set Environment Variables) Syntax ............................................................................. 6-42
Figure 6-43 - DISPLAY (Screen Data) Syntax .................................................................................................................. 6-43
Figure 6-44 - Exception Handling (DISPLAY) Syntax....................................................................................................... 6-44
Figure 6-45 - DIVIDE INTO Syntax .................................................................................................................................. 6-45
Figure 6-46 - DIVIDE INTO GIVING Syntax ..................................................................................................................... 6-45
Figure 6-47 - DIVIDE BY GIVING Syntax ......................................................................................................................... 6-46
Figure 6-48 - DIVIDE INTO REMAINDER Syntax ............................................................................................................. 6-46
Figure 6-49 - DIVIDE BY REMAINDER Syntax ................................................................................................................. 6-47
Figure 6-50 - ENTRY Syntax............................................................................................................................................ 6-48
Figure 6-51 - EVALUATE Syntax ..................................................................................................................................... 6-49
Figure 6-52 - An EVALUATE Demo Program .................................................................................................................. 6-50
Figure 6-53 - EXIT Syntax ............................................................................................................................................... 6-51
Figure 6-54 - Using the EXIT Statement ......................................................................................................................... 6-51
Figure 6-55 - Using EXIT PARAGRAPH ............................................................................................................................ 6-51
Figure 6-56 - Using the EXIT PERFORM Statement ........................................................................................................ 6-51
Figure 6-57 - FREE Syntax .............................................................................................................................................. 6-53
Figure 6-58 - GENERATE Syntax ..................................................................................................................................... 6-54
Figure 6-59 - GOBACK Syntax ........................................................................................................................................ 6-55
Figure 6-60 - Simple GOTO Syntax ................................................................................................................................. 6-56
Figure 6-61 - GOTO DEPENDING ON Syntax .................................................................................................................. 6-56
Figure 6-62 - GOTO DEPENDING ON vs IF vs EVALUATE................................................................................................ 6-56
Figure 6-63 - IF Syntax ................................................................................................................................................... 6-57
Figure 6-64 - INITIALIZE Syntax ...................................................................................................................................... 6-58
Figure 6-65 - INITIATE Syntax ........................................................................................................................................ 6-59
Figure 6-66 - INSPECT Syntax ......................................................................................................................................... 6-60
Figure 6-67 - An INSPECT TALLYING Example ................................................................................................................ 6-61
Figure 6-68 - MERGE Syntax .......................................................................................................................................... 6-63
Figure 6-69 - Simple MOVE Syntax ................................................................................................................................ 6-65
Figure 6-70 - MOVE CORRESPONDING Syntax .............................................................................................................. 6-65
Figure 6-71 - MULTIPLY BY Syntax ................................................................................................................................. 6-67
Figure 6-72 - MULTIPLY GIVING Syntax ......................................................................................................................... 6-67
Figure 6-73 - NEXT SENTENCE Syntax ............................................................................................................................ 6-68
Figure 6-74 - OPEN Syntax ............................................................................................................................................. 6-69
Figure 6-75 - Procedural PERFORM Syntax ................................................................................................................... 6-70
Figure 6-76 - Inline PERFORM Syntax ............................................................................................................................ 6-71
Figure 6-77 – READ (Sequential) Syntax ........................................................................................................................ 6-72
Figure 6-78 - READ (Random) Syntax ............................................................................................................................ 6-73
Figure 6-79 - RELEASE Syntax ........................................................................................................................................ 6-75
Figure 6-80 - RETURN Syntax ......................................................................................................................................... 6-76
Figure 6-81 - REWRITE Syntax ....................................................................................................................................... 6-77
Figure 6-82 - ROLLBACK Syntax ..................................................................................................................................... 6-78
Figure 6-83 - Sequential SEARCH Syntax ....................................................................................................................... 6-79
Figure 6-84 - Binary SEARCH (ALL) Syntax ..................................................................................................................... 6-80
Figure 6-85 - SET ENVIRONMENT Syntax....................................................................................................................... 6-82
Figure 6-86 - SET Program Pointer Syntax ..................................................................................................................... 6-82
Figure 6-87 - SET ADDRESS Syntax................................................................................................................................. 6-82
Figure 6-88 - SET Index Syntax ....................................................................................................................................... 6-83
Figure 6-89 - SET UP/DOWN Syntax .............................................................................................................................. 6-83
Figure 6-90 - SET Condition Name Syntax ..................................................................................................................... 6-83
Figure 6-91 - SET Switch Syntax ..................................................................................................................................... 6-84
Figure 6-92 - File-Based SORT Syntax ............................................................................................................................ 6-85
Figure 6-93 - Table SORT Syntax .................................................................................................................................... 6-87
Figure 6-94 - START Syntax ............................................................................................................................................ 6-88
Figure 6-95 - STOP Syntax .............................................................................................................................................. 6-90
Figure 6-96 - STRING Syntax .......................................................................................................................................... 6-91
Figure 6-97 - SUBTRACT FROM Syntax .......................................................................................................................... 6-92
Figure 6-98 - SUBTRACT GIVING Syntax ........................................................................................................................ 6-92