ILE procedures for LAUNCHER Office are defined in service program "LAUNCHER" in library LAUNCHER.
To create ILE programs using LAUNCHER Office, create the modules with the compiler, and then, create the program bound to the service program :
CRTPGM PGM(MYPROG) MODULE(MYMODULE) … BNDSRVPGM(LAUNCHER) …
In your source code, when calling a LAUNCHER Office procedure, choose the calling methods from the programming language, that send the "Operational Descriptor" to the called procedure.
In CL, "Operational descriptor" is always sent:
CALLPRC
PRC'(LNCCMD) PARM(&HANDLE 'WORDOPEN' +
*OMIT +
'New;Visible=True' *OMIT &RESULT)
With CALLB, in RPG ILE, use option (D):
CALLB(D)
'LNCCMD'
PARM Handle
PARM Cmd
PARM Opt
PARM Parm1
PARM Parm2
PARM Result
With CALLP, in RPG ILE:
D
lnccmd PR ExtProc('LNCCMD') OPDESC
D handle 50 const options(*varsize)
D cmd 10 const options(*varsize)
D opt 1 const options(*varsize:*omit)
D parm1 16000 const options(*varsize:*omit)
D parm2 16000 const options(*varsize:*omit)
D result 16000 options(*varsize:*omit)
c callp
lnccmd(handle:'SHELL':'0':
c parm1:parm2:result)
See the samples sources in files QCLSRC and QRPGSRC, library LAUNCHER.