---
title: "JCL MSGCLASS Vs. MSGLEVEL Top Differences"
description: "The MSGCLASS and MSGLEVEL control the print of messages to the output listing. Here are the detailed meanings and default values."
url: https://srinimf.com/2023/03/26/jcl-msgclass-vs-msglevel-top-differences/
date: 2023-03-26
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2023/03/pexels-photo-1139311.jpeg?fit=1880%2C1253&ssl=1
categories: ["JCL"]
tags: ["Statements"]
type: post
lang: en
---

# JCL MSGCLASS Vs. MSGLEVEL Top Differences

The MSGCLASS and MSGLEVEL are parameters in the [JCL JOB](https://srinimf.com/2016/12/25/the-jcl-best-6-keywords-you-need-to-remember-always/) statement and control the output messages.

## MSGCLASS

- The MSGCLSS lets you know the job’s output message class, and the default class is A for the jobs submitted from the JCL.
- For the job that submits from TSO/E, the output message’s class will be X. It is called held class.
- The syntax for MSGCLASS=A
- If you omit the MSGCLASS parameter, it takes the default value.

Related[JCL ‘BPXBATCH’ Utility to run UNIX commands](https://srinimf.com/2015/11/11/the-bpxbatch-utility-to-unix-commands-through-jcl/)

Advertisements

## MSGLEVEL

- The MSGLEVEL lets you know the message types you want to include in the output.
- The syntax is MSGLEVEL=(1,1). The first value is stmt. Here it is ‘1’. It prints all the JCL statements in the output listing. The second value is msg. Here it is ‘1’. It prints all the system messages in the output listing.
- So, MSGLEVEL=(1,1) means it prints all the JCL statements and all the system messages.
- In the other scenario, MSGLEVEL=(0,0). It prints only the JOB statement and step completion messages, and this type of parameter you can see in prod jobs. Also, when the job fails, it prints all the allocation and de-allocation details.
- The default value is MSGLEVEL=(1,1).

Related

Related[Easytrieve Key statements (3 of 3)](https://srinimf.com/2011/11/28/easytrieve_runjcl/)

- [6 JCL Job-card Parameters to Remember Always](https://srinimf.com/2016/12/25/the-jcl-best-6-keywords-you-need-to-remember-always/)DateDecember 25, 2016
- [How to Use OUTPUT statement in JCL](https://srinimf.com/2015/07/19/mainframe-reduce-your-coding-lines-using-output-statement-in-jcl-1-of-2/)DateJuly 19, 2015
- [IF-ELSE-ENDIF JCL top example you need](https://srinimf.com/2013/01/15/jcl-how-to-use-cond-with-if-else-endif/)DateJanuary 15, 2013

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2023%2F03%2F26%2Fjcl-msgclass-vs-msglevel-top-differences%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2023%2F03%2Fpexels-photo-1139311.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=JCL%20MSGCLASS%20Vs.%20MSGLEVEL%20Top%20Differences)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2023/03/26/jcl-msgclass-vs-msglevel-top-differences/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2023/03/26/jcl-msgclass-vs-msglevel-top-differences/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2023/03/26/jcl-msgclass-vs-msglevel-top-differences/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2023/03/26/jcl-msgclass-vs-msglevel-top-differences/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20JCL%20MSGCLASS%20Vs.%20MSGLEVEL%20Top%20Differences&body=https%3A%2F%2Fsrinimf.com%2F2023%2F03%2F26%2Fjcl-msgclass-vs-msglevel-top-differences%2F&share=email)
-

### Like this:

Like Loading…
