The Program context (PGM) contains system fields that control the execution of a function. An example of a PGM field would be *Program Mode which determines the program mode in which a program executes.
The fields that appear in the PGM context are defined in a system file called *Program Data.
The PGM fields are:
|
Fields |
Attr |
condition |
DSP Value |
|---|---|---|---|
|
*Program mode |
STS |
*ADD *AUTO *CHANGE *DISPLAY *ENTER *SELECT |
ADD AUTO CHANGE DISPLAY ENTER SELECT |
|
*Return code |
STS |
*NORMAL *User QUIT requested |
*BLANK Y2U9999 |
|
*Record data changed |
STS |
*NO *YES |
N Y |
|
*Record selected |
STS |
*NO *YES |
N Y |
|
*Reload subfile |
STS |
*NO *YES |
N Y |
|
*Scan limit |
NBR |
- |
- |
|
*Defer confirm |
STS |
*Defer confirm *Proceed to confirm |
Y N |
|
*Print format |
STS |
*Do not print format *Print format |
N Y |
|
*Continue transaction |
STS |
*NO *YES |
N Y |
|
*Next RDB |
VNM |
- |
- |
|
*cursor filed |
VNM |
- |
- |
|
*cursor row |
NBR |
- |
- |
|
*cursor column |
NBR |
- |
- |
|
*Re-read Subfile Record |
STS |
*NO *YES |
N Y |
|
*Initial call |
STS |
*NO *YES |
N Y |
|
*Sbmjob override string |
TXT |
– |
– |
|
*Sbmjob job name |
VNM |
– |
– |
|
*Sbmjob job user |
VNM |
– |
– |
|
*Sbmjob job number |
CDE |
– |
– |
|
*Synon work field (15,0) |
NBR |
- |
- |
|
*Synon work field (15,2) |
NBR |
- |
- |
|
*Synon work field (15,5) |
NBR |
- |
- |
|
*Synon work field (17,5) |
NBR |
- |
- |
|
*Synon work field (17,7) |
NBR |
- |
- |
|
*Synon work field (17,9) |
NBR |
- |
- |
The Display value can be translated to other national languages if appropriate.
You can use the fields in the PGM context to control processing within function.
Each field is discussed briefly following:
|
Copyright © 2014 CA.
All rights reserved.
|
|