Specifications

Chapter 3. z/OS notes 43
printer and because it is already defined in the AD-CD IODF.) Edit AD-CD PARMLIB member
JES2PARM to contain the following line:
PRT(1) WS=(W,R,Q,PMD,LIM/F,T,C,P),UNIT=00E,CLASS=C
If you scroll through the existing JES2PARM (in the AD-CD system) you will find commented
lines similar to this. You can insert a new line, as shown, or convert the commented lines into
active lines.
12
The print class (CLASS=C) is arbitrary; we selected class C because nothing
defaults to this class.
We added the printer definition to JES2 and re-IPLed z/OS. (There are various ways to do the
same thing without the re-IPL.) We verified that the printer was online (d u,,,00E,1) and then
issued a JES2 command to start it ($SPRT1). Use a $SPRT1 command as the response to
requests to mount forms and so forth.
3.10.2 Operational technique
We then ran jobs that sent output to SYSOUT=C. For example,
//OGDEN1 JOB 1,OGDEN,MSGCLASS=C
// EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=ADCD.Z113.PARMLIB(IEASYS00),DISP=SHR
//SYSUT2 DD SYSOUT=*
After submitting this job, you should notice z/OS console messages about jobs sent to PRT1.
If JES2 requests a setup function for the printer, reply $SPRT1. If the emulated printer is
started (for JES2), the printed output is immediately sent to the “printer.” As described here,
this is file /tmp/1403a in Linux. Additional output (from multiple jobs) is simply added to the
file. The emulated printer cannot distinguish where one job ends and the next begins; the
JES2 separator pages are needed for this.
At some point you can stop the JES2 printer ($PPRT1) and print the accumulated output under
Linux. (You do not need to stop the JES2 printer if you are certain no additional output will be
sent to it.) You should disconnect the output file (/tmp/1403a) from the emulated printer:
$ awsmount 00E -u
You then run the shell script:
$ cd /home/ibmsys1 (Directory containing the shell script)
$ ./prt00E (Execute the shell script)
The printer should begin printing output. Notice that the output includes all the job separator
pages produced by JES2. When it finishes, you can use awsmount to provide an empty output
file for the emulated printer:
$ rm /tmp/1403a (Delete the old output file)
$ touch /tmp/1403a (Start a new output file; same name)
$ awsmount 00E -m /tmp/1403a (Connect new output file)
We deleted the output file (assuming we do not want to print the same jobs again). We then
recreated the same file (because the name is hard-coded in the shell script) and “mounted” it
on the emulated printer, ready for more output.
If you stopped the JES2 printer, you need to start it again ($SPRT1).
12
If you convert the commented lines into active lines, be especially careful with the /*....*/ comment indicators; be
certain you remove matching pairs.