Local Program Code

Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

You write and execute local code specifically in one program. It can consist of a main paragraph, other paragraphs that the main paragraph performs, and Data Division source code for the paragraphs. You write local code in the Program Painter. When you generate your program, AMB inserts the code in the program and generates a PERFORM statement to perform it.

Observe the following coding rules.

For example:

        statement
            .
            .
            .
        PERFORM paragraphname [(arguments)]
 PARA   paragraphname [(+|-arguments)]
        statement
            .
            .
            .
 WS
 01     groupleveldataitem
        05  elementarydataitem
            .
            .
            .