Running sample programs on z/OS

WebSphere MQ for z/OS supplies three sample programs, together with JCL to run them. The programs are described in Sample programs.

The sample applications are supplied in source form only. The files are:

Table 4. z/OS sample program files
Sample Source program (in library thlqual.SCSQCPPS) JCL (in library thlqual.SCSQPROC)
HELLO WORLD imqwrld imqwrldr
SPUT imqsput imqsputr
SGET imqsget imqsgetr

To run the samples, compile and link-edit them as with any C++ program (see Building an application on z/OS). Use the supplied JCL to construct and run a batch job. You must initially customize the JCL, by following the commentary included with it.