Using the BATCH DECODE command
The DECODE command disassembles DBD or PSB objects from any of the following sources:
- Load module DDs such as DBDLIB or PSBLIB
- ACBLIB DD
- IMS Catalog
- IMS Directory
The command produces disassembled statements in either the DDL or DBDGEN/PSBGEN syntax.
The DECODE command has the following format:
or
DECODE PSB(XXX) SOURCE(IMS) DDL(Y)
Keywords for the BATCH DECODE command
Keyword | Possible Value or Values | Description |
---|---|---|
DBD | <DBDname> | The DBD object to disassemble. The value is a name or a mask. Masks can have a wildcard character * to match any number of characters. You can use either the DBD or PSB keyword. One of these is a mandatory keyword. |
PSB | <PSBname> | The PSB object to disassemble. The value is a name or a mask. Masks can have a wildcard character * to match any number of characters. You can use either the DBD or PSB keyword. One of these is a mandatory keyword. |
SOURCE | You can use one of the following values:
Default is SOURCE(IMS). | This is the source from which to read the object definitions. This is an optional keyword. |
DDL |
Default is DDL(N). | This keyword describes whether to generate DDL, GEN statements, or both. Default is DDL(N). This is an optional keyword. |
RELATED |
Default is RELATED(N). | This keyword describes whether to include logically related databases in the disassembly. This is an optional keyword. |
IMPORT |
Default is IMPORT(N). | This keyword describes whether to perform an import of COBOL or PL/I copybooks to generate FIELD statements in the DBD, reflecting layouts from an application program. This is an optional keyword. |
ONEXIST |
Default is ONEXIST(IGNORE). | This keyword only applies to importing copybooks and defines what action to take if a copybook field name already exists in the DBD. This is an optional keyword. |
Running the DECODE command
Specify the following PARM on the EXEC statement to run the DECODE command:
This indicates that the region type is a IMS Utility Region, and the product ID is DBI for "Database Integrity" functions. The fourth entry W indicates to use read-only processing for any DBRC functions that may be required. DBRC is only used when accessing metadata from IMS managed ACBs or from the IMS Catalog.
Related topics