Previous Topic: Example 4Next Topic: Sample Output


Bad Example 4

The wrong way to do the previous example would be to reduce the areas considered for change, instead of the files to be converted:

CONVERT PAGE IN AREA EMPDEMO.EMP-DEMO-REGION,
                   EMPDEMO.INS-DEMO-REGION,
                   DMCL NEWDMCL
                   FILE EMPDEMO-FILE INTO EMPDDX,
                        INSDEMO-FILE INTO INSDDX;

This syntax works only if the Org-demo-region is unaffected by any changes. Only the Emp-demo-region and the Ins-demo-region are converted. But if it were later discovered that the Org-demo-region required conversion, you would have to reconvert the Emp-demo-region.

CONVERT PAGE IN AREA EMPDEMO.EMP-DEMO-REGION,
                   EMPDEMO.INS-DEMO-REGION,
                   EMPDEMO.ORG-DEMO-REGION
                   DMCL NEWDMCL
                   FILE EMPDEMO-FILE INTO EMPDDX,
                        ORGDEMO-FILE INTO ORGDDX;

Note: Ins-demo-region did not have to be reconverted because it was unaffected by changes to the Org-demo-region, but because the Emp-demo-region is affected by changes to the Ins-demo-region; Ins-demo-region is included in the list of changed areas.