Print Entire JCL Output



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Print Entire JCL Output

Postby reb2020 » Sat Mar 28, 2020 8:35 am

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!
reb2020
 
Posts: 7
Joined: Fri Mar 27, 2020 9:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Print Entire JCL Output

Postby willy jensen » Sat Mar 28, 2020 8:51 am

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.
willy jensen
 
Posts: 465
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Re: Print Entire JCL Output

Postby steve-myers » Sat Mar 28, 2020 9:01 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Print Entire JCL Output

Postby reb2020 » Sat Mar 28, 2020 10:16 am

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?
reb2020
 
Posts: 7
Joined: Fri Mar 27, 2020 9:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Print Entire JCL Output

Postby NicC » Sat Mar 28, 2020 2:15 pm

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
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Print Entire JCL Output

Postby enrico-sorichetti » Sat Mar 28, 2020 2:19 pm

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
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-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post