How to print the MSGCLASS and route to CA-Dispatch
-
- Posts: 2
- Joined: Sat Feb 19, 2011 3:04 am
- Skillset: MVS JES2 TSO/ISPF/SDSF
- Referer: browsing for JCL forum on internet
How to print the MSGCLASS and route to CA-Dispatch
A user wants a hardcopy of JCL statements/sys msgs automatically printed daily. Our site uses MSGCLASS=V to route the log to Dispatch, but this app is not able to automatically print the msgclass. is there a way to code the JCL so we can have MSGCLASS go to a printer PLUS have it routed to Dispatch (online viewing) during execution?
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: How to print the MSGCLASS and route to CA-Dispatch
Dispatch level 1 support can probably help you better than I can; it's been 2 1/2 years since I had anything to do with Dispatch, but I'll do my best.
First, I do not know any "automatic" way to do this, though Dispatch level 1 support may know a way.
If I understand your post correctly, output class V routes output to Dispatch. Some other output class which you did not specify is your "normal" output class. What you have to do is route the output to class V and your "normal" output class. You can do this using // OUTPUT statements in your JCL, like this -
//A JOB ...
//MSG1 OUTPUT CLASS=V,JESDS=ALL
//MSG2 OUTPUT CLASS=?,JESDS=ALL
You will have to insert your "normal" MSGCLASS into the second OUTPUT statement. Alignment is not critical for these statements, which is why I did not use the code markup. If you want output datasets specified with SYSOUT=* or SYSOUT=V to go to both places, you will have to specify
OUTPUT=(*.MSG1,*.MSG2)
on every DD statement.
First, I do not know any "automatic" way to do this, though Dispatch level 1 support may know a way.
If I understand your post correctly, output class V routes output to Dispatch. Some other output class which you did not specify is your "normal" output class. What you have to do is route the output to class V and your "normal" output class. You can do this using // OUTPUT statements in your JCL, like this -
//A JOB ...
//MSG1 OUTPUT CLASS=V,JESDS=ALL
//MSG2 OUTPUT CLASS=?,JESDS=ALL
You will have to insert your "normal" MSGCLASS into the second OUTPUT statement. Alignment is not critical for these statements, which is why I did not use the code markup. If you want output datasets specified with SYSOUT=* or SYSOUT=V to go to both places, you will have to specify
OUTPUT=(*.MSG1,*.MSG2)
on every DD statement.
-
- Posts: 2
- Joined: Sat Feb 19, 2011 3:04 am
- Skillset: MVS JES2 TSO/ISPF/SDSF
- Referer: browsing for JCL forum on internet
Re: How to print the MSGCLASS and route to CA-Dispatch
first of all, thank you for the quick response.
sorry i failed to mention:
our 'normal' output is sent to output datasets with SYSOUT=(J,report name)
Noted, perhaps combining the msgclass with the normal output is one way.
sorry i failed to mention:
our 'normal' output is sent to output datasets with SYSOUT=(J,report name)
Noted, perhaps combining the msgclass with the normal output is one way.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: How to print the MSGCLASS and route to CA-Dispatch
Yes, you can do that, though the CADDSPLx (if you're running Dispatch 11), or ENFSPL (if you're still running Dispatch 6.0) definition might have to be updated and the //MSG1 OUTPUT statement would need changes. SYSOUT=(J,report name) is the usual way to send output to a Dispatch report. In Dispatch 6.0, specifying the equivalent of SYSOUT=(J,report name) for MSGCLASS output would create a second instance of the report. Dispatch 11 might be able to connect the two reports together, but I make no promises. In any event, I don't think that's what you really want.
When I said, "Some other output class which you did not specify is your 'normal' output class," I meant non-Dispatch output class.
When I said, "Some other output class which you did not specify is your 'normal' output class," I meant non-Dispatch output class.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 8382
-
by sergeyken
View the latest post
Wed Nov 16, 2022 8:31 pm
-
- 7
- 5216
-
by sergeyken
View the latest post
Fri Nov 13, 2020 1:24 am
-
-
Sorted but want to print all discarded records
by Everlast » Thu Dec 30, 2021 1:28 am » in DFSORT/ICETOOL/ICEGENER - 1
- 2400
-
by sergeyken
View the latest post
Thu Dec 30, 2021 11:47 pm
-
-
- 1
- 1546
-
by willy jensen
View the latest post
Fri Feb 23, 2024 1:59 pm