CHECK control statement

This statement runs the zapper in CHECK mode. When zapper runs in CHECK mode, the statements that follow are run but the VSAM data is not updated.

The syntax of the KEY, RBA, CNV, and NUM control statements are checked, and if they are valid, actual data is read. Then, the syntax of the VER and REP control statements are checked and if they are valid, they are run against the data read. The result of the check is shown by messages. The check is done but the VSAM data is not updated. This functionality is called data check.

The DUMP control statement has no effect in CHECK mode.

CHECK

The CHECK control statement has no parameters.

Restrictions

Data check has the following restrictions:

  • When the preceding KEY, RBA, CNV, or NUM control statements fails, the data check of the VER or REP control statements that follow is not done.
  • When more than one KEY, RBA, CNV, or NUM control statements specify the same record or control interval, data check of the VER or REP statements following the second or later KEY, RBA, CNV, or NUM control statement is not done.
  • When the KEY, RBA, or NUM control statement is used first, and later the CNV control statement is used, the data check of the VER or the REP statements following the CNV control statement is not done.

    Conversely, when the CNV control statement is used first, and later the KEY, RBA, or NUM control statements is used, the data check of the VER or the REP statements following the KEY, RBA, or NUM control statement is not done.

  • When more than 1,000 KEY, RBA, NUM, or CNV control statements are used, the data check of the VER or the REP statements following the 1001st and subsequent KEY, RBA, NUM, or CNV statement are not done.