PeteAmsterdam
Programmer
I was reading an RPG 400 book. they talked about pointers in the RPG program. I have never seen any code using this.
How is it used?
How is it used?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* Named indicators
D DS Based( IndicatorP )
D Exit 3 3N
D Refresh 5 5N
D F06 6 6N
D Update 10 10N
D Cancel 12 12N
D RollDown 26 26N
D RollUp 27 27N
D Error 30 30N
D OpenError 76 76N
D DspMessage 80 80N
D SflDsp 81 81N
D SflDspCtl 82 82N
D SflClr 83 83N
D LastRecord 89 89N
D SubfileEOF 90 90N
D RcdNotFound 99 99N
D IndicatorP S * Inz( %Addr( *In ) )
// Always display the message subfile
DspMessage = *ON;
// Mainline code
DoW NOT Exit;
Request = 'DISPLAY';
ExSr MsgRoutine;
Write MSGCTL;
ExFmt EFD020A;
If NOT Exit;
Chain DBKEYS EFLACHDC03;
If NOT( %FOUND( EFLACHDC03 ) );
IndAndMsg = '00' + 'XAI0001';
Request = 'SNDMSG';
ExSr MsgRoutine;
Else;
DoW NOT Exit And NOT Cancel;
Request = 'DISPLAY';
ExSr MsgRoutine;
Write MSGCTL;
ExFmt EFD020B;
If Cancel;