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!
Print Entire JCL Output
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Print Entire JCL Output
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.
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.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Print Entire JCL Output
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
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?
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Print Entire JCL Output
Have you tried the Hercules forum? That is a more appropriate place - and you should have mentioned Hercules in the first place.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Print Entire JCL Output
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
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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Similar Topics
- Replies
- Views
- Last post
-
-
COBOL SORT - How to sort entire file first & sort by Key
by k_ekam » Thu Dec 01, 2022 12:58 pm » in IBM Cobol - 3
- 1560
-
by Robert Sample
View the latest post
Wed Dec 07, 2022 7:32 am
-
-
- 7
- 5229
-
by sergeyken
View the latest post
Fri Nov 13, 2020 1:24 am
-
- 1
- 8388
-
by sergeyken
View the latest post
Wed Nov 16, 2022 8:31 pm
-
-
Sorted but want to print all discarded records
by Everlast » Thu Dec 30, 2021 1:28 am » in DFSORT/ICETOOL/ICEGENER - 1
- 2406
-
by sergeyken
View the latest post
Thu Dec 30, 2021 11:47 pm
-
-
- 1
- 1555
-
by willy jensen
View the latest post
Fri Feb 23, 2024 1:59 pm