How can an allocation be changed to DSNTYPE LARGE ?
search cancel

How can an allocation be changed to DSNTYPE LARGE ?

book

Article ID: 40099

calendar_today

Updated On:

Products

Allocate DASD Space and Placement

Issue/Introduction

How can I change a new allocation made without DSNTYPE=LARGE to be LARGE using Allocate?

 

  

 

 

Resolution

The Allocate variable &DSNTYPE is available in the ACS environment only for Read and cannot be overridden. 

You need to identify the data set in the ACS environment of your Allocate ASR and assign a corresponding SMS DataClass
that has the dsntype attribute LARGE to change an allocation made from a JCL without DSNTYPE=LARGE to be LARGE. 

Sample: 

IF &VAMENVIR = 'ACS' THEN
  DO 
   IF &DSN = ABC.LARGE.**  AND  &DSNTYPE NE 'LARGE' THEN
    DO 
      SET &DC = 'DCLARGE' 
      WRITE '#ACS_ENV: &DSN DC SET TO &DC' 
    END 
  END