Skip to main content Skip to complementary content

Start a process 

AS/400 IBMi program

There is no command to launch a process on an AS/400 IBMi. Nevertheless you can perform the equivalent to a CALL by calling the AS/400 IBMi processor and giving it the desired instruction.

For example to send a message to the Talend Change Data Capture message queue (DD_USRDATA/DDMSGQ), you input the following:

DCL W.QCMDEXC.CMD CHAR 100
DCL W.QCMDEXC.LEN PACKED 15,2
 
W.QCMDEXC.CMD = ‘SNDMSG MSG(‘‘Test’’) TOMSGQ(DD_USRDATA/DDMSGQ)’
W.QCMDEXC.LEN = 50
CALLX QCMDEXC W.QCMDEXC.CMD W.QCMDEXC.LEN

Windows platform

It is possible to directly call the Windows shell by entering the command.

 

Shell

Shell allows to launch a Windows command to be launched (.exe, .bat, .cmd) and does not wait until the end to continue with the following line.

Shell b.Field/Constant 

 

ShellW

This allows a Windows command to be launched (.exe, .bat, .cmd) and does wait until the end to continue with the following line.

ShellW b.Field/Constant

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!