Previous Topic: Fill Part of the Work Area with a Character StringNext Topic: Copy Data from a Saved Work Area


Copy Data from a Main Storage Location

To copy data from a main storage location into the WORK AREA, specify the following and press Enter:

FUNC=CHGE
SUBFUNC=CORE
DATA= CORE command that determines the source address
CHGELEN= length of area to be changed
LOC= starting position

Examples

The following examples demonstrate how to copy data from main storage.

  1. To copy 16 bytes from TWA+8 (at a CA InterTest for CICS breakpoint) into locations 48to 63 of the record, specify the following, and press Enter:
    FUNC=CHGE
    SUBFUNC=CORE
    CHGELEN=0016 		(or 0010 for FORMAT=D)
    DATA=CORE=TWA+8
    LOC=00048 		(or 002F for FORMAT=D)
    
  2. Suppose you are stopped at a breakpoint in a COBOL program. You want to copy ten bytes of data from a field named SOC‑SEC‑NUMBER into locations 1 to 10 of the record. To do this, specify the following and press Enter:
    FUNC=CHGE
    SUBFUNC=CORE
    CHGELEN=0010 			(or 000A for FORMAT=D)
    DATA=CORE='SOC‑SEC‑NUMBER'
    LOC=00001 			(or 0000 for FORMAT=D)