I came across the below code in a fully free RPG program.
dcl-ds *N;
*N char(2) inz('PR');
//STR0037123 - start
*N char(2) inz('ER');
*N char(2) inz('MP');
*N char(2) inz('PC');
*N char(2) inz('PT');
*N char(2) inz('RB');
*N char(2) inz('RG');
*N char(2) inz('RL');
*N char(2) inz('RT');
*N char(2) inz('TB');
*N char(2) inz('TO');
*N char(2) inz('TP');
*N char(2) inz('TV');
//STR0037123 - end
wPRGroupDOM char(2) dim(13) pos(1);
end-ds;
Can someone please help me to understand what this means? To me it seems like a compile time array but I am not sure why it seems to be declared like a data structure.
This has been used in the code as below:
if %lookup(Ipl9022L(wIdx).RIGHTCODE : wPRGroupDOM) > *zero;
Can someone please help with the equivalent fixed format declaration of this??