Hi,
I have a requirement to compare the the total amount in trailer record of input file and the summation output happening in cobol.
Both the fields(in copybook layout as well as the WS variable in cobol) are having pic clause as below.
PIC S9(16)V99
In trailer record(in input file) the value as below. (HIGHLIGHTED VALUE IS the total amount)
T12500000001100000000000009263N
when I tried reading this via copybook,it provides me as value as '-926.35'
but the job abends and saying the fields are matched.
AMT ON TLR ( 926.35) NOT = CALC AMT ( 926.35)
could anyone please help me to know how to compare two fields having PIC S9(16)V99