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 CommandLine PR ExtPgm('QCMDEXC')
D Cmd 200 Const Options(*VarSize)
D Len 15 5 Const
D
D ChangeSplfA S 200 Inz(*Blanks)
D SplfName S 10 Inz(*Blanks)
D JobNbr S 6S 0 Inz(*Blanks)
D JobName S 10 Inz(*Blanks)
D JobUser S 10 Inz(*Blanks)
D SplfNbr S 4S 0 Inz(0)
//------------------------------------------------------------------------
/Free
// Code to promptthe user to enterthe information needed
// like SPLF name, job nbr, job name, user, etc.
ChangeSplfA = 'ChgSplfA File(' + %Trim(SplfName) + ')' +
'Job(' + %Trim(%EditC(JobNbr:'X')) + '/' +
%Trim(JobUser) + '/' +
%Trim(JobName) + ')' +
'SplNbr(' + %Trim(%EditC(SplfNbr:'Z') + ')'
// add whatever field you want to change after that, like OUTQ,
// PRINTER, etc...
CommandLine(ChangeSplfA:%Len(ChangeSplfA));
/End-Free
Eval string = '?CHGSPLFA ?*FILE(' + %Trim(SplfName) + ')' +
' Job(' + %Trim(%EditC(JobNbr:'X')) + '/' +
%Trim(JobUser) + '/' +
%Trim(JobName) + ') ' +
'??PRINTER(PRT01)'