AMB provides rule name suffixes that the flags recognize and invoke automatically. These rule name suffixes reside in the AMB CNTL file GENSYMB2. To enable a flag, set it to 1.
&SCRGEN-RDF-REC |
Use for redefining an entire screen record description. The flag invokes the $screenname-RECORD-RDF rule, which you write. |
&SCRGEN-RDF-TAB |
Use for redefining a screen table. The flag invokes the $screenname-TABLE-n-RDF rule, which you write. |
&SCRGEN-RDF-FLD |
Use for redefining a screen field. The flag invokes the $screenname-fieldname-RDF rule, which you write. |
Using the USERMACS rule library, you can create a rule to redefine your screen record description. Use the following rule naming conventions:
Redefinition | Rule Name |
---|---|
Table in a record description |
$screenname-TABLE-n-RDF Where n is the table position in sequence with other tables on the screen, counting from top to bottom on the screen. |
Field in a record description |
$screenname-fieldname-RDF |
Entire record description |
$screenname-RECORD-RDF |
% DEFINE $INVENT-PARTNO-RDF &12+05 INVENT-PARTNO-Z99 &36+REDEFINES INVENT-PARTNO &40+PIC Z99.
% DEFINE $INVENT-TABLE-1-RDF &12+05 FILLER &46+REDEFINES INVENT-TABLE-1. &16+10 FILLER &46+OCCURS &INVENT-TABLE-1-MAX. $SC-REP-FIELD-HEADER-0("PART-NO-ROW") &20+15 INVENT-PART-NO-ROW-EDITED &46+PIC ZZZ9. % END