SEG


PCP can validate all of the segments in the database or only selected segments.

Use the SEG option to limit the validation to one or more segments in the database. The segments must be defined in the DBD. If you also code the DSG option (described in DSG) to limit the validation to specified data sets, the segments must be in the requested data set group.

This option requires you to be knowledgeable about the IMS database structure. You can find the necessary information in a map of the DBD. If you use this option improperly, the results can be misleading.

Note

This option is not available under the Hash Checking technique.

Uses

You can set the SEG option only on the CHECK control statement. SEG is not valid for HALDBs.

ISPF panel field

None

PCPSYSIN keyword

SEG(segname1,segname2,…segname255)

Values

Specify from one to 255 segment names (1-8 characters each) of the segments to validate.

Default

None

Example

The following example shows the validation of a specific segment. The example database contains parent segment HDAMS1 and child segment HDAMS2. PCP validates the physical pointers that involve segment HDAMS2. Therefore, only PTF and PTB pointers are validated.

CHECK DBD(HDAMDB) SEG(HDAMS2) PTRTYPE(P)

The PP pointer that points from HDAMS2 to HDAMS1 and the PCF that points from HDAMS1 to HDAMS2 are ignored since HDAMS1 is not included in the scan. PCP will report some orphan HDAMS2 segments (not pointed to by any pointer), while they may be actually pointed to by the excluded PCF pointers.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*