Preparing and running sample applications for the batch environment on z/OS
To prepare a sample application that runs in the batch environment, perform the same steps that you would when building any batch IBM® MQ for z/OS® application.
These steps are listed in Building z/OS batch applications.
Alternatively, where we supply an executable form of a sample, you can run it from the thlqual.SCSQLOAD load library.
Note: The assembler language version of the Browse sample uses data control blocks (DCBs), so you
must link-edit it using
RMODE(24). You must edit the run JCL supplied for the samples that you want to use (see Table 1, Table 2, Table 3, and Table 4 ).
The PARM statement in the supplied JCL contains a number of parameters that you need to modify.
To run the C sample programs, separate the parameters by spaces; to run the assembler, COBOL, and
PL/I sample programs, separate them by commas. For example, if the name of your queue manager is
CSQ1 and you want to run the application with a queue named LOCALQ1, in the COBOL, PL/I, and
assembler-language JCL, your PARM statement should look like this:
PARM=(CSQ1,LOCALQ1)
In the C language JCL, your PARM statement should look
like this: PARM=('CSQ1 LOCALQ1')
You are now ready to submit the jobs.