Running Applications From Qshell

The Qshell environment provides an interactive display with a multi-threaded environment. The tibemsMsgProducer sample program (SXJ3MP) is easily invoked using a symbolic link:

cd EMI_HOME/samples/c

followed by one of the following forms:

   SXJ3MP -server tcp://url-id1:7222 -topic TEST1 'Hello World'

or

   tibemsMsgProducer -server tcp://url-id1:7222 -topic TEST1 'Hello World'
You can also invoke the tibemsMsgProducer sample program in either of the following two ways:
  • From the QSYS File System:
    /QSYS.LIB/samplib.LIB/SXJ3MP.PGM
    -server tcp://url-id1:7222
    -topic TEST1 'Hello World'
  • Using the system Qshell Utility:
    system "CALL PGM(samplib/SXJ3MP)
    PARM('-server' 'tcp://url-id1:7222'
    '-topic' TEST1 'Hello World')"