Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
You write code that can you use throughout your application. Global code can consist of a main paragraph and other paragraphs
that the main paragraph performs. You write global code in the Program Painter.
Observe the following coding rules.
- On the first line, enter any COBOL or S-COBOL procedural source code or write one or more paragraphs.
- To define a paragraph, type the PARA keyword in columns 4 through 7 and the paragraph name in column 12 on the same line.
On the following lines, enter paragraph statements starting in column 12. Do not use any other AMB keywords in the paragraph.
In the paragraph, you can perform additional paragraphs that you write in the global code.
- To define an additional paragraph that the main paragraph performs, enter the PARA keyword columns 4 through 7 and the paragraph
name starting in column 12 on the same line. On the following lines, enter your paragraph statements.
For example:
PERFORM paragraphname
PARA paragraphname
statement
.
.
.
PERFORM subparagraphname [(arguments)]
PARA subparagraphname [(+|-arguments)]
statement
.
.
.