After the STRING statement has completed, only that part of the receiving field into which data was transferred is changed. The rest of the receiving field contains the data that was present before executing the STRING statement.
*-------------------------------------------<-1 *--------------* V + ->->--STRING--*-identifier-1-*-DELIMITED--*----*----------->2 *-literal-1----* *-BY-* 1<--------------------* + + 2->--*-identifier-2-*-*--INTO identifier-3-----------------> *-literal-2----* *-SIZE---------* ->--*--------------------------------*--------------------> *-*------*--POINTER identifier-4-* *-WITH-* ->--*-----------------------------------------*-----------> *--*----*-OVERFLOW imperative-statement-1-* *-ON-* ->--*---------------------------------------------*-------> *-NOT--*----*-OVERFLOW imperative-statement-2-* *-ON-* ->--*------------*----------------------------------------><- *-END-STRING-*
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.