Program Source File Names
Application programs include several segments, some that are specific to the program (for example, the Calculation and Definition Specifications) and some that are global to the application system to which the program belongs (for example, database input and output routines).
All Lawson application files are named according to a specific naming convention and are processed by standard input and output procedures. This lets you take advantage of Lawson’s external program features. All programming is done either as small segments or as parameters passed to other programs. This eliminates the need to do any detailed (low-level) programming for input or output.
The procedural code that you define contains only the logic necessary to edit and process the screen; the Environment programs handle all other functions.
The following table lists the source files that are specific to a program, where "xxxxx" is the program name. The name of each of these files must use the format shown below, or the program will not run.
Source File | Name Format | Source Type |
---|---|---|
Program procedures |
xxxxxPD.COPYPGM
|
RPGLE |
Form definition |
xxxxxD.SCRN
|
SCRN |
Form definition copybook |
xxxxxDSD.COPYILE
|
COPYILE |
Form definition interface copybook |
xxxxxDSDC.COPYILE
|
COPYILE |
Report definition |
xxxxxP.PRNT
|
PRNT |
Report definition copybook |
xxxxxPRD.COPYILE
|
COPYILE |
For example, the form definition for AP00 is named AP00D.SCRN.
All programs have a form definition and a form definition copybook. Invokable programs have a form definition interface copybook. Report programs also have a report definition and a report definition copybook. The form definition copybook and form definition interface copybooks contain the Definition Specifications or data structures for the form, and the report definition copybook contains the Definition Specifications or data structures for the report.