Get display information
Get Display returns the column headings for the member selection list panel when no member name or member name pattern is specified. The panel looks like this:
(Sel) (LHS) (Prompt) (RHS)
Sel Name Prompt Date Created …
_ MEMBER01 *Browsed 08/02/2003 14:53 …
_ MEMBER02 12/21/2002 08:22 …
The names in parentheses at the top of the illustration are used in this example to describe the columns. There is a selection prefix area called Sel. There is a member name field called LHS (meaning the left hand side of the prompt). There is a prompt field, sometimes blank, and sometimes filled with information from File Manager about past actions. The RHS contains any attribute information desired.
The GetDisplayInfo call returns the following static (unchanging) data structure with the heading:
01 DISP-INFO-RETURN-AREA.
05 DISP-INFO-RETURN-ATTR1 PIC 9(4) COMP-5 VALUE 20000.
05 DISP-INFO-RETURN-L11 PIC 9(4) BINARY VALUE 10.
05 DISP-INFO-RETURN-L12 PIC 9(4) BINARY VALUE 10.
05 DISP-INFO-RETURN-LHS PIC X(8) VALUE " Name ".
05 DISP-INFO-RETURN-ATTR2 PIC 9(4) COMP-5 VALUE 20001.
05 DISP-INFO-RETURN-L21 PIC 9(4) BINARY VALUE 51.
05 DISP-INFO-RETURN-L22 PIC 9(4) BINARY VALUE 51.
05 DISP-INFO-RETURN-RHS PIC X(51)
VALUE " Id Changed Recs Created".
05 DISP-INFO-RETURN-ATTR3 PIC 9(4) COMP-5 VALUE 20002.
05 DISP-INFO-RETURN-L31 PIC 9(4) BINARY VALUE 8.
05 DISP-INFO-RETURN-L32 PIC 9(4) BINARY VALUE 8.
05 DISP-INFO-RETURN-PROMP PIC X(8) VALUE " Prompt".
05 DISP-INFO-RETURN-ATTR4 PIC 9(4) COMP-5 VALUE 20003.
05 DISP-INFO-RETURN-L41 PIC 9(4) BINARY VALUE 4.
05 DISP-INFO-RETURN-L42 PIC 9(4) BINARY VALUE 4.
05 DISP-INFO-RETURN-PROMP PIC X(4) VALUE "Sel ".
05 DISP-INFO-RETURN-END PIC X(2) VALUE X"FFFF".