2008年9月11日星期四

OS Utility_IEBCOMPR

IEBCOMPR needs one control card, and TYPORG is the action word; PS specifies that the datasets to be compared are physical sequential organization and PO specifies that the datasets are partitioned organization. Both datasets must be of identical organization.
Since the default for IEBCOMPR is TYPORG=PS, the utility may be executed with no control statements (utilizing a DUMMY SYSIN statement) if the datasets to be compared are of the physical sequential organization. There are two conditions under which the COMPARE control statement is required: if the datasets to be compared are partitioned organization; or if you need to use any other control statement, it must be preceded by the COMPARE control statement, even if the dataset organization is physical sequential.
When comparing libraries it is not necessary that the list of members in both libraries be identical in order to receive an equal comparison. If the SYSUT2 library contains all of the members that are in the SYSUT1 library plus some additional members and if the members that are in both libraries are identical, IEBCOMPR will indicate an equal condition.
If the comparison of the datasets is successful (all data compared are equal), a return code of 0 is set. If the comparison fails, a return code of 8 is set. 12 indicates that an unrecoverable error occurred, and 16 indicates that a routine specified in the EXITS statement failed.

没有评论: