DSFA (Altering a data set)

Purpose
Change the attributes of a data set.
Usage notes
Data set attribute alteration parameters, as supported by Access Method Services, are provided with the exception of: EXCEPTIONEXIT, FILE, LOCK or UNLOCK, and NULLIFY. If the operation cannot be performed, Access Method Services messages are returned; for example, where a parameter is not applicable to the type of data set.
Options
None.
Read syntax diagramSkip visual syntax diagram
Syntax

>>-DSFA--DSNIN=dsname--+--------------+--+---------------+------>
                       '-ACCT=account-'  '-ADDVOL=volume-'   

>--+-------------+--+-------------+--+-------------+------------>
   '-BUFSP=bufsp-'  '-BUFND=bufnd-'  '-BUFNI=bufni-'   

>--+--------------+--+-------------+--+-------------+----------->
   +-BWO=TYPECICS-+  '-CAT=catalog-'  '-CCSID=value-'   
   +-BWO=TYPECIMS-+                                     
   '-BWO=NO-------'                                     

>--+-----------+--+-----------+--+-----------+------------------>
   +-ECSHR=YES-+  +-EMPTY=YES-+  +-ERASE=YES-+   
   '-ECSHR=NO--'  '-EMPTY=NO--'  '-ERASE=NO--'   

>--+-----------------+--+----------+--+----------+-------------->
   +-FILEDATA=TEXT---+  '-FREECI=n-'  '-FREECA=n-'   
   '-FILEDATA=BINARY-'                               

>--+------------+--+---------+--+----------+--+----------+------>
   +-FRLOG=NONE-+  +-INH=YES-+  '-KEYLEN=n-'  '-KEYOFF=n-'   
   '-FRLOG=REDO-'  '-INH=NO--'                               

>--+----------+--+----------------+--+---------+---------------->
   +-LOG=NONE-+  '-LSID=logstream-'  '-LIMIT=n-'   
   +-LOG=UNDO-+                                    
   '-LOG=ALL--'                                    

>--+--------------------+--+-----------------+------------------>
   '-MGMTCLAS=classname-'  '-NEWNAME=newname-'   

>--+-------------+--+----------+--+----------+------------------>
   '-OWNER=owner-'  '-RECAVG=n-'  '-RECMAX=n-'   

>--+---------------+--+-----------+--+-------------+------------>
   '-REMVOL=volume-'  +-REUSE=YES-+  +-SCRATCH=YES-+   
                      '-REUSE=NO--'  '-SCRATCH=NO--'   

>--+----------+--+----------+--+--------------------+----------->
   '-SHRREG=n-'  '-SHRSYS=n-'  '-STORCLAS=classname-'   

>--+---------+--+---------+--+------------+--+------------+----->
   '-STRNO=n-'  '-TO=date-'  +-UNIQUE=YES-+  +-UPDATE=YES-+   
                             '-UNIQUE=NO--'  '-UPDATE=NO--'   

>--+-------------+--+----------+-------------------------------><
   +-UPGRADE=YES-+  +-WCHK=YES-+   
   '-UPGRADE=NO--'  '-WCHK=NO--'   

DSNIN=dsname
The name of the data set whose attributes you want to alter.
Note: All the parameters you specify for the DSFA function are passed to the Access Method Services (AMS) ALTER command.

For more information about thes parameters, see DFSMS AMS for Catalogs, SC26-7394.