Replacing one partition without allowing concurrent access
The following example illustrates how to replace one partition of the table space and leave the existing data in the other partitions. In this example, the partition that is being loaded is stopped and the remaining partitions, as well as the indexes on the table space, are in RW status.
If the data for other partitions is in the input file, BMC AMI Load discards that data because it does not belong in the partition being loaded.
//SYSREC DD DISP=SHR,DSN=USER.DATA
//SYSIN DD *
LOAD DATA INDDN SYSREC
INTO TABLE NGT.TABLE1 PART 1 REPLACE
(ID POSITION(2),
MESSAGE POSITION(*) CHAR(34) NULLIF(1:1) = '?',
LANGUAGE POSITION(*) CHAR(10) DEFAULTIF(1:1) = '?')
//SYSIN DD *
LOAD DATA INDDN SYSREC
INTO TABLE NGT.TABLE1 PART 1 REPLACE
(ID POSITION(2),
MESSAGE POSITION(*) CHAR(34) NULLIF(1:1) = '?',
LANGUAGE POSITION(*) CHAR(10) DEFAULTIF(1:1) = '?')
Related topics
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*