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.
D Prg_Name S 10A
D Parm1 S 10A
D Parm2 S 10A
// Prototype for variable program
D Call_Something PR Extpgm(Prg_Name)
D Parm1 10A
D Parm2 10A
/Free
Select;
When One_Thing;
Prg_Name = 'PGMA';
When Another_Thing;
Prg_Name = 'PGMB';
Endsl;
Parm1 = 'Whatever';
parm2 = 'You_Want';
Call_Something(Parm1:Parm2);
/End-Free
IBM said:The recommended way to call a program or procedure (written in any language) is to code a prototyped call.