You can insert these micropatterns in the code of all the
Screen and Server types from the PDP COBOL editor, or in
the code of a Macro from the Source code tab.
Branching micropatterns
These micropatterns
generate GO TO statements.
You must conform
to the following input format:
*!GXX
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- GXX is the micropattern identifier: GF, GFA, GD or GDB.
These micropatterns generate different types of branching:
Micropatterns to call Screens or C/S Screens
- The OSC micropattern calls the Screen or C/S
Screen that is indicated in the operands.
You must conform to the
following input format
*!OSC "SCNNNN"
where
:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- OSC is the micropattern identifier.
- " " must frame the operands.
- SCNNNN is the code of the Screen or C/S Screen
called (CL0001 for example).
The
OSC micropattern generates:
MOVE 'SCEXTERN' TO 5-NNNN-PROGE
MOVE 'O' TO OPER
GO TO F4040.
where:
- SCEXTERN is the external name (on 8 characters)
of the SCNNNN Screen or C/S Screen.
- nnnn represent the last 4 characters of the Screen
or C/S Screen (0001 for example).
- The OSD micropattern calls the Screen or C/S
Screen that is indicated in the operands. This call is deferred to
the end of the reception processing.
You must conform to the following
input format
*!OSD "SCNNNN"
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- OSD is the micropattern identifier.
- " " must frame the operands.
- SCNNNN is the Screen or C/S Screen code (CL0001 for
example).
The
OSD micropattern generates
MOVE 'SCEXTERN' TO 5-NNNN-PROGE
MOVE 'O' TO OPER.
where:
- SCEXTERN is the external name (on 8 characters)
of the SCNNNN Screen or C/S Screen.
- NNNN represent the last 4 characters of the Screen
or C/S Screen (0001 for example).
- The OTP micropattern calls the Screen or C/S
Screen whose external name is indicated in the operands.
You must
conform to the following input format
*!OTP "SCEXTERN"
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- OTP is the micropattern identifier.
- " " must frame the operands.
- SCEXTERN is the external name (on 8 characters)
of the SCNNNN Screen or C/S Screen.
The
OTP micropattern generates:
MOVE 'SCEXTERN' TO 5-NNNN-PROGE
MOVE 'O' TO OPER
GO TO F4040.
where:
- NNNN represent the last 4 characters of the Screen
or C/S Screen (0001 for example).
Micropatterns to access Segments
You must
conform to the following input format:
*!XAA "SEGM"
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- XAA is the micropattern identifier (see the table
for the list of the identifiers).
- " " must frame the operands.
- SEGM is the Segment code.
Note: The Segment code is not controlled.
Table 1. Micropatterns for Segment accessingMicropattern identifiers |
Generated result |
XD |
Deletion of the Segment indicated in the operands |
XP |
Read of the first record through a dynamic access.
This micropattern always retrieves a record. Reserved for Segments
defined in a repetitive category with a display use.
|
XR |
Read of the Segment indicated as the operands |
XRN |
Sequential read of the Segment indicated in
the operands (dynamic access) Reserved for Segments defined in a
repetitive category with a display use.
|
XRU |
Read before update of the Segment indicated
in the operands |
XRW |
Rewrite of the Segment indicated in the operands |
XUN |
Unlock of the Segment indicated in the operands.
(except for DL1). |
XW |
Write of the Segment indicated in the operands |
Note: For the OnLine Systems Development function, these micropatterns
can generate the corresponding access function. When the Segment is
an SQL view or table, make sure that the Segment is defined in the
Screen with either a reception or a display use.
These
micropatterns generate the following elements:
- A PERFORM statement for the physical access to
the Segment indicated in the operand
- The corresponding statement in function F80 for the files with
a V (VSAM) organization
Other micropattern related to Segment accessing
The YAA micropattern
generates the F80-SEGM-AA tag. This tag is used when
the physical accesses to the Segment indicated in the operands are
replaced.
You must conform to the following input format:
*!YAA "SEGM"
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- YAA is the micropattern identifier. AA represents
the last 2 characters of the Segment accessing operator (R for READ, W for WRITE, RW for REWRITE, D for DELETE for
example).
- " " must frame the operands.
- SEGM is the Segment code.
Note: The value of the Segment accessing operator and the Segment
code are not controlled.
Micropatterns to position errors
These errors
are detected by specific code. They can be associated with a Data
Element called on a Screen , C/S Screen, or Server (
ERR micropattern),
or they can be common to all the Screens of a Dialog or all the Servers
of a Server Dialog (
ERU micropattern).
Micropattern to generate the automatic function labels
in the Business Component
The Y micropattern
can be indicated in Business Components only. It generates the label
of an automatic function or subfunction that was replaced with specific
code (*R).
Enter the
Y micropattern
with the following input format:
*!Y
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- Y is the micropattern identifier.
Micropattern to generate the list of PCBs
The PCB micropattern
can be indicated in the WORKING-STORAGE SECTION or PROCEDURE
DIVISION of a standard Screen, client Screen, or Server.
It is used to generate the list of the PCBs that are associated with
the PSB. The PSB is indicated in the Screen (PSB= option
in the -GG Lines) or the Dialog (Complement tab).
Enter
the
PCB micropattern with the following input format:
*!PCB
where:
- *! is the required start tag of
the micropattern. The * must be entered in column
7, reserved for the comments in the COBOL code, and the ! must
be entered in column 8.
- PCB is the micropattern identifier.