Preparing and running sample applications for the batch environment

To prepare a sample application that runs in the batch environment, perform the same steps that you would when building any batch WebSphere MQ for z/OS application. These steps are listed in Building z/OS batch applications.

Note:
The assembler language version of the Browse sample uses data control blocks (DCBs), so you must link-edit it using RMODE(24).

The library members that you will use are listed in Table 45, Table 46, and Table 47.

You must edit the run JCL supplied for the samples that you want to use (see Table 45, Table 46, and Table 47).

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.

Names of the sample batch applications

The names of the source programs and JCL that are supplied for each of the sample batch applications are listed in the following tables:


Put and Get samples Table 45
Browse sample Table 46
Print message sample Table 47

Table 45. Source and JCL for the Put and Get samples

Member name For language Description Supplied in library
CSQ4BCJ1 C Get source program SCSQC37S
CSQ4BCK1 C Put source program SCSQC37S
CSQ4BVJ1 COBOL Get source program SCSQCOBS
CSQ4BVK1 COBOL Put source program SCSQCOBS
CSQ4BCJR C Sample run JCL SCSQPROC
CSQ4BVJR COBOL Sample run JCL SCSQPROC

Table 46. Source and JCL for the Browse sample

Member name For language Description Supplied in library
CSQ4BVA1 COBOL Source program SCSQCOBS
CSQ4BVAR COBOL Sample run JCL SCSQPROC
CSQ4BAA1 Assembler Source program SCSQASMS
CSQ4BAAR Assembler Sample run JCL SCSQPROC
CSQ4BCA1 C Source program SCSQC37S
CSQ4BCAR C Sample run JCL SCSQPROC
CSQ4BPA1 PL/I Source program SCSQPLIS
CSQ4BPAR PL/I Sample run JCL SCSQPROC

Table 47. Source for the Print Message sample (C language only)

Member name Description Supplied in library
CSQ4BCG1 Source program SCSQC37S
CSQ4BCGR Sample run JCL SCSQPROC



© IBM Corporation 1993, 2002. All Rights Reserved