[z/OS]

Preparing the sample applications for the batch environment on z/OS

How to prepare a sample application that runs in the batch environment on z/OS®.

About this task

The following sample application programs are available for the batch environment on z/OS:

Procedure

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.
For more information, see Building z/OS batch applications on z/OS.
Alternatively, where there is 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 Batch Put and Get samples, Batch Browse sample, Batch Print Message sample (C language only), and Publish/Subscribe samples).
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.