Author: vnktrrd
Subject: Reply to: How to split the records using the amount field
Posted: Wed Nov 02, 2016 11:46 am (GMT 5.5)
Hi Arun,
A lot of input for this post and a lot of learning for me.
A small help further for your above code I am using for this purpose.
I have mapped the code to my requirement like below.
Here I am overlaying the input record starting from 105 position and my amount field in the input file resides in 28th position in PD format with a length of 7. And, I want the subtracted value in ZD format.
After execution I am not getting the subtracted value correctly. Please suggest if I am doing something wrong.
Thanks,
Ramana.
Subject: Reply to: How to split the records using the amount field
Posted: Wed Nov 02, 2016 11:46 am (GMT 5.5)
Hi Arun,
A lot of input for this post and a lot of learning for me.
A small help further for your above code I am using for this purpose.
I have mapped the code to my requirement like below.
Code: |
SORT FIELDS=COPY OUTFIL REPEAT=10, IFTHEN=(WHEN=INIT, OVERLAY=(105:C'249000', SEQNUM,7,ZD,START=249000, INCR=249000,RESTART=(1,6), 111:28,7,PD,SUB,111,7,ZD,ZD,LENGTH=15, SEQNUM,2,ZD,RESTART=(1,6))) |
Here I am overlaying the input record starting from 105 position and my amount field in the input file resides in 28th position in PD format with a length of 7. And, I want the subtracted value in ZD format.
After execution I am not getting the subtracted value correctly. Please suggest if I am doing something wrong.
Thanks,
Ramana.