Preparing sample applications for the TSO environment

To prepare a sample application that runs in the TSO 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. The library members you will use are listed in Table 48.

For the Mail Manager sample application, ensure that the queues it uses are available on your system. They are defined in the member thlqual.SCSQPROC(CSQ4CVD). To ensure that these queues are always available, you could add these members to your CSQINP2 initialization input data set, or use the CSQUTIL program to load these queue definitions.

Names of the sample TSO applications

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


Mail manager sample Table 48
Message handler sample Table 49

These samples use ISPF panels. You must therefore include the ISPF stub, ISPLINK, when you link-edit the programs.

Table 48. Source and JCL for the Mail Manager (TSO) sample

Member name For language Description Supplied in library
CSQ4CVD independent WebSphere MQ for z/OS object definitions SCSQPROC
CSQ40 independent ISPF messages SCSQMSGE
CSQ4RVD1 COBOL CLIST to initiate CSQ4TVD1 SCSQCLST
CSQ4TVD1 COBOL Source program for Menu program SCSQCOBS
CSQ4TVD2 COBOL Source program for Get Mail program SCSQCOBS
CSQ4TVD4 COBOL Source program for Send Mail program SCSQCOBS
CSQ4TVD5 COBOL Source program for Nickname program SCSQCOBS
CSQ4VDP1-6 COBOL Panel definitions SCSQPNLA
CSQ4VD0 COBOL Data definition SCSQCOBC
CSQ4VD1 COBOL Data definition SCSQCOBC
CSQ4VD2 COBOL Data definition SCSQCOBC
CSQ4VD4 COBOL Data definition SCSQCOBC
CSQ4RCD1 C CLIST to initiate CSQ4TCD1 SCSQCLST
CSQ4TCD1 C Source program for Menu program SCSQC37S
CSQ4TCD2 C Source program for Get Mail program SCSQC37S
CSQ4TCD4 C Source program for Send Mail program SCSQC37S
CSQ4TCD5 C Source program for Nickname program SCSQC37S
CSQ4CDP1-6 C Panel definitions SCSQPNLA
CSQ4TC0 C Include file SCSQC370

Table 49. Source for the Message Handler sample

Member name For language Description Supplied in library
CSQ4TCH0 C Data definition SCSQC370
CSQ4TCH1 C Source program SCSQC37S
CSQ4TCH2 C Source program SCSQC37S
CSQ4TCH3 C Source program SCSQC37S
CSQ4RCH1 C and COBOL CLIST to initiate CSQ4TCH1 or CSQ4TVH1 SCSQCLST
CSQ4CHP1 C and COBOL Panel definition SCSQPNLA
CSQ4CHP2 C and COBOL Panel definition SCSQPNLA
CSQ4CHP3 C and COBOL Panel definition SCSQPNLA
CSQ4CHP9 C and COBOL Panel definition SCSQPNLA
CSQ4TVH0 COBOL Data definition SCSQCOBC
CSQ4TVH1 COBOL Source program SCSQCOBS
CSQ4TVH2 COBOL Source program SCSQCOBS
CSQ4TVH3 COBOL Source program SCSQCOBS



© IBM Corporation 1993, 2002. All Rights Reserved