Beruflich Dokumente
Kultur Dokumente
Bulletin Board
Whats new at MAINFRAMES 360
(Updates)...
Mainframes360 Search
Search
powered by
Quick Links
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
Jump to :
<== Previous Tutorial
-------
JOB
accounting-info,programmer-name,
class,priority,
message-class,message-level,
hold|scan
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
JOB
A123
(A123,'QUASAR S')
JOB
A123,QUASAR
In the case that, the programmer name contains special characters, we must enclose
it in single quotes.
//JOB1
JOB
A123,'QUASAR S'
//JOB1
JOB
A123,'MC''DONALDS'
JOB
A123,'QUASAR S',
CLASS=A
Here, the job is categorized as Class=A. When installing the MVS OS, various
defaults are established. Different letters and numbers are assigned to classes that
tell the MVS the nature of the Job.
Q. What is the PRTY parameter?
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
The PRTY parameter is used to assign priority to Jobs. A job with priority 6 will
always be run before a job with priority 3.
//JOB1
//
//JOB2
//
JOB
JOB
A123,'QUASAR S',
CLASS=A,PRTY=6
B123,'REENA S',
CLASS=A,PRTY=9
JOB
A123,'QUASAR S',
CLASS=A,PRTY=6,
MSGCLASS=A
Here, all the output messages will be routed to the output device of class A;
usually the system default printer/job spool.
Q.What is the MSGLEVEL Parameter?
As we discussed above, messages are broadly of 2 types. Let us discuss further at
length, what are the messages that the system produces as a job runs.
- Log messages indicating JOB Name, Username, Password, are routed to the output
device.
- Next, the JCL statements that make up the Job.
- Also, output of the program being executed.
- Messages related to the successful execution/termination(ABEND Code) will be
output.
- At the start of the job and end of job, allocation/termination messages are
produced.
MSGLEVEL(statements,messages)
<statements>=0|1|2
0 : Only the JOB statement is output
1 : All JCL statements, including any cataloged procedures or symbolic parameters,
2 : Only Input JCL Statements
http://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (4 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
<messages>=0|1
0 : The output messages are printed only if the job terminates abnormally.
1 : The output messages are always printed.
//JOB1
//
//
JOB
A123,'QUASAR S',
CLASS=A,PRTY=1,
MSGCLASS=A,MSGLEVEL=(1,1)
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
execution, till the Job reaches the Output Queue. From the time the Job enters the
Input Queue, throughout its journey, the initiator holds hands with the Job and
advises it, guides it, upto the Output Queue. Once, the Job executes successfully,
the initiator goes back to the Input Queue.
Posted by Quasar at Tuesday, April 07, 2009
Labels: accounting-info, Allocation, CLASS, JCL, JES, JOB, jobname, keyword, message-class, message-level, MSGCLASS, MSGLEVEL, MVS, NOTIFY, position, programmer-name, PRTY, Termination, TIME,
TYPRUN
Reactions:
0 comments:
Post a Comment
Quick Links
Jump to :
<== Previous Tutorial
-------
Note :
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
Globe-trotting
http://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (7 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
Q. What is the DATA DIVSION? What are the different sections in the DATA DIVISION?
DATA DIVISION is used to describe the Input Output Storage areas and temporary storage areas. In other words, itll describe the
structure of the data being stored in Input Output Files, as well as in any temporary storage. Read more ...
Q. What is JOB Log? Why do we need a JOB Log? What purpose does it serve?
When you submit a Batch JOB/JCL to the MVS System, the MVS executes the Job Stream, makes the necessary resources available to the
the EXEC PGM (Program), and finally tells you the result of the Job. Read more ...
Q. In the previous tutorial, youve stated what is compiling, linking and running.. Can you show me a Compiler and
Linking JCL/Job Stream that does this?
Sure, as you know, the Compiler takes a SYSIN DD Input Dataset, which is the Source COBOL Program. The COBOL Compiler IGYWC(or
IGYCRCTL) produces SYSOUT DD Dataset containing the JOB Log and Status messages, and more importantly, SYSLIN DD which is Object
Module and Input for the Linker. Read more ...
Q. What is the ENVIRONMENT DIVISION? What purpose does it serve in the COBOL Program?
The ENVIRONMENT DIVISION provides information about the computer equipment/configuration upon which the COBOL program will run. It
http://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (8 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
also gives the name of the input and output files used in the program. It assigns the file-names to ddnames(DD Statements in the
Run JCL). Read more ...
Q. What does a Mainframe Computer look like? How do you operate it?
Lets just try to see whats life like, if you are Mainframe machines operator. A Desktop computer can fit into a trolley or a
cabinet. A Mainframe Machine is generally big monster-size, would fill up a room. On a Desktop PC, you would sit near the physical
computer and operate it using the keyboard and the mouse, and see the result on the monitor. Read more ...
Q. Hey, Windows is the most popular Operating System on a Desktop-PC. On the same lines, the popular Mainframes
Operating System is MVS...
Bulls-eye! In fact, MVS is said to be the Operating System that makes the world move. Read more ...
Q. Look, on Windows PC, you interact with the computer using the Windows GUI the Desktop Icons, the Menus,
Buttons etc. How do you interact with an MVS Mainframe System?
MVS offers several ways to interact with it. The 3 main ways of interacting with MVS are TSO, ISPF and CICS. Read more ...
Q. What does COBOL stand for? What are the application areas where COBOL Programs written?
COBOL stands for Common Business Oriented Language. COBOL Programs are used for commercial data processing. COBOL is an Englishhttp://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (9 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
like language. Writing a COBOL program is just like writing a passage in English. Read more ...
Q. You said COBOL Programming language bears resemblance with English. Do COBOL Programs have paragraphs like in
English?
A COBOL Program consists of 4 main divisions : IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION and PROCEDURE DIVISION.
IDENTIFICATION DIVISION is used to identify the COBOL Program to the system. It tells the... Read more ...
Q. Paragraphs in the English language are indented. Do you have indentation/alignment rules in COBOL?
Just like paragraphs in English, COBOL Divisions and Paragraphs must follow strict alignment rules. The way we indent paragraphs in
English, you must indent different Divisions, sections and paragraphs in a COBOL Program. When you write .. Read more ...
Q. What does the PROCEDURE DIVISION look like? Whats the format/syntax. Can you elaborate..
The PROCEDURE DIVISION indicates the entry-point or starting point of the COBOL Program. This is where the computer system begins
to run(execute the COBOL instructions). Hence, all your instructions/programming logic must be written inside this PROCEDURE
DIVISION. Read more ...
Q. How do you compile a COBOL Program? What is meant by Linking a COBOL Program? Finally, how do you run the
Program on a Mainframe System?
Compiling a COBOL Program : COBOL is a high-level language. The Mainframe Computer System only understands binary Machine Language
0 and 1. Thus, your COBOL Program has to be translated from COBOL Language to Binary Machine Language. So, you give the Program in
COBOL Language as Input to the Translator(Compiler), and you get the Output Program in Binary Machine Language. Read more ...
Q. Could you throw some light on the WORKING-STORAGE SECTION of a COBOL Program?
The WORKING-STORAGE SECTION is used to declare any fields or records that are not going to be used in input files, or output files,
but they are used to store the intermediate results of processing in a temporary storage area. Read more ...
Navigation
Navigation
http://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (10 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
- Main Page
- Questions Archive
- Articles and Writing
Tutorials
+ JCL Tutorials(12)
- Introduction to IBM Mainframes
- Basics of JCL
- How to read/write data from
Datasets
- JOB Statement Fundamentals
- EXEC Statement I
- EXEC Statement II
- DD Statement Part I
- DD Statement Part II
- DD Statement Part III
- More on COND Statement
- More on Cataloged and
Instream procedures
- More on JES2 Job Log
+
+
+
-
FAQs
- How do I learn Mainframes?
- Coaching and Institutes
- Mail me
- JOB Prospects
- Idea behind Mainframes 360
Technorati
Add this blog to your favourites..
http://www.mainframes360.com/2009/04/job-statement-tutorial-04.html (11 of 12)12/23/2009 3:58:09 AM
The JOB Statement - Tutorial 04 ~ MAINFRAMES TUTORIAL, JCL TUTORIAL, VSAM TUTORIAL, COBOL TUTORIAL, DB2 TUTORIAL, CICS
Subscribe To
Posts
Comments
About Me
Quasar Chunawalla
Chennai, Tamil Nadu, India