a follow up to this: I want the BRANCH highlighted below to have the original value from the input record. The ORG is changed as a result of the INREC but I want the BRANCH to remaing the same.
input fiield output fields
a --> ORG and BRANCH
I want b to have the new value and c to have the original value in a
INCLUDE COND=((10,5,BI,EQ,X'000001000F'),OR,
(10,5,BI,EQ,X'000001001F'),OR,
(10,5,BI,EQ,X'000001003F'),OR,
(10,5,BI,EQ,X'000001021F'))
INREC IFTHEN=(WHEN=(1262,3,BI,EQ,L(X'00036F',X'00041F',X'00042F',
X'00046F',X'00047F',X'00049F',X'00052F',X'04399F')),
OVERLAY=(1271:X'85726F'))
SORT FIELDS=(1,5,PD,A,10,5,PD,A) * NUMBER
OUTREC FIELDS=(C'1', *
2,4,PD,M11,LENGTH=7, * NUMBER
34C' ', * PAD TO 41 BLANKS
C'000', * PAD TO LENGTH 12
10,5,PD,M11,LENGTH=9, * INV
C'A0810', * CUSTOMER
C' ', * CORP CODE
1271,3,PD,M11,LENGTH=5, * BRANCH
1262,3,PD,M11,LENGTH=4, * PRODUCT
1271,3,PD,M11,LENGTH=5, * ORG
1265,4,PD,M11,LENGTH=7, * ACCOUNT
C'0', * CURRENCY INDICATOR
C'1 ', * CURRENCY CODE
1269,2,PD,M11,LENGTH=3) * SUB ACCT