JCL Statements for Running Applications

An example is provided to show how to use JCL statements to run applications when normal connection used.

General Form

//EMSPGM EXEC PGM=<EMSPGM>
//STEPLIB DD DISP=SHR,DSN=your.user.loadlib
//SYSIN
<EMS parameter 1>
...
<EMS parameter N>

Alternate Form

Consider this example from <USERHLQ>.JCL(RUNCMC):
//EMSPGM EXEC PGM=RUNCMC
//STEPLIB DD DISP=SHR,DSN=your.user.loadlib
//SYSIN
-server    tcp://tibcoBox:7222
-topic     ems.test.dest
-user      Tibco
The program uses the user ID Tibco to connect to the TIBCO EMS server running on the machine with the host name tibcoBox with 7222 as the default port. It listens for the ems.test.dest topic.