Microsoft KB Archive/21182

Inspect Item Example in Manual Is Incorrect

PSS ID Number: Q21182 Article last modified on 11-16-1992

2.00 2.10 2.20 MS-DOS

Summary: The example on Page 239 of the “Microsoft COBOL Compiler Reference Manual” does not work correctly. The example should read as follows:

INSPECT ITEM TALLYING COUNTX FOR ALL “L” REPLACING LEADING “A” BY “E” AFTER INITIAL “L”. Original (ITEM): SALAMI ALABAMA Result (ITEM): SALEMI ALEBAMA Final (COUNTX): 1 1 INSPECT WORK-AREA REPLACING ALL OLD-DELIMITER BY NEW-DELIMITER Original (WORK-AREA): NEW YORK N Y Original (OLD-DELIMITER): (space) Original (NEW-DELIMITER): (period) Result: (WORK-AREA): NEW.YORK..N.Y

Copyright Microsoft Corporation 1992.