As I can know the address of a variable, when the name of the variable that is required to know this as data within a table ...
S.S.
S.S.
A FIELD1 10 B 3 29DSPATR(&@FIELD1)
A FIELD2 10 B 3 70DSPATR(&@FIELD2)
A FIELD3 10 B 6 55DSPATR(&@FIELD3)
A FIELD4 10 B 7 56DSPATR(&@FIELD4)
A FIELD5 10 B 8 55DSPATR(&@FIELD5)
A FIELD6 10 B 9 56DSPATR(&@FIELD6)
A FIELD7 10 B 10 55DSPATR(&@FIELD7)
A FIELD8 10 B 11 55DSPATR(&@FIELD8)
*
A @FIELD1 1A P
A @FIELD2 1A P
A @FIELD3 1A P
A @FIELD4 1A P
A @FIELD5 1A P
A @FIELD6 1A P
A @FIELD7 1A P
A @FIELD8 1A P
FIELD1 Y FIELD2 N FIELD3 Y FIELD4 Y FIELD5 Y FIELD6 Y FIELD7 N FIELD8 N
FTabField if e disk
FDspField cf e WorkStn
*
D Field_Ptr S *
*
D Field_Cmp Ds Based(Field_Ptr)
*
D TxtField S 15A
*
/FREE
Read TabFieldR;
Dow not %Eof ;
TxtField = '@'+trim(Field);
Field_Ptr = %Addr(TxtField);
if Protected = 'Y';
Field_Cmp = '0A';
else;
Field_Cmp = ' ';
endif;
Read TabFieldR;
EndDo ;
exfmt Rdto;
Comment