Program Oshelp3

The purpose of Program Oshelp3 is to expand a character by adding a character before or after any one designated character in the input file by specifying its ASCII character.

To execute Program Oshelp3, after the >>? prompt type

>>? RUN Oshelp3 [Enter]

Program Oshelp3 responds ENTER: 1. THE INPUT FILE NAME 2. THE OUTPUT FILE NAME 3. THE NUMERIC VALUE OF THE CHARACTER TO BE EXPANDED 4. THE NEW NUMERIC VALUE OF THE CHARACTER TO BE ADDED 5. THE WORD BEFORE OR AFTER ?

where the INPUT FILE is the name of the file which contains the character to be expanded. OUTPUT FILE is the name of the file to contain the text with the expanded characters. NUMERIC VALUE TO BE EXPANDED is the ASCII value of the character to be expanded. NEW NUMERIC VALUE TO BE ADDED is the ASCII value of the character to be added. BEFORE OR AFTER - indicates whether the new character is to be added before or after the designated character

Example: To add a line feed after a carriage returns. ASCII value for a line feed is 10 ASCII value for a carriage return = 13 XYZ.D1 is the file containing the carriage returns XYZ.D2 is the file that will have the line feeds after the carriage returns.

Therefore, after the Program Oshelp3 ? prompt type

? XYZ.D1 XYZ.D2 13 10 AFTER

Program Oshelp3 responds with the message

COMPLETE 12

where 12 = the number of carriage returns found.

Note: Only one character may be expanded per pass.

P-65

Program Oshelp3 - Page