Let's understand Mainframe
Home Tutorials Interview Q&A Quiz Mainframe Memes Contact us About us

Module 4: JCL DD Statement


DD DSN parameter

DSN stands for data set name. The DSN parameter is used to specify name of newly created or existing dataset

Syntax:-    DSN=data-set-name

Where,

data-set-name, can be made up of sub-names(also referred as qualifier) and each of them can be 1 to 8 characters long. Each of sub-names are separated by period(.) sign. The maximum length of a data set name including periods, is 44 characters.

Examples:-

   //INFILE1 DD DSN=FILE1

   //INFILE2 DD DSN=DEPT1.EMP1.DATA

   //INFILE3 DD DSN=DEPT1.EMP2.DATA(TEST1)

   //INFILE4 DD DSN=&&TEMPDATA
   [&& used to define temporary dataset which is explained later]



Advertisements






© copyright mainframebug.com
Privacy Policy