PCMPLIB Command for IBM ISeries AS/400 AS400

Introduction

PCMPLIB compares the contents (all objects) of two ISeries (AS/400, AS400) libraries. This is one of the commands in our ISeries utilities library (click this URL for full contact and pricing details).

If differences are detected, produces a report divided vertically (first library on left, second library on right) which shows the objects which are different. 'Different' in this cases means having a different creation date or object text. You can select between source and object creation dates, and choose to ignore text differences if you wish. If an object exists in one library but not in another, it is also reported as a difference.

Useful where you expect two libraries to have the same objects and same creation dates.


Examples

PCMPLIB LIB1(GLDATA) LIB2(GLDATASAV) DATE(*SRC)

The above command compares all objects in two libraries GLDATA and GLDATASAV. For objects created from ISeries source members (programs, commands, most files etc.) the 'Source file date/time' is compared as well.

PCMPLIB LIB1(GLDATA) LIB2(GLDATASAV) DATE(*CRT) TEXT(*YES)

The above command compares all objects in two libraries GLDATA and GLDATASAV. All objects are compared on their 'Creation date/time'. In this case objects are also compared on their 50-character object Text.


Restrictions

1) No selection on object type. Could easily be added if requested.
2) No selection on object name. Could also be added easily if requested.

IBM rebranded the AS/400 - some users called it AS400 - to ISeries several years ago. All 3 names - ISeries, AS/400, AS400 - refer to exactly the same system.