KR editions 80 to 82
KR-80 (OUTLIM parameter)
We'll take a look at the OUTLIM parameter in JCLs.
Sometimes while giving displays in the COBOL code, you might find that the output goes on and on (stuck in an infinite loop). Or you might want to restrict the amount of lines produced in the spool. To do this we can make use of the parameter OUTLIM. This parameter sets an upper limit on the number of lines that can be held in a particular DDname. For example: //SYSOUT DD SYSOUT=*,OUTLIM=100 Now the maximum lines which can be held in sysout (i.e. in the spool under SYSOUT) is 100. When the COBOL code writes more lines, MVS will cancel the job with a return code of 722. The job will still be present in the spool and the first 100 lines can be seen in SYSOUT. The maximum number of lines that can be specified in the OUTLIM parameter is around 16 million.
KR-81 (Sending emails thro JCL!)
Did you know that we can send emails from mainframes?
The following is a sample for sending emails using IEBGENER. //EMAIL EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT2 DD SYSOUT=(B,SMTP) //SYSUT1 DD * HELO jobname MAIL FROM: <your-email> RCPT TO: <recepient's email address> DATA Date: APRIL 6, 2005 type the email content here /* //SYSIN DD DUMMY //
KR-82 (More linking)
ERRATA: In case you tried to use the email JCL sent yesterday and if the contents didn't appear try adding a couple of lines; SUBJECT: ---- and a blank line after this (these 2 lines should be added before the contents). To round up the week we'll go back to our friend the linker.....
//SYSIN DD * INCLUDE SYSLIB(DSNTIAR) more include statements NAME MYPROG(R) /*
INCLUDE ddname(member)
Note: The linker step applies outside of mainframes also; for example in VC++ you'll have to include the libraries used by your program in project settings (only difference is that it's all GUI here!).
Go back to the main contents page
Copyright © 2020 Sethu Subramanian All rights reserved. Reach me via email at ssbell @ gmail.com