• Aucun résultat trouvé

Who Should Use This Publication

N/A
N/A
Protected

Academic year: 2022

Partager "Who Should Use This Publication "

Copied!
724
0
0

Texte intégral

(1)

Program Product

GC28-1300-2 File No. S370-36

MVSJCL

MVS/System Product - JES2 Version 1 5740-XYS

MVS/System Product - JES3 Version 1 5740-XYN

- - - - - - - - - - - - --_.- - - - - - - - - - - --- - --- --- ...

(2)

This edition applies to the following program products:

MVS/System Product - JES2 Version 1 Release 3.4 (Program No. 5740-XYS) MVS/System Product - JES3 Version 1 Release 3.4 (Program No. 5740-XYN) MVS/370 Data Facility Product (DFP) Release 1.1 (Program No. 5665-295)

Resource Access Control Facility (RACF) Version 1 Release 6 and later (Program No. 5740-XXH) Do not replace your existing documentation until your system consists of the above releases (1) of the base control program with JES2 or JES3 and (2) of DFP.

Note: Because the book has been extensively revised, JES2 installations using Version I Release 3.4 should use this edition, even though the previous edition also reflects Version 1 Release 3.4.

Third Edition (December, 1984)

This is a major revision of, and obsoletes, GC28-1300-1. See the Summary of

Amendments following the Contents for a summary of the changes made to this manual.

Technical changes or additions to the text and illustrations are indicated by a vertical line to the left of the change.

This edition applies to the program releases listed in the box above and to all subsequent releases until otherwise indicated in new editions or Technical Newsletters. Changes are made periodically to the information herein; before using this publication in connection with the operation of IBM systems, consult the latest IBM System/370 and 4300 Processors Bibliography, GC20-0001, for the editions that are applicable and current.

References in this publication to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM program product in this publication is not intended to state or imply that only IBM's program product may be used. Any functionally equivalent program may be used instead.

Publications are not stocked at the address given below. Requests for IBM publications should be made to your IBM representative or to the IBM branch office serving your locality.

A form for reader's comments is provided at the back of this publication. If the form has been removed, comments may be addressed to IBM Corporation, Information

Development, Department 058, Building 920-2, PO Box 390, Poughkeepsie, New York, U.S.A. 12602. IBM may use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you.

© Copyright International Business Machines Corporation 1982, 1984

(3)

Preface

This publication describes how to control job processing and the resources needed to run a job.

These resources include storage, data sets, devices, and volumes. Job and resource control is specified in job control language (JCL) statements, job entry subsystem 2 (JES2) control statements, and job entry subsystem 3 (JES3) control statements.

Who Should Use This Publication

This book is needed by programmers who code JCL, JES2, and JES3 control statements.

Those using this book should understand the concepts of job management and data management.

Major Sections of This Publication

Part 1. Introduction: In this part, chapter I introduces job control. It is intended primarily for the programmer who is inexperienced in job control.

Chapter 2 explains the coding conventions for JCL~ JES2, and JES3 control statements. These coding conventions are used throughout the book.

Part 2. Guide to Job and Step Control: This part discusses how to control jobs and steps using JCL, JES2, and JES3 control statements. It contains:

• The background needed to understand why you should code each parameter.

• Examples to show when to code the parameters.

• Descriptions of how to code combinations of parameters to obtain particular results.

The descriptions of job and step control are grouped into the following chapters:

Chapter 3. Guide to Job Control tells how to control the system's handling of your job. It describes the parameters you can code on the JCL JOB statement and on the JES2 or JES3 control statements to direct the system.

Chapter 4. Guide to Step Control tells how to control the system's handling of your job step. It describes the parameters you can code on the JCL EXEC statement and on the JES2 or JES3 control statements to direct the system.

Chapter 5. Guide to Job and Step Control tells how to control the system's handling of your job and its steps. It describes the parameters you can code on the JCL JOB statement, on the JCL EXEC statement, and on the JES2 or JES3 control statements to direct the system.

The parameters and control statements in this chapter not only influence the job and its steps, but they influence each other.

Preface 111

(4)

Chapter 6. Guide to Data Allocation Control tells how to control the system's allocation of data resources. It describes the parameters you can code on the JCL JOB and EXEC statements and on the JES3 control statements to direct allocation.

Part 3. Guide to Data Set Control: This part discusses how to control yourjob's data set resources using JCL DD statements and JES2 or JES3 control statements.

Chapter 7. Guide to Specifying Data Set Information tells how to control the system's handling of your data sets. It describes the parameters you can code on JCL DD statements and on JES2 or JES3 control statements to tell the system the following:

• Data set information

• The location of a data set

• The size of a data set

• Data attributes

• Data set processing options

Chapter 8. Guide to Special Data Sets tells how to use special data sets. It describes the parameters on the JCL, JES2, and JES3 control statements for special data sets.

Chapter 9. Guide to Cataloged and In-Stream Procedures tells how to use cataloged and in-stream procedures of JCL statements. It describes how to:

• Create procedures and place them in catalogs.

• Modify and add parameters and statements to cataloged procedures.

• Use symbolic parameters in cataloged procedures.

Part 4. Reference to Job Control Statements and Parameters: This part details the coding of each JCL, JES2, and JES3 control statement and of each parameter, in alphabetical order by statement. The chapters are:

Chapter 10. Coding the JOB Statement Chapter 11. Coding the EXEC Statement Chapter 12. Coding the DD Statement Chapter 13. Coding Special DD Statements Chapter 14. Coding the OUTPUT JCL Statement Chapter 15. Coding Special JCL Statements Chapter 16. Coding JES2 Control Statements Chapter 17. Coding JES3 Control Statements

For each statement and parameter, this part gives the following information, as needed:

• Parameter type.

• Purpose. '

• References to related information in this book or other IBM publications.

• Syntax and coding rules.

• Parameter or subparameter definitions.

• Defaults.

• Overrides.

• Mutually exclusive parameters and subparameters.

• Relationship to other parameters and control statements.

• Programming considerations.

IV MVS JCL

(5)

• System action in response to the parameter or subparameter.

• Examples.

• Other information required to code the statement or parameter.

Part 5. Reference Tables: In this part, chapter 18 contains reference tables that summarize some job control information. Figures, which follows the Contents, lists the tables.

Guide to Using this Publication

If your system contains MVS/System Product - JES2 Version 1 program number 5740-XYS, JES2 information in this manual refers to the JES2 function in the MVS/System Product Version 1, unless otherwise noted.

If your system contains MVS/System Product - JES3 Version I program number 5740-XYN, JES3 information in this manual refers to the JES3 function in the MVS/System Product Version 1, unless otherwise noted.(

Your system must contain Resource Access Control Facility (RACF) Program Product,

program number 5740-XXH, in order for you to specify the PROTECT parameter on your DD statements.

Restrictions on Use of SYSCHK DD Statement and DD Statement RESTART Parameter: If your system contains (1) MVS/System Product - JES2 Version I Release 3 (5740-XYS) or (2) MVS/System Product - JES3 Version 1 Release 3 (5740-XYN) or (3) any subsequent release of these products, but does not contain MVS/370 Data Facility Product program number

5665-295, do not use the SYSCHK DD statement or the RESTART parameter on the JOB statement.

If your system contains the MVS/370 Data Facility Product with JES2 or JES3 Release 3 or a subsequent release, you can use the SYSCHK DD statement or the RESTART parameter on the JOB statement, with certain restrictions. For detailed information on checkpoint/restart, see Checkpoint/ Restart.

JCL Statements no Longer Supported or Supported Differently: Parameters introduced in OS but not supported in MVS/System Product are:

• Main storage hierarchy support and rollout/rollin. The system will check the HIERARCHY and ROLL parameters only for correct syntax.

• The SEP and AFF parameters and the UNIT = SEP subparameter on the DD statement.

The system will check them only for correct syntax. The job will fail if they are coded incorrect! y.

JCL DD parameters supported differently are:

• SPLIT and SUBALLOC. Their values are converted internally to SPACE requests. When the SUBALLOC keyword is coded, the DD statement from which space is allocated becomes a dummy DD.

• If JES3 is used, the UNIT parameter on a DD statement that names a cataloged data set cannot specify a device type that conflicts with the cataloged device type. For example, a 3330 and a 3375.

Preface V

(6)

Prerequisite Publication

Introduction to Virtual Storage in System/370, GR20~4260.

Publications Cited in the Text

General

Vocabulary for Data Processing, Telecommunications, and Office Systems, GC20-1699.

Base Control Program

OS/VS2 MVS System Programming Library: Job Management, GC28-1303.

OS/VS2 System Programming Library: Supervisor, GC28-1046.

OS/VS2 MVS Supervisor Services and Macro Instructions, GC28-1114.

Operator's Library: OS/VS2 MVS System Commands, GC28-1031.

OS/VS2 MVS System Programming Library: Initialization and Tuning Guide, GC28-1029.

MVS/370 System Generation Reference, GC26-4063.

MVS Diagnostic Techniques, SY28-1133.

OS/VS2 System Programming Library: Debugging Handbook, Volumes 1 through 3, GC28-1047 through GC28-1049.

MVS/370 Message Library: System Messages, Volume 1, GC28-1374, and Volume 2, GC28-1375.

OS/VS Message Library: VS2 System Codes, GC38-1008.

Data Facility Product

JES2

vi MVS JCL

MVS/370 Data Management Services, GC26-4058.

MVS/370 System Programming Library: Data Management, GC26-4056.

MVS/370 Data Management Macro Instructions, GC26-4057.

MVS/370 Catalog Users Guide, GC26-4053.

MVS/370 Checkpoint/Restart, GC26-4054.

MVS/370 Magnetic Tape Labels and File Structure, GC26-4064.

MVS/370 Access Method Services Reference for the Integrated Catalog Facility, GC26-4051.

MVS/370 Access Method Services Reference for VSAM Catalogs, GC26-4059.

MVS/370 VSAM Reference, GC26-4074.

MVS/370 VSAM Users Guide, GC26-4066.

OS/VS2 MVS System Programming Library: VT AM, GC28-0688.

OS/VS2 TCAM Programmer's Guide, (levels 8 and 9), GC30-2041.

OS/VS TCAM System Programmer's Guide, (level 10), GC30-2051.

OS/VS BTAM, GC27-6980.

System Programming Library: JES2 Initialization and Tuning, SC23-0046.

Operator's Library: JES2 Commands, SC23-0048.

(7)

JES3

Programs

Hardware

JES3 System Programming Library: Initialization and Tuning, SC23-0041.

JES3 Commands, SC23-004S.

JES3 Messages, GC23-0044.

JES3 System Programming Library: Diagnosis, LC28-1369.

JES3 System Programming Library: User Modifications and Macros, LC28-1371.

OS/VS2 MVS Interactive Problem Control System (IPCS) System Information, GC34-2004.

OS/VS Mass Storage System (MSS) Services General Information, GC3S-0016.

OS/VS Mass Storage System (MSS) Services Reference Information, GC3S-0017.

Resource Access Control Facility (RACF) General Information Manual, GC28-0722.

OS/VS2 MVS System Programming Library: Service Aids, GC28-0674.

OS/VS2 MVS System Programming Library: System Management Facilities (SMF), GC28-1030.

OS/VS2 TSO Command Language Reference, GC28-0646.

MVS/370 Utilities, GC26-406S.

Print Management Facility User's Guide and Reference, SH3S-00S9.

IBM 3800 Printing Subsystem Models 3 and 8 Programmer's Guide, SH3S-0061.

OS/VS Graphic Programming Services (GPS) for IBM 2260 Display Station, GC27-6972.

2821 Control Unit Component Description, GA24-3312.

3340 Disk/Storage - Fixed Head Feature User's Guide, GA26-1632.

OS and OS/VS Programming Support for the IBM 3505 Card Reader and IBM 3525 Card Punch, GC21-S097.

OS/VS2 IBM 3540 Programmer's Reference, GC24-S111.

3800 Printing Subsystem Programmer's Guide, GC26-3846.

Forms Design Reference Guide for the IBM 3800 Printing Subsystem, GA26-1633.

Preface Vll

(8)

viii MVS JCL

(9)

Contents

Part 1. Introduction

Chapter 1. Introduction to Job Control 1-1 The JCL Statements 1-1

The JES2 Control Statements 1-3 The JES3 Control Statements 1-5 Cataloged and In-Stream Procedures 1-7 Submitting and Executing Your Job 1-7

Chapter 2. Coding Conventions for JCL, JES2, and JES3 Statements 2-1 Notation Used to Show Syntax 2-1

Fields in Control Statements 2-3 The Parameter Field 2-5

Continuing Control Statements 2-6

Coding Conventions for JES2 Control Statements 2-8 Coding Conventions for JES3 Control Statements 2-8 Concatenating Data Sets 2-9

Character Sets 2-10

Coding Special Characters 2-10 Backward References 2-13

Symbolic Parameters 2-15

Defining Symbolic Parameters When Writing a Procedure 2-15 Assigning Values to and Nullifying Symbolic Parameters 2-16

Example of an In-Stream Procedure Containing Symbolic Parameters 2-21

Part 2. Guide to Job and Step Control

Chapter 3. Guide to Job Control 3-1 Naming the Job 3-1

Installation Management Information 3-2 Job Accounting Information Parameter 3-2 JES2 Accounting Information 3-4

Network Accounting Information 3-4

Programmer Information: The programmer-name parameter 3-5 Networking 3-6

Routing a Job in a Network (JES2) 3-7 Transmitting Data in a Network (JES2) 3-7

Controlling Output Destination in a JES2 Network 3-7 Example of Obtaining Output (JES2) 3-9

Routing a Job in a Network (JES3 Networking) 3-10 Example of Routing a Job Through a JES3 Network 3-11 Controlling Job Execution Node Using JES3 Networking 3-11

Contents IX

(10)

X MVS JCL

Controlling Sysout Routing in a JES3 Network 3-11 Controlling Output Destination Using JES3 3-12 Remote Job Processing in JES3 3-12

Example of Obtaining Output (JES3) 3-13 Job Log 3-14

MSGLEVEL Parameter 3-14 MSGCLASS Parameter 3-16 JES2 Hard-Copy Log 3-16

JES3 Main Device Scheduler Messages 3-17 JES3 System Messages 3-18

TSO 3-18

NOTIFY Parameter 3-18

The JES2 NOTIFY Control Statement 3-19

The USER Parameter on the JES3 MAIN Control Statement· 3 .. 19 Remote Job Processing 3-20

JES2 Remote Job Processing 3-20 JES3 Remote Job Processing 3-22 Special Job Processing 3-23

Deadline Scheduling for JES3 3-27

Dependent Job Control for JES3: The Job Net 3-27 The JES3 NET Control Statement 3-28

How to Code NET Statements 3-29 JES3 Spool Partitioning 3-33

Chapter 4. Guide to Step Control 4-1 Naming a Job Step 4-3

Processing Program Information 4-4 Selecting a Processing Program 4-4

Identifying the Program to be Executed 4-4 The IEFBR14 Program 4-7

Selecting a Cataloged Procedure Library 4-7 Passing Information to the Program in Execution 4-8

P ARM Parameter 4-9

Installation Management Information: The ACCT Parameter 4-10 ACCT Parameter 4-11

Dynamically Allocatingand Dealloc~ting Data Sets 4-12 Example of Dynamically Deallocating Data Sets 4-13 Chapter 5. Guide to Job and Step Control 5-1

Scheduling a Job 5-1

Selecting a Processor in JES2 5-3 Selecting a Processor in JES3 5-4 Conditionally Executing Job Steps 5-5

Specifying Return Code Tests on the JOB Statement 5-5 Specifying Return Code Tests on the EXEC Statement 5-7 Limiting Job and Job Step Execution Time 5-16

Using the TIME Parameter for Cataloged Procedures 5-17

Examples of Coding the Time Parameter on JOB and EXEC Statements 5-18 Conffi51ling Job Queuing through Job Classes and Priorities 5-18

Establishing job processing . balance in JES3 5-19 Assigning a Job to a Job Class in JES2 5-19 Assigning a Job to a Job Class in JES3 5-19 Assigning a Priority to a Job forJES2 5-20 Assigning a Priority to a Job in JES3 5-20

(11)

Assigning a Dispatching Priority to Job Steps 5-21 DPRTY Parameter 5-21

Performance of Jobs and Job Steps in JES2 5-22 Performance of Jobs and Job Steps in JES3 5-22 Requesting Storage for Execution 5-23

When to Request Real Storage 5-23

Specifying Storage Requirements with the REGION Parameter U sing the JES3 LREG ION Parameter to Define Logical Storage Restarting a Job at a Step or Checkpoint 5-26

The RD Parameter on the JOB Statement 5-27 The RESTART Parameter on the JOB Statement 5-28 The RD Parameter on the EXEC Statement 5-28 The JES2 RESTART Parameter 5-29

The JES3 FAILURE Parameter 5-29 Chapter 6. Guide to Data Allocation Control 6-1 Using JES3 Spool Partitioning 6-1

Controlling Access to RACF-Protected Data Sets 6-2 Dynamically Allocating and Deallocating Data Sets 6-3

Example of Dynamically Deallocating Data Sets 6-4 Allocating Data Resources in a JES3 System 6-4

Part 3. Guide to Data Set Control

Chapter 7. Guide to Specifying Data Set Information 7-1 Specifying the DDNAME Parameter 7-1

When You Code the DDNAME Parameter 7-1 Specifying the DSNAME Parameter 7-2

Creating or Retrieving a Nontemporary Data Set 7-3 Creating or Retrieving a Temporary Data Set 7-4 Associated Data Sets (3540 Diskette) 7-6

Copying the Data Set Name ftom an Earlier DD Statement 7-6 Specifying the DSNAME Parameter in Apostrophes 7-7 Specifying the LABEL Parameter 7-7

Example of Identifying Data Sets to the System 7 -13 Disposition Processing of Non-VSAM Data Sets 7-13 Specifying Data Set Status 7-14

Specifying a Disposition for the Data Set 7-14 Default Disposition Processing 7-19

Bypassing Disposition Processing 7 -19 Insuring Data Set Integrity 7-19

5-24 5-25

Examples of Disposition Processing of Non-VSAM Data Sets 7-23 Requesting Units and Volumes 7-24

Specifying Volume Information 7-24 Specifying Unit Information 7-28

Example of Requesting Units and Volumes 7-31 Example of UNIT and VOLUME Affinities 7-35 Specifying Data Sets for Mass Storage Systems (MSS) 7-37

Mass Storage Volume Groups 7-37

Nonspecific Volume Requests for Mass Storage Volumes 7-38 Specific Volume Requests for Mass Storage Volumes 7-38 Requesting Space for Non-VSAMData Sets 7-39

The Basic Space Request: Unit of Measurement and Primary Quantity 7-40 Assigning Specific Tracks 7-42

Contents Xl

(12)

Example of Requesting Space 7 -43 Specifying Data Set Processing Options 7-43

Processing Output Data Sets for the JOB 7-44

Processing System Output Data Sets Using the OUTPUT JCL Statement 7-44 Using the OUTPUT JCL Statement to Tailor the Job Stream 7-46

Specifying a Destination for the Data Set 7-49

Grouping Data Sets Using the OUTPUT JCL Statement 7-49

Managing the System-Managed Data Sets: The JESDS Parameter 7-49 Assigning System Output Data Sets to Output Classes 7-51

Specifying the Device 7 -52 Specifying the Internal Reader 7-52

Example of Using the Internal Reader 7-53 JES Output Class Processing 7-54

Delaying the Writing of an Output Data Set 7-55 Suppressing the Writing of an Output Data Set 7-55 Limiting Output Records 7-55

Specifying JES2 Page Overflow Processing 7-56

Specifying JES3 Forms Overflow Processing and Printer Spacing 7-56 Interpretation of Punched Output 7-57

JES2 Support of the 3211 Indexing Feature 7-57

Requesting Multiple Copies of an Output Data Set Using JES2 7-57- Requesting Multiple Copies of an Output Data Set Using JES3 7-58 Requesting Copy Modification 7-58

Requesting Printer Form and Character Control 7-58 Requesting Forms Overlay 7-62

Bursting of Output 7 -62

Chapter 8. Guide to Special Data Sets 8-1

Creating and Using Private and Temporary Libraries 8-1 Creating a Private Library 8-2

Retrieving an Existing Private Library 8-3 Using Private Catalogs 8-5

Temporary Libraries 8-5

Requesting an Abnormal Termination Dump 8-6 Defining a Dummy Data Set 8-8

Coding the DUMMY Parameter 8-8 Coding DSNAME = NULLFILE 8-9

Requests to Read or Write a Dummy Data Set 8-9

Using Virtual Input/Output (VIO) for Temporary Data Sets 8-10 Defining a VIO Temporary Data Set 8-10

Backward References to VIO Data Sets 8-11

Using Virtual Input/Output (VIO) to Pass Temporary Data Sets Among Job Steps 8-12 Entering Data Through the Input Stream 8-13

VSAM Data Sets 8-14

Creating and Retrieving Indexed Sequential Data Sets 8-18 Creating an Indexed Sequential Data Set 8-18

Retrieving an Indexed Sequential Data Set 8-22

Examples of Creating and Retrieving an Indexed Sequential Data Set 8-24 Creating and Retrieving Generation Data Sets 8-25

Building a Generation Data Group Base Entry 8-25 Creating a Generation Data Set 8-26

Retrieving a Generation Data Set 8-28

Deleting and Uncataloging Generation Data Sets 8-30 Submitting a Job for Restart 8-30

XU MVS JCL

(13)

Example of Creating and Retrieving Generation Data Sets 8-31 Creating and Using a Subsystem Data Set 8-32

Chapter 9. Guide to Cataloged and In-Stream Procedures 9-1 Writing Cataloged and In-Stream Procedures 9-1

Identifying an In-Stream Procedure 9-2

Placing a Cataloged Procedure in a Procedure Library 9-2

Allowing for Changes in Cataloged and In-Stream Procedures 9-3 Using Cataloged and In-Stream Procedures 9-3

How to Call Cataloged and In-Stream Procedures 9-3 Modifying Cataloged and In-Stream Procedures 9-4 Adding DD Statements to a Procedure 9-8

Adding OUTPUT JCL Statements to a Procedure 9-10 Identifying Procedure Statements on an Output Listing 9-13

Part 4. Reference to Job Control Statements and Parameters

Chapter 10. Coding the JOB Statement 10-1 Name Field 10-1

Parameter Field 10-1 Comments Field 10-2 Location in the JCL 10-2

Examples of JOB Statements 10-2 Accounting Information Parameter 10-3

Subparameter Definition 10-4

JES2 Accounting Information Format 10-4

Examples of the Accounting Information Parameter 10-5 ADDRSPC Parameter 10-7

Subparameter Definition 10-7 Defaults 10-7

Overrides 10-7

Relationship to the JOB REGION Parameter 10-7 Examples of the ADDRSPC Parameter 10-8 CLASS Parameter 10-9

Subparameter Definition 10-9 Defaults 10-9

Overrides 10-9

Example of the CLASS Parameter COND Parameter 10-10

Subparameter Definition 10-10 Overrides 10-11

Summary of COND Parameters Examples of the COND Parameter GROUP Parameter 10-12

Subparameter Definition 10-12 Defaults 10-12

Relationship to Other Parameters Example of the GROUP Parameter MSGCLASS Parameter 10-14

Subparameter Definition 10-14 Defaults 10-14

10-9

10-11 10-11

10-13 10-13

Significance of Output Classes 10-14

Examples of the MSGCLASS Parameter 10-15 MSGLEVEL Parameter 10-16

Contents XUl

(14)

Subparameter Definition 10-16 Defaults 10-17

Examples of the MSGLEVEL Parameter 10-17 NOTIFY Parameter 10-18

Subparameter Definition 10-18

Relationship to JES2 j*JOBPARM SYSAFF Paramete'r 10-18 Receiving Notification of Job Completion 10-18

Example of the NOTIFY Parameter 10-19 PASSWORD Parameter 10-20

Subparameter Definition 10-21

Relationship to Other Parameters 10-21 Examples of the PASSWORD Parameter 10-21 PERFORM Parameter 10-22

Subparameter Definition 10-22 Defaults 10-22

Overrides 10-22

Example of the PERFORM Parameter 10-23 Programmer's Name Parameter 10-24

Parameter Definition 10-24

Examples of the Programmer's Name Parameter 10-25 PRTY Parameter 10-26

Subparameter Definition 10-26 Defaults in a JES3 System 10-26

Relationship to Other Control Statements in a JES2 System 10-26 Example of the PRTY Parameter 10-27

RD Parameter 10-28

Subparameter Definition 10-29 Defaults 10-30

Overrides 10-30

Relationship to Other Control Statements 10-30 Examples of the RD Parameter 10-30

REGION Parameter 10-31 Subparameter Definition 10-31 Defaults 10-31

Overrides 10-32

Relationship to the JOB ADDRSPC Parameter 10-32 Examples of the REGION Parameter 10-32

RESTART Parameter 10-33 Subparameter Definition 10-34

Relationship to Other Control Statements 10-34

Cautions When Coding the RESTART Parameter 10-34 Generation Data Sets in Restarted Jobs 10-35

Examples of the RESTART Parameter 10-35 TIME Parameter 10-36

Subparameter Definition 10-36 Overrides 10-37

Defaults 10-37 Time Handling 10-37

Examples of the TIME Parameter 10-37

Examples of the TIME Parameter on JOB and EXEC Statements 10-38 TYPRUN Parameter 10-39

Subparameter Definition 10-39

Example of the TYPRUN Parameter 10-40 USER Parameter 10-41

XIV MVSJCL

(15)

Subparameter Definition 10-41 Defaults 10-41

Relationship to Other Parameters 10-42 Example of the USER Parameter 10-42 Chapter 11. Coding the EXEC Statement 11-1

~ame Field 11-1 Parameter Field 11-2 Comments Field 11-3 Location in the JCL 11-3

Examples of EXEC Statements 11-3 ACCT Parameter 11-4

Subparameter Definition 11-5

On EXEC Statement that Calls a Procedure 11-5 Examples of the ACCT Parameter 11-5

ADDRSPC Parameter 11-6 Subparameter Definition 11-6 Defaults 11-6

Overrides 11-6

Relationship to the JOB or EXEC REGIO~ Parameter 11-6 On EXEC Statement that Calls a Procedure 11-7

Examples of the ADD RSPC Parameter 11-7

CO~D Parameter 11-8

Subparameter Definition 11-9 Overrides 11-10

On EXEC Statement that Calls a Procedure Cautions when Specifying CO~D Parameters Summary of CO~D Parameters 11-11 Examples of the CO~D Parameter 11-12 DPRTY Parameter 11-13

Subparameter Definition 11-13 Defaults 11-14

On EXEC Statement that Calls a Procedure Examples of the DPRTY Parameter 11-14

DY~AM~BR Parameter 11-15 Subparameter Definition 11-15 Defaults 11-15

11-10 11-10

11-14

On EXEC Statement that Calls a Procedure Example of the DYNAM~BR Parameter

11-15 11-16 P ARM Parameter 11-17

Subparameter Definition 11-17

On EXEC Statement that Calls a Procedure 11-18 Examples of the P ARM Parameter 11-18

PERFORM Parameter 11-19 Subparameter Definition 11-19 Defaults 11-19

Overrides 11-19

On EXEC Statement that Calls a Procedure 11-20 Example of the PERFORM Parameter 11-20 PGM Parameter 11-21

Subparameter Definition 11-21

Checking JCL Syntax without Executing the Step 11-22 Examples of the PGM Parameter 11-22

PROC and Procedure ~ame Parameters 11-24

Contents xv

(16)

Subparameter Definition 11-24

Effect of PROC Parameter on Other Parameters and Following Statements 11-24 Examples of the PROC Parameter 11-25

RD Parameter 11-26

Subparameter Definition 11-27 Defaults 11-28

Overrides 11-28

Relationship to Other Control Statements On EXEC Statement that Calls a Procedure Examples of the RD Parameter 11-29 REGION Parameter 11-30

Subparameter Definition 11-30 Defaults 11-31

Overrides 11-31

11-28 11-28

Relationship to the EXEC ADDRSPC Parameter 11-31 Examples of the REGION Parameter 11-31

TIME Parameter 11-32

Subparameter Definition 11-32 Defaults 11-33

Overrides 11-33 Time Handling 11-33

Examples of the TIME Parameter 11-33 Chapter 12. Coding the DD Statement 12-1

Name Field 12-1 Parameter Field 12-3 Comments Field 12-3 Location in the JCL 12-3

DD Statements for Cataloged and In-stream Procedures 12-3 Examples ofDD Statements and ddnames 12-5

*

Parameter 12-6 Defaults 12-6

Relationship to Other Parameters 12-6

Relationship to Other Control Statements 12-7 Location in the JCL 12-7

Unread Records 12-7

Examples of the

*

Parameter 12-7 ACCODE Parameter 12-9

Subparameter definition 12-9 Defaults 12-9

Overrides 12-10

Example of the ACCODE Parameter 12-10 AMP Parameter 12-11

Subparameter Definition 12-12

Relationship to Other Parameters 12-14 Buffer Requirements 12-15

Examples of the AMP Parameter 12-15 BURST Parameter 12-16

Subparameter Definition 12-16 Default 12-16

Overrides 12-16

Relationship to Other Parameters 12-17

Relationship to Other Control Statements 12-17 Example of the BURST Parameter 12-17

xvi

MVS JCL

(17)

CHARS Parameter 12-18

Subparameter Definition 12-18 Defaults 12-19

Overrides 12-19

Relationship to Other Parameters 12-19

Relationship to Other Control Statements 12-20 Printing Device Reassignment 12-20

Requesting a High-Density Dump in a JES3 System 12-20 Examples of the CHARS Parameter 12-20

CHKPT Parameter 12-21

Subparameter Definition 12-21 Overrides 12-21

Relationship to Other Parameters 12-21

Relationship to the SYSCKEOV DD Statement 12-21 Checkpointing Concatenated Data Sets 12-22

Examples of the CHKPT Parameter 12-22 CNTL Parameter 12-23

Subparameter Definition 12-23

Examples of the CNTL Parameter 12-23 COPIES Parameter 12-25

Subparameter Definition 12-25 Defa ul ts 12-26

Overrides 12-26

Relationship to Other Parameters 12-26

Relationship to Other Control Statements 12-27 Examples of the COPIES Parameter 12-27 DATA Parameter 12-28

Defaults 12-28

Relationship to Other Parameters 12-28

Relationship to Other Control Statements 12-29 Location in the JCL 12.:.29

Unread Records 12-29

Examples of the DATA Parameter 12-29 DCB Parameter 12-31

Subparameter Definition 12-32 Defaults 12-32

Relationship to Other Parameters 12-33 Completing the Data Control Block 12-33 Examples of the DCB Parameter 12-35 DDNAME Parameter 12-49

Subparameter Definition 12-49

Relationship to Other Parameters 12-49 Overrides 12-49

Location in the JCL 12-50 Referenced DD Statement 12-50 Backward References 12-51

Examples of the DDNAME Parameter 12-51 DEST Parameter 12-53

Subparameter Definition for JES2 Systems Subparameter Definition for JES3 Systems Defaults 12-55

Overrides 12-55

Relationship to Other Parameters 12-55 Relationship to Other Control Statements

12-53 12-54

12-56

Contents XVll

(18)

Examples of the DEST Parameter 12-56 DISP Parameter 12-57

Sub parameter Definition 12-57 Defaults 12-60

Relationship to Other Parameters 12-60 Disposition of VSAM Data Sets 12-61 Disposition of Temporary Data Sets 12-61 Disposition of Partitioned Data Sets 12-61 DISP = MOD for a Multivolume Data Set 12-61 Examples of the DISP Parameter 12-62

DLM Parameter 12-64

Subparameter Definition 12-64 Default 12-65

Relationship to Other Parameters 12-65 Invalid Delimiters 12-65

Example of the DLM Parameter 12-65 DSID Parameter 12-66

Subparameter Definition 12-66

Relationship to Other Parameters 12-67 Example of the DSID Parameter 12-67 DSNAME Parameter 12-68

Subparameter Definition 12-69

Relationship to Other Parameters 12-71 Examples of the DSNAME Parameter 12-71 The DUMMY Parameter 12-73

Parameters on DD DUMMY Statements 12-73 Relationship to Other Parameters 12-74

Relationship to Other Control Statements 12-74 Relationship to Access Methods 12-74

Examples of the DUMMY Parameter 12-74 DYNAM Parameter 12-76

Relationship to Other Parameters 12-76

Relationship to Other Control Statements 12-76 Example of the DYNAM Parameter 12-76 FCB Parameter 12-77

Subparameter Definition 12-77 Defaults 12-78

Overrides 12-78

Relationship to Other Parameters 12-78

Relationship to Other Control Statements 12-79 Defining an FCB Image for a Work Station 12-79

Requesting a High-Density Dump in a JES3 System 12-79 Examples of the FCB Parameter 12-79

FLASH Parameter 12-81

Sub parameter Definition 12-81 Defaults 12-81

Overrides 12-82

Relationship to Other Parameters 12-82

Relationship to Other Control Statements 12-82 Verification of Forms Overlay Frame 12-82 Printing without Flashing 12-83

Example of the FLASH Parameter 12-83 FREE Parameter 12-84

Subparameter Definition 12-84

XVl11 MVS JCL

(19)

Defaults 12-84 Overrides 12-84

Relationship to Other Parameters 12-84

Relationship to Other Control Statements 12-85 Relationship to the CLOSE Macro Instruction 12-85 Examples of the FREE Parameter 12-85

HOLD Parameter 12-87

Subparameter Definition 12-87 Defaults 12-87

Overrides 12-87

Relationship to Other Parameters 12-88

Relationship to Other Control Statements 12-88 Example of the HOLD Parameter 12-88

LABEL Parameter 12-89

Subparameter Definition 12-89 Defaults 12-93

Relationship to Other Parameters 12-93

Deleting a Data Set Before its Expiration Date 12-93 Translation 12-94

Examples of the LABEL Parameter 12-94 MODIFY Parameter 12-95

Subparameter Definition. 12-95 Defaults 12-96

Overrides 12-96

Relationship to Other Parameters 12-96 Relationship to other Control Statements 12-96 Example of the MODIFY Parameter 12-97 MSVGP Parameter 12-98

Subparameter Definition 12-98

Relationship to Other Parameters 12-99 Allocation when MSVGP is Not Coded 12-99 Examples of the MSVGP Parameter 12-100 OUT LIM Parameter 12-101

Subparameter Definition 12-101 Default 12-101

Relationship to Other Parameters 12-101

Relationship to Other Control Statements 12-102 Example of the OUTLIM Parameter 12-102 OUTPUT Parameter 12-103

Subparameter Definition 12-104 Defaults 12-104

Overrides 12-104

Relationship to Other Subparameters 12-105 Location in the JCL 12-105

No Match for OUTPUT Name 12-105

Processing Options in Multiple References 12-105 Examples of the OUTPUT Parameter 12-105 PROTECT Parameter 12-109

Subparameter Definition 12-109

Relationship to Other Parameters 12-109

Requirements for Protecting a Tape Volume 12-109

Requirements for Protecting a Direct Access Data Set 12-110 Examples of the PROTECT Parameter 12-110

QN AME Parameter 12-111

Contents XIX

(20)

Subparameter Definition 12-111 Relationship to Other Parameters Example of the QNAME Parameter

12-111 12-111 SPACE Parameter 12-112

Subparameter Definition 12-113

Relationship to Other Parameters 12-115

SPACE for New Data Sets on Mass Storage Volumes 12-116 Examples of the SPACE Parameter 12-116

SUBSYS Parameter 12-117 Subparameter Definition 12-117

Relationship to Other Parameters 12-118 Examples of the SUBSYS Parameter 12-118 SYSOUT Parameter 12-120

Subparameter Definition 12-121 Defaults 12-121

Overrides 12-121

Relationship to Other Parameters 12-122

Relationship to Other Control Statements 12-122 Starting an External Writer when Requested 12-122 Backward References 12-122

Held Classes in a JES2 System 12-123 Significance of Output Classes 12-123 Examples of the SYSOUT Parameter 12-123 TERM Parameter 12-125

Subparameter Definition 12-125

Relationship to Other Parameters 12-125 Location in the JCL 12-125

Examples of the TERM Parameter 12-126 UCS Parameter 12-127

Subparameter Definition 12-127 Defaults 12-128

Overrides 12-128

Relationship to Other Parameters 12-129 Using Special Character Sets 12-129 Examples of the UCS Parameter 12-129 UNIT Parameter 12-130

Subparameter Definition 12-130 Overrides 12-133

Relationship to Other Parameters 12-133 Location in the JCL 12-133

Examples of the UNIT Parameter 12-134 VOLUME Parameter 12-135

Subparameter Definition 12-136 Overrides 12-139

Relationship to Other Parameters 12-139

VOLUME Information for a Checkpoint/Restart Data Set 12-140 VOLUME Parameter in a JES3 System 12-140

VOLUME Parameter for Optical Readers 12-140 Examples of the VOLUME Parameter 12-140 Chapter 13. Coding Special DD Statements 13-1 JOBCAT DD Statement 13-2

XX MVS JCL

Parameters on JOBCAT DD Statements Relationship to STEPCAT DD Statement

13-2 13-2

(21)

Relationship to Other Control Statements Location in the JCL 13-2

Example of the JOBCAT DD Statement JOBLIB DD Statement 13-4

Parameters on JOBLIB DD Statements Relationship to Other Control Statements Location in the JCL 13-5

Relationship of a JOB LIB to a STEPLIB Examples of the JOB LIB DD Statement STEPCAT DD Statement 13-7

Parameters on STEP CAT DD Statements Relationship to Other Control Statements Location in the JCL 13-7

Example of the STEPCAT DD Statement STEPLIB DD Statement 13-8

13-2 13-3 13-4

13-5 13-5 13-6

13-7 13-7 13-7 Parameters on STEPLIB DD Statements 13-8 Relationship to Other Control Statements 13-9 Location in the JCL 13-9

Relationship of a STEPLIB to a JOBLIB 13-9 Examples of the STEPLIB DD Statement 13-10

SYSABEND, SYSMDUMP, and SYSUDUMP DD Statements 13-11 Location in the JCL 13-11

Storing a Dump 13-11 Printing a Dump 13-12

Overriding Dump DD Statements 13-13 Duplicate Dump Requests 13-13

Examples of the SYSABEND, SYSMDUMP, and SYSUDUMP DD Statements 13-13 SYSCHK DD Statement 13-15

Parameters on SYSCHK DD Statements Relationship to Other Control Statements Location in the JCL 13-17

Examples of the SYSCHK DD Statement SYSCKEOV DD Statement 13-18

Parameters on SYSCKEOV DD Statements Coding SYSCKEOV for VSAM Data Sets Example of the SYSCKEOV DD Statement

13-15 13-17 13-17

13-18 13-19

13-19 Chapter 14. Coding the OUTPUT JCL Statement 14-1

Name Field 14-2 Parameter Field 14-2 Comments Field 14-3 Location in the JCL 14-3 Overrides 14-4

BURST Parameter 14-6

Subparameter Definition 14-6 Defaults 14-6

Overrides 14-6

Example of the BURST Parameter 14-6 CHARS Parameter 14-7

Subparameter Definition 14-7 Defaults 14-8

Overrides 14-8

Requesting a High-Density Dump in a JES) System 14-9 Example of the CHARS Parameter 14-9

Contents XXI

(22)

CKPTLINE Parameter 14-10 Subparameter Definition 14-10 Defaults 14-10

Example of the CKPTLINE Parameter 14-10 CKPTP AGE Parameter 14-11

Subparameter Definition 14-11 Defaults 14-11

Relationship to Other Parameters 14-11 Example of the CKPTPAGE Parameter 14-11 CKPTSEC Parameter 14-12

Subparameter Definition 14-12 Defaults 14-12

Relationship to Other Parameters 14-12 Example of the CKPTSEC Parameter 14-12 CLASS Parameter 14-13

Subparameter Definition 14-13 Overrides 14-13

Held Classes 14-13

Significance of Output Class~s 14-14 Examples cf the CLASS Par~meter 14-14 COMPACT Parameter 14-15

Subparameter Definition 14-15 Defaults 14-15

Overrides 14-15

Example of the COMPACT Parameter 14-15 CONTROL Parameter 14-16

Subparameter Definition 14-16 Defaults 14-16

Example of the CONTROL Parameter 14-16 COPIES Parameter 14-17

Subparameter Definition 14-17 Defaults 14-18

Overrides 14-18

Relationship to Other Parameters 14-18

Relationship to Other Control Statements 14-18 Examples of the COPIES Parameter 14-18 DEFAULT Parameter 14-20

Subparameter Definition 14-20 Defaults 14-20

Location in the JCL 14-20

References to Default OUTPUT JCL Statements 14-21 Example of the DEFAULT Parameter 14-21

DEST Parameter 14-23

Subparameter Definition for JES2 Systems 14-23 Subparameter Definition for JES3 Systems 14-24 Defaults 14-25

Overrides 14-25

Examples of the DEST Parameter 14-25 FCB Parameter 14-26

Subparameter Definition 14-26 Defaults 14-27

Overrides 14-27

Relationship to Other Parameters 14-27

Requesting a High-Density Dump in a JES3 System 14-27

XXll MVS JCL

(23)

Example of the FCB Parameter 14-27 FLASH Parameter 14-28

Subparameter Definition 14-28 Defaults 14-29

Overrides 14-29

Relationship to Other Parameters 14-29 Verification of Forms Overlay Frame 14-29 Printing without Flashing 14-29

Example of the FLASH Parameter 14-30 FORMDEF Parameter 14-31

Subparameter Definition 14-31 Overrides 14-31

Example of the FORMDEF Parameter 14-32 FORMS Parameter 14-33

Subparameter Definition 14-33 Defaults 14-33

Overrides 14-33

Example of the FORMS Parameter 14-33 GROUPID Parameter 14-34

Subparameter Definition 14-34

Examples of the GROUPID Parameter 14-34 INDEX Parameter 14-36

Subparameter Definition 14-36 Defaults 14-36

Relationship to Other Parameters Example of the INDEX Parameter JESDS Parameter 14-37

Subparameter Definition 14-37 Overrides 14-38

Location in the JCL 14-38

14-36 14-36

Destination for the System Data Sets 14-38 Example of the JESDS Parameter 14-38 LINDEX Parameter 14-39

Subparameter Definition 14-39 Defaults 14-39

Relationship to Other Parameters 14-39 Example of the LINDEX Parameter 14-39 LINECT Parameter 14-40

Subparameter Definition 14-40 Defaults 14-40

Example of the LINECT Parameter 14-40 MODIFY Parameter 14-41

Subparameter Definition 14-41 Defaults 14-42

Overrides 14-42

Relationship to Other Parameters 14-42 Example of the MODIFY Parameter 14-42 PAGEDEF Parameter 14-43

Subparameter Definition 14-43 Overrides 14-44

Example of the PAGEDEF Parameter 14-44 PIMSG Parameter 14-45

Subparameter Definition 14-45 Defaults 14-45

Contents XXlll

(24)

Example of the PIMSG Parameter 14-45·

PRMODE Parameter 14-46 Subparameter Definition 14-46 Defa ul ts 14-46

Printing a Line-Mode Data Set Using PSF 14-47 Example of the PRMODE Parameter 14-47 PRTY Parameter 14-48

Subparameter Definition 14-48 Defaults 14-48

Overrides 14-48

Example of the PRTY Parameter 14-48 THRESHLD Parameter 14-49

Subparameter Definition 14-49 Defaults 14-49

Example of the THRESHLD Parameter 14-50 TRC Parameter 14-51

Subparameter Definition 14-51 Defaults 14-51

Relationship to Other Parameters Example of the TRC Parameter UCS Parameter 14-53

Subparameter Definition 14-53 Defaults 14-54

Overrides 14-54

14-51 14-52

Using Special Characters Sets 14-55 Example of the UCS Parameter 14-55 WRITER Parameter 14-56

Subparameter Definition 14-56 Defaults 14-56

Overrides 14-56

Starting an External Writer 14-56

Example of the WRITER Parameter 14-57 Chapter 15. Coding Special JCL Statements 15-1 JCL Command Statement 15-2

Command 15-2 Parameter Field 15-3 Comments Field 15-3 Location in the JCL 15-3

Example of the Command Statement 15-3 Comment Statement 15-4

Location in the JCL 15-4

Listing of Comments Statements 15-4 Example of the Comment Statement 15-4 CNTL Statement 15-5

Label Field 15-5 Parameter Field 15-5 Comments Field 15-5 Location in the JCL 15-6

Program Control Statements 15-6

Program Control Statements in Procedures 15-6 Example of the CNTL Statement 15-6

Delimiter Statement 15-7

Relationship to the DD Statement DLM Parameter 15-7

XXIV MVS JCL

(25)

Example of the Delimiter Statement 15-7 ENDCNTL Statement 15-8

La bel Field 15-8 Comments Field 15-8 Location in the JCL 15-8

Example of the ENDCNTL Statement 15-8 Null Statement 15-9

Location in the JCL 15-9

Example of the Null Statement 15-9 PEND Statement 15-10

Name Field 15-10 Comments Field 15-10 Location in the JCL 15-10

Examples of the PEND Statement 15-10 PROC Statement 15-11

Name Field 15-11 Parameter Field 15-11 Comments Field 15-12 Overrides 15-12

Using Symbolic Parameters 15-12 Examples of the PROC Statement 15-12 Chapter 16. Coding JES2 Control Statements 16-1

Location in the JCL 16-1 Internal Reader 16-1 Command Statement 16-2

Parameter Definition 16-2 Location in the JCL 16-3

Examples of the Command Statement 16-3 j*JOBPARM Statement 16-4

Parameter Definition 16-4 Overrides 16-7

Location in the JCL 16-7 Execution Node 16-7

Example of the j*JOBPARM Statement 16-8 j*MESSAGE Stateme"nt 16-9

Relationship to the j*ROUTE XEQ Statement 16-9 Location in the JCL 16-9

Example of the j*MESSAGE Statement 16-9 j*NETACCT Statement 16-10

Parameter Definition 16-10 Defaults 16-10

Overrides 16-10

Location in the JCL 16-10

Example of the j*NETACCT Statement 16-10 j*NOTIFY Statement 16-11

Parameter Definition 16-11 Overrides 16-11

Relationship to Other Control Statements 16-12 Examples of the NOTIFY Statement 16-12 j*OUTPUT Statement 16-13

Parameter Definition 16-14 Overrides 16-20

Relationship to Other Control Statements 16-21

Contents XXV

(26)

Location in the JCL 16-21

Example of the /*OUTPUT Statement 16-21 /*PRIORITY Statement 16-22

Parameter Definition 16-22 Overrides 16-22

Relationship to Other Control Statements 16-22 Location in the JCL 16-23

Example of the PRIORITY Statement 16-23 /*ROUTE Statement 16-24

Parameter Definition 16-24 Location in the JCL 16-26

Processing of /*ROUTE Statements 16-26 Multiple /*ROUTE Statements 16-26 Examples of the ROUTE Statement 16-26 /*SETUP Statement 16-28

Parameter Definition 16-28 Location in the JCL 16-28

Example of the /*SETUP Statement 16-28 /*SIGNOFF Statement 16-29

Example of the /*SIGNOFF Statement 16-29 /*SIGNON Statement 16-30

Location in the JCL 16-30 Parameter Definition 16-30

Examples of the /*SIGNON Statement 16-31 /*XEQ Statement 16-32

Parameter Definition 16-32 Location in the JCL 16-32 Multiple I*XEQ Statements 16-32 Example of the XEQ Statement 16-32 /*XMIT Statement 16-33

Parameter Definition 16-33 Defaults 16-34

Location in the JCL 16-35

Example of the XMIT Statement 16-35

Chapter 17. Coding JES3 Control Statements 17-1 Location in the JCL 17-1

Internal Reader 17-1

Examples of JES3 Control Statements 17-2 Command Statement 17-3

Parameter Definition 17-3 Location in the JCL 17-4

Examples of the Command Statement 17-4 //*DATASET Statement 17-5

Parameter Definition 17-5

Examples of the I/*DATASET Statement 17-6 II*ENDDATASET Statement 17-7

Location in the JCL 17-7

Example of the I/*ENDDATASET Statement 17-7 I/*ENDPROCESS Statement 17-8

Location in the JCL 17-8

Example of the /I*ENDPROCESS Statement 17-8 //*FORMAT PR Statement 17-9

Parameter Definition 17-10

XXVI MVS JCL

(27)

Relationship to Sysout DD and OUTPUT JCL Statements 17-17 Relationship to / /*PROCESS Statement 17 -17

Examples of the //*FORMAT PR Statement 17-17 //*FORMAT PU Statement 17-18

Parameter Definition 17-19

Relationship to Sysout DD and OUTPUT JCL Statements 17-22 Relationship to //*PROCESS Statement 17-22

Example of the //*FORMAT PU Statement 17-22 / /*MAIN Statement 17-23

Parameter Definition 17-24 Location in the JCL 17-34

Example of the / /*MAIN Statement 17-34 / /*NET Statement 17-35

Parameter Definition 17-35

Examples of the //*NET Statement 17-39 / /*NETACCT Statement 17-40

Parameter Definition 17-40 Defaults 17-41

Example of the //*NETACCT Statement 17-41 //*OPERATOR Statement 17-42

Example of the / /*OPERATOR Statement 17-42 //*PAUSE Statement 17-43

Example of the //*PAUSE Statement 17-43 / /*PROCESS Statement 17-44

Parameter Definition 17-44 Location in the JCL 17-45

Examples of the / /*PROCESS Statement 17 -46 / /*ROUTE XEQ Statement 17-47

Parameter Definition 17-47 Location in the JCL 17-47

Example of the / /*ROUTE XEQ Statement 17-48 /*SIGNOFF Statement 17-49

Example of the /*SIGNOFF Statement 17 -49 /*SIGNON Statement 17-50

Parameter Definition 17-50

Example of the /*SIGNON Statement 17-51

Part 5. Reference Tables

Chapter 18. Reference Tables 18-1 Index X-I

Contents XXVll

(28)

XXVl11 MVS JCL

(29)

Figures

I-I.

1-2.

1-3.

1-4.

1-5.

1-6.

2-I.

2-2.

4-I.

4-2.

5-I.

5-2.

6-I.

7-I.

7-2.

8-I.

8-2.

9-I.

9-2.

10-1.

ll-I.

11-2.

12-1.

14-1.

14-2.

17-I.

18-1.

18-2.

18-3.

18-4.

18-5.

18-6.

18-7.

18-8.

18-9.

18-10.

18-II.

18-12.

18-13.

Job Control Statements JES2 Control Statements JES3 Control Statements

A Job in the Input Stream . . . . A Job with Several Job Steps . . . . Job Boundaries in the Input Stream . . . . JCL Control Statement Fields . . . .

1-1 1-3 1-5 1-9 1-10 1-10 2-5 Character Sets . . . 2-10 Using the EXEC Statement . . . 4-1 Modifying a Cataloged Procedure . . . 4-2 U sing the COND Parameter . . . 5-11 Using the COND Parameter within a Failing Step . . . 5-13 Types of JES3 Setup . . . 6-7 How Device Status Affects Eligibility for Allocation . . . 7-24 Unit and Volume Affinity . . . 7-34 DD parameters used with VSAM . . . 8-15 DD parameters you should avoid with VSAM . . . 8-16 Identification of Cataloged Procedure Statements on the Output Listing 9-13 Identification of In-stream Procedure Statements on the Output Listing ... 9-14 Continuation or Termination of the Job Based on COND Parameter . . . 10-11 Execution or Bypassing of Current Step Based on COND Parameter . . . 11-11 Effect of EVEN and ONLY Subparameters on Step Execution . . . 11-11 Special Character Sets for the 1403, 3203 Model 5, and 3211 Printers ... 12-128 Using job- and step-level OUTPUT JCL statements . . . 14-1 Special Character Sets for the 1403, 3203 Model 5, and 3211 Printers . . . 14-54 Table of Allowable DSPs for PROCESS Statements . . . 17-45 DD Parameters for Creating a Data Set . . . 18-2 DD Parameters for Retrieving a Data Set . . . 18-4 DD Parameters for Extending a Data Set . . . 18-5 DD Parameters for Retrieving or Extending an Indexed Sequential Data Set .. 18-6 Area Arrangement of Indexed Sequential Data Sets . . . 18-7 Table of Mutually Exclusive DD Parameters . . . 18-8 Disposition Processing Table . . . 18-9 Direct Access Capacities . . . 18-10 Track Capacities . . . 18-11 The JOB Statement . . . 18-13 The EXEC Statement . . . 18-14 The DD Statement . . . 18-15 The OUTPUT JCL Statement . . . 18-18

Figures XXIX

(30)

XXX MVS JCL

(31)

:ontents Directory

)B Statement

(EC Statement

D Statement

tecial DD Statement

UTPUT Statement

Jecial JCL Statements

['S2 Statements

[S3 Statements

- - - - ..

eference Tables

tdex __________________________________________________________________________ __

Contents Directory XXXi

(32)

XXXll MVS J CL

(33)

Summary of Amendments

Summary of Amendments for GC28-1300-2

as updated December 21, 1984

This revision supports MVS/System Product Version 1 Release 3.4 with the following changes:

• The OUTPUT JCL statement can now be used in JES3 systems.

• The DEST parameter on the DD statement and on the JES3 //*FORMAT statement; JES3 now defines the default origin as the submitting node.

The revision also includes maintenance and editorial changes.

Summary of Amendments for GC28-1300-1

as updated October 12, 1984 by TNL GN28-1016

This technical newsletter contains information to support changes in the Resource Access Control Facility (RACF) requirements for the JOB statement USER, PASSWORD, and GROUP parameters and to support early authorization verification.

Summary of Amendments for GC28-1300-1

as updated December 1983 This revision contains:

• Information to support MVS/System Product Version 1 Release 3.4.

• Maintenance updates, which reflect the changes made in response to comments from our readers.

Summary of Amendments XXXlll

(34)

XXXIV MVS JCL

(35)

Part 1. Introduction

You write your program in a programming language such as FORTRAN, assembler, or COBOL. The operating system translates this programming language into machine language, so that the computer can execute the instructions and perform work.

The program you code has specific resource requirements: storage, data sets, devices, and volumes. To communicate these resource requirements to the operating system, you use a programming language called job control language (JCL) in the input stream.

In addition, the job entry subsystem in use at your installation provides certain resources for your job and your job's data sets. Using Job Entry Subsystem 2 (JES2) and/or Job Entry Subsystem 3 (JES3) control statements, you can specify processing requirements for:

• Your job

• All data sets for your job

• Specific data sets in your job

A collection of related programs you submit to the operating system is a job. A job is made up of one or more job steps; each step is the unit of work associated with one of the programs that make up the job.

To introduce you to job control, the first chapter in this part describes:

• The JCL statements.

• The JES2 control statements.

• The JE83 control statements.

• Cataloged and in-stream procedures, which are standard sets of JCL statements for jobs you run frequently.

• Submitting and executing your job.

The second chapter in this part explains the coding conventions used throughout the book to describe the JCL statements and JE82 and JES3 control statements.

Part 1. Introduction

(36)
(37)

Chapter 1. Introduction to Job Control

The JCL Statements

Job control language (JCL) consists of the statements summarized in Figure 1-1. Each statement is described in detail in later chapters.

Statement Name Purpose

// JOB job Marks the beginning of a job; assigns a name to the job.

II EXEC execute Marks the beginning of a job step; assigns a name to the step; identifies the program or the cataloged or in-stream procedure to be executed in this step.

I I DD data definition Identifies and describes a data set.

1/ OUTPUT output Specifies the processing options that the job entry subsystem is to use for printing output data sets.

II CNTL control Marks the beginning of one or more program control statements.

I I ENDCNTL end control Marks the end of one or more program control statements.

II PEND procedure end Marks the end of an in-stream procedure.

/ / PROC procedure Marks the beginning of an in-stream procedure and may mark the beginning of a cataloged procedure; assigns default values to parameters defined in the procedure.

/1 command command Enters a system operator command through the input stream. The command statement is used primarily by the operator.

Note: JES3 ignores the JCL command statement.

1/* comment comment Contains comments. The comment statement is used primarily to document a program and its resource requirements.

1* delimiter Indicates the end of data placed in the input stream.

Note: Any two characters can be designated by the user to be the delimiter.

II null Marks the end of a job in a JES3 system.

Note: JES2 ignores the null statement.

Figure 1-1. Job Control Statements

In addition to using JCL statements to identify your job, job steps, and data sets, you use JCL statement parameters to request resources and services from the operating system. The operating system, together with your job entry subsystem, is responsible for managing all the

Chapter 1. Introduction to Job Control 1-1

(38)

resources of the computing system. It performs many job processing services automatically, but you can influence the way your job is processed by the JCL parameters you code. For

example, the job entry subsystem selects jobs for execution, but you can speed up or delay selection of your job by the parameters you code on the JOB statement in a JES2 system or on the //*MAIN statement in a JES3 system. Also, you can ask for a specific volume on which to write a data set.

The following paragraphs describe some of the functions that are requested through the major JCL statements:

JOB statement: Parameters on the JOB statement can:

• Provide accounting information to the installation's accounting routines.

• Define execution characteristics.

• Specify conditions for early termination of the job.

• Request a specific class for system messages and JCL statements.

• Hold a job for later execution.

• Limit the time that the job can use the processor.

EXEC statement: Parameters on the EXEC statement can:

• Identify the program or cataloged or in-stream procedure that the system is to execute.

• Provide job step accounting information.

• Give conditions for bypassing or executing a job step.

• Limit the time that the job step can use the processor.

• Pass information to a processing program, such as the linkage editor.

DD statement: Parameters on the DD statement can provide the system with information:

• The name of the data set.

• The type of I/O device that holds the data set.

• The serial number of the volume on which it resides.

• Whether a data set is old, new, or temporary.

• What to do with the data set after processing is finished.

• The format of the records in the data set.

• The size of newly created data sets.

• The access method that will be used to create or refer to the data.

OUTPUT statement: Parameters on the OUTPUT statement provide the system with processing options for system output data sets. Parameters on this statement can:

• Specify processing options for output data sets.

• Route output to a specific destination.

• In JES2 systems, process output data sets as a group.

1-2 MVS JCL

(39)

The JES2 Control Statements

In a JES2 installation, you can use JES2 control statements in the input stream to control the input, output, and processing of a program. See Figure 1-2 for the purpose of the JES2 statements that you can use with JCL statements to define your job's resource and processing requirements to the system.

Statement Purpose

j*$command Enters JES2 operator commands through the input stream.

j*JOBPARM Specifies certain job-related parameters at input time.

j*MESSAGE Sends messages to the operator via the operator console.

j*NETACCT Specifies an account number for a network job.

j*NOTIFY Specifies the destination of notification messages.

j*OUTPUT Specifies characteristics and options of groups of SYSOUT data sets or of a specific SYSOUT data set.

j*PRIORITY Assigns a job queue selection priority.

/*ROUTE Specifies the default output destination.

/*SETUP Indicates volumes needed to execute the job.

j*SIGNOFF Ends a remote job stream processing session.

j*SIGNON Begins a remote job stream processing session.

j*XEQ Specifies the execution node for a job.

j*XMIT Indicates a job or data stream to be transmitted to another JES2 node or eligible non-JES2 node.

Figure 1-2. JES2 Control Statements

Several of these statements are briefly discussed here.

JES2 /*JOBPARM Statement: Parameters on the JES2 j*JOBPARM statement can specify:

• The estimated number of cards to be produced as output from a job.

• The number of copies of printed output desired.

• The default print or punch forms for this job.

• The number of output lines on each page.

• The estimated total number of output lines from the job.

• The estimated total number of system output data set bytes from the job.

• Your office number.

• Any system affinity that may be required.

• The estimated job execution time.

• The printing of the job log.

• The name of the cataloged procedure library to be used to convert the JCL for the job.

JES2

/*

NETACCT Statement: The network account number on the JES2 j*NETACCT statement lets you specify accounting information that can be accepted and interpreted by all nodes. Some nodes may use the number as is, while others can translate it to a local account number.

Chapter 1. Introduction to Job Control

1-3

(40)

JES2 /*ROUTE Statement: Parameters on the JES2/*ROUTE statement can:

• Route the execution of a job to any processor in the network.

• Route the printed or punched output to any local device, remote terminal, or node in the network.

JES2/* XEQ Statement: The JES2 /*XEQ statement causes JES2 to send the job to any processor in the JES2 network for execution.

JES2 /* XMIT Statement: The JES2 /*XMIT statement causes JES2 to transmit a data stream or job to a specified JES2 node or eligible non-JES2 node without JES2 input service functions being performed on the data stream.

1-4 MVS JCL

Références

Documents relatifs

Tools for Practice articles in Canadian Family Physician (CFP) are adapted from articles published on the Alberta College of Family Physicians (ACFP) website, summarizing

Canadian Institutes of Health Research, Natural Sciences and Engineering Research Council of Canada, Social Sciences and Humanities Research Council of Canada. Tri- Council

Vol 54: december • décembre 2008   Canadian Family Physician • Le Médecin de famille canadien

The aim of our experiments was (1) to find out if and how certain expertise hypotheses can be evaluated based on the LOD cloud as source for expertise evidence and

Type ‘‘ my first program ’’ (get into the habit of giving descriptive names to projects and other files) in the Target name box. Use the browse button to find the

Figure 10: Example SQL Script to Create A View to Monitor Pool Usage By User Once the SQL_SUMMARY view is created the script in Figure 11 is run to generate a summary report of

Digit 4 - Negotiated Packet Size Facility: The response for this digit specifies whether the negotiated packet size facility field will be included in the Call Request

Note:* "definitions of International Glossary of Hydrogeology (1992) followed, except for terms marked ^ for which none available and ^^ for which some qualification deemed