Previous Topic: Change Data in the Work AreaNext Topic: Example


The CHGE Function

Follow this procedure when using the CHGE function:

  1. To change data in the WORK AREA, position the first byte (character) of the data that is to be changed so that it is the first byte of the FILE display. There are two ways to do this:

    Delay pressing Enter until you complete Step 2.

  2. Fill in the FUNC= and DATA= fields as shown next:
    FUNC=CHGE
    DATA= new data
    
  3. Fill in the following optional field, if it applies to your situation:
    CHGELEN =  length of the data to be change
    

    Use a hexadecimal number for FORMAT=D and a decimal number for all other FORMATs.

  4. Press Enter. The MESSAGE= field displays the following message and the displayed record shows the new data at the proper location.
    xxx NUMBER OF BYTES CHANGED