BST05CMD updates information in the database definition file. For example, BST05CMD can be used to delete the definitions for spool files (type SPOOL, INDEX, etc.) from the database definition file (BnnDEF).
Please observe the following when deleting spool file definitions:
DEFINE DELETE FILE shortname
where shortname is the short name of the spool, cache or index file to be deleted.
To find the short name shortname that is to be used in the Delete command in BQLIN, proceed as follows:
Panel "Display Data Set Definition" is called. The Short Name field shows the short name to be used in the DELETE command.
0 |
The program ended normally. The definition has been deleted. |
16 |
The delete command was not executed. You will find additional information in BQLPRINT. |
32 |
BQLPRINT or the BQLIN DD statement was missing, or the database was open for another STC or batch job. |
Replace nn with the product number and xx with the identifier of the LST member.
+---------------------------------------------------------------+
|jobcard |
|//stepname EXEC PGM=BST01RFF,REGION=0M, |
|// PARM='S=nn,BnnLST=xx,PGM=BST05CMD,SIGNON=NO' |
|//* |
|//STEPLIB DD DISP=SHR,DSN=BSA.LOAD |
|// DD DISP=SHR,DSN=BETAnn.LOAD |
|//SFFPARM DD DISP=SHR,DSN=BETA.PARMLIB |
|//BnnDEF DD DISP=SHR,DSN=BETAnn.DB.DEF |
|//* |
|//BQLIN DD * |
| DEFINE DELETE FILE shortname |
|/* |
|//BQLPRINT DD SYSOUT=* |
|//SYSPRINT DD SYSOUT=* |
|//* |
+---------------------------------------------------------------+
You can use BST05CMD to change the status (ONLINE/OFFLINE) of a spool file definition in the database definition file. Spool files (type SPOOL, INDEX, etc.) with status OFFLINE remain closed when the STC or a batch job is started. If you are working with a large number of files, this can considerably speed up the startup process.
Note the following when changing spool file status with BST05CMD:
DEFINE UPDATE FILE shortname STATUS OFFLINE
where shortname is the short name of the spool file to be set to OFFLINE status.
The following command in BQLIN sets the status to ONLINE:
DEFINE UPDATE FILE shortname STATUS ONLINE