DSN Parameter Example


Scenario1 - For PS file.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01   DD  DSN=MTH.DATA.PSFILE,DISP=SHR

Scenario2 - For PDS member

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01   DD  DSN=MTH.DATA.PDS(MEMBER1),DISP=SHR

Scenario3 - For temporary dataset

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01   DD  DSN=&&TEMP,DISP=SHR

Scenario4 - Using file from previous step

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01   DD  DSN=MTH.DATA.PSFILE,DISP=SHR
//DD02  DD  DSN=*.DD01

Scenario5 - DUMMY dataset

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01   DD  DUMMY