Professional Documents
Culture Documents
Overview
EXEC STATEMENT
By default,
SYS1.LINKLIB is
searched for the
program to be
executed.
TIME PARAMETER
TIME-EXAMPLE
REGION
Parameter
Specifies amount of
storage space required to
execute the step
Formats are:
REGION=<value>K
REGION=<value>M
<value> should be a
positive numeric in units of
“K” or “M” indicating
Kilobytes or Megabytes of
space
OVERVIEW
DD STATEMENT
DD statement
identifies a data
stream to a program
DD statement
contains
An optional DD
name
DD operation
field
Positional
parameters
Keyword
parameters
UNIT
DISP
DDNAME
Specifies the fully qualified physical name of the input or output file
Format is
Format is
DISP=(<present-status>, <normal-end-status>, <abnormal-end-
status>)
present-status specifies current status, meaning whether the data
set exists or is to be created and if it exists, the mode of access to
it
normal-end-status specifies how to handle the dataset upon
successful completion of the JOB
abnormal-end-status specifies how to handle the dataset upon
abnormal termination of JOB
DISP Keyword
Parameter
One or more sub parameters can be omitted but at least one should
be coded
EXAMPLE
Example Program :
DISP(NEW,PASS,DELETE)
DATA SET WILL NOT BE RETAINED
Example FOR COPYING A
Physical file to another
Physical File :
DISP(NEW,CATLG,DELETE
)
Example
Example Program :
DISP(OLD,KEEP,DELET
E)
DATASET WILL BE RE-WRITTEN
Example Program :
DISP(MOD,KEEP,DELET
E)
Example Program:
DISP(MOD,KEEP,DELET
E)
UNIT Keyword
Parameter
UNIT=device-address
UNIT=device-type
UNIT=device-group-name
SPACE Keyword
Parameter
SPACE Keyword
Parameter
SPACE=(S1,(S2,S3,S4),S5,S6,S7)
SPACE=(S1,(S2,S3,S4),S5,S6,S7)
<S2> sub parameter specifies primary quantity of space requested
SPACE=(S1,(S2,S3,S4),S5,S6,S7)
<S5> sub parameter –
Specifies the option RLSE that indicates that any unused space
allocated to a dataset be released once the dataset is closed.
Takes time to release space
<S6> sub-parameter
Specifies a value CONTIG that indicates that only contiguous space
should be allocated to the dataset
Option applies only to primary space allocation
Results in decreased dataset access time
JOB abends if requested space is not contiguously available
<S7> sub parameter
Specifies a value ROUND
DATA CONTROL BLOCK Parameter -
DCB
Format is LRECL=<record-length>
Specifies record length in bytes for fixed and variable length
records
For variable record lengths, the LRECL should be 4 bytes more
than the length of the largest record
BLKSIZE
Format is BLKSIZE=<block-size>
Specifies the block size of data in bytes
Must be a multiple of LRECL
For variable record lengths the BLKSIZE should be 4 bytes more
than the length of the largest record
DCB – Sub
Parameters
F - Fixed
FB - Fixed Blocked
V - Variable
VB - Variable Blocked
U - Undefined
DCB – Sub
Parameters
Datasets can be
concatenated and
considered as one file
by the system
All datasets being
concatenated must have
the same record format
All datasets being
concatenated must exist
on same type of device
To concatenate datasets
omit the DDname from
all the DD statements
except the first one
In this visual FILE1 is a
concatenated input
dataset
Special DD
statements
SYSIN
JOBLIB
STEPLIB
JCLLIB
SYSOUT
SYSDUMP
SYSABEND
JOBLIB
SYSDUMP
Format is SYSDUMP DD ……
Used to obtain a dump of the contents of various
registers and variables in case of an abnormal end of
program
Dump is in hexadecimal format
SYSABEND
Format is SYSABEND DD ….
Contains same details as SYSDUMP with more details
SYSUDUMP
SYSMDUMP
END