Describe the DD statement, its meaning, syntax and keywords?
Answers were Sorted based on User's Feedback
Answer / sunitha
Ans: The DD statement links the external dataset to the
ddname coded within the executing program. It links the
files within the program code to the filenames known to the
MVS Operating system. The syntax is:
//DDANAME DD DSN=NAME,
// DISP=(NEW,CATLG,DELETE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800),
// SPACE=(CYL,(20,5),RLSE),
// UNIT=SYSDA
DSN- Name of the dataset- separated by periods, each name 1
to 8 characters, total 44 chars including periods.
DISP- It specifies the disposition of the dataset.
DISP=(status,normal-disposition,abnormal-disposition)
Status – The statuses NEW,MOD,OLD,SHR are the status of the
dataset at the beginning of the step.
NEW is given to create a new dataset. It is the default if
anything is not coded.
OLD designates an existing dataset with exclusive control.
SHR designates an existing dataset without exclusive
control.
MOD is used to extend the dataset if it exists or to create
a new one if it does not exist.
Normal-disposition- It directs the system on the
disposition of the data set (pass, keep, catlg, uncatlg,
delete) when the step ends normally.
Abnormal-disposition- It directs the system on the
disposition of the data set (keep, catlg, uncatlg, delete)
when the step ends abnormally.
DCB- Physical characteristics of a Data Set are described
by DCB Parameters. These parameters must be coded for newly
created data set as well as for existing Datasets.
• LRECL=n (VALUE IN BYTES)
• RECFM=(F/FB/V/VB/U)
• BLKSIZE= multiple of LRECL
• DSORG=(PS/PO/DA)
PO: specifies a partitioned Organization, DA: specifies a
direct organization.
SPACE=(space units,
(primary,secondary,dir),RLSE,CONTIG,MXIG,ROUND)
space unit - TRK(tracks)/CYL(cylinders)/BLOCKSIZE in bytes.
In our above example it allocates 20 cycles primary and if
required allocates 5 secondary cycles.
RLSE- Request to release the space that is primarily
allocated if unused.
CONTIG- Request for contiguous space.
MXIG- Request for large area of contiguous space.
ROUND- Request for entire cylinder for storage of dataset.
UNIT parameter indicates the information about input or
output device that will be used
by the dataset. It specifies a group name, device type, or
device number that identifies the
device where the file resides. The Format of the UNIT
parameter is UNIT= groupname/
device-type/device number.
VOL parameter is primarily used for tapes. A volume is the
portion of the storage device served by one read/write
mechanism. To request specific volumes, we code
VOL=SER=volume for one volume or VOL=SER=(volume, volume…)
for multiple volumes. Volume serial numbers are one to six
characters.
SYSOUT parameter is used to route the output to a device.
// DDNAME DD SYSOUT=CLASS
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / guest
The DD statement links the external dataset name (DSN) to
the DDNAME coded within the executing program. It links the
file names within the program code to the file names know to
the MVS operating system. The syntax is // ddname DD
DSN=dataset name. Other keywords after DSN are DISP, DCB,
SPACE, etc.
| Is This Answer Correct ? | 3 Yes | 0 No |
. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance
what is symbolic parameters in jcl, what is a temparary data set ? where do u use ?
how would you create a temporary dataset? And where will you use them?
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
describe the exec statement,its meaning ,syntax and keywords?
Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??
can we give instream data in procedure
Please explain with syntax and an example, the Inrec fields and Outrec build in sort.
How do You skip a Step In JCL?
IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the second step using the JCL, How to do it?? Please give the answer ASAP:)