Previous Topic: SET EXPORT ExampleNext Topic: Overriding Source File Attributes


SET IMPORT Example

This example imports the entities exported in the previous example. The SET IMPORT DUPLICATE command specifies what action to take if a duplicate exists. SET IMPORT DUPLICATE NEXT applies to the three imports that follow. SET IMPORT DUPLICATE REPLACE applies to the remaining imports. The summary report that follows the commands shows the result.

SET IMPORT SYSTEM $ID SET IMPORT VERSION ASIS SET IMPORT NEW SYSTEM WWW SET IMPORT NEW VERSION 001 SET IMPORT DUPLICATE NEXT } IMPORT PGM @I$INQU1 } } IMPORT PGM @I$INQU2 } assign next version } IMPORT PGM WHO } if duplicate } select entities SET IMPORT DUPLICATE REPLACE } with $ID and IMPORT PGM WHOPGM } } any version IMPORT PGM WHOPNL } replace duplicates } } Summary of IMPORT operations: PROGRAM @I$INQU1 SYSTEM $ID VERSION 001 Imported as the next version. NEW SYSTEM WWW NEW VERSION 002 PROGRAM @I$INQU2 SYSTEM $ID VERSION 001 Imported as the next version. NEW SYSTEM WWW NEW VERSION 002 PROGRAM WHO SYSTEM $ID VERSION 002 Imported as the next version. NEW SYSTEM WWW NEW VERSION 002 PANEL WHOPGM SYSTEM $ID VERSION 002 Imported new. NEW SYSTEM WWW NEW VERSION 001 PANEL WHOPNL SYSTEM $ID VERSION 002 Replaced an existing entity. NEW SYSTEM WWW NEW VERSION 001

Note: