Page 1 of 1

Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 8:35 am
by reb2020
Hi,

I would like to send the entire job output to the printer. How can I do this?
I've been reading and I think it has to do with the CLASS or MSGCLASS parameter, am I right?
Is there any example I could use?

Thanks!

Re: Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 8:51 am
by willy jensen
The MVS JCL manual is a good starting point. MSGCLASS=c in the job statement and SYSOUT=c everywhere else usually does the trick, where c=the output class assigned to a printer. For SYSOUT you can use * instead of c, it will set c= the MSGCLASS c.
CLASS is something entirely different.
Sample:
//GENER JOB (1),'GENER',CLASS=A,MSGCLASS=T
//G1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
kilroy
was
here

And before you ask, only your local support will know which sysout class you may use.

Re: Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 9:01 am
by steve-myers
Sadly, there is no single, simple answer to your query.
  • What, exactly, do you mean by "entire job output"? Some output may be deliberately intended for other locations, and it may be too late to intercept that output as it may have printed.
  • "JCL" output is concentrated in the JESMSGLG, JESJCL and JESYSMSG data sets. The printing of these data sets is usually as directed by MSGCLASS parameter on the job statement. Other SYSOUT data sets, often specified as SYSOUT=* or just SYSOUT=x, where x is the same output class as specified by the MSGCLASS=x parameter on the JOB JCL statement are often considered "JCL" output and are printed with the "JCL" output.

Re: Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 10:16 am
by reb2020
Im trying to use the printer in hercules so I would like to print something like JESMSGLG or something else. I tried using MSGCLASS=A and it didnt work. I also tried the X command in the NP column of SDSF for the test job but it didnt work. I searched the printers address in the SYS1.IODF99 file and used the same address in hercules config file. So I guess the MSGCLASS is not attached to the printer, how can I check this?

Re: Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 2:15 pm
by NicC
Have you tried the Hercules forum? That is a more appropriate place - and you should have mentioned Hercules in the first place.

Re: Print Entire JCL Output

PostPosted: Sat Mar 28, 2020 2:19 pm
by enrico-sorichetti
The Hercules forum is for Hercules related problems ONLY,
the TS has a zOS problem

and I would like to remind the TS about IBM licensing rules

good judgement tells that running a pirated copy of <something>
is a don' t tell don' ask evironment


Unfortunately using the adcd needs quite a bit of system programming knowledge
there are no printers defined in the JES2parms