The following is the issue, i have faced.
I read a file and moved the value of one of its NUMERIC [Eg.FLD1] field to a working variable [Eg. WFLD1] in COBOL.
i.e MOVE FLD1 to WFLD1
[both fields are of numeric & length is same]
But, my program has received MCH1202 during the processing of the file.
Now, i need to find out the various possibles scenarios which can cause the DECIMAL DATA ERROR i.e MCH1202 in a COBOL program. so that i can avoid those scenarios.
Kindly help me in this regard.
I read a file and moved the value of one of its NUMERIC [Eg.FLD1] field to a working variable [Eg. WFLD1] in COBOL.
i.e MOVE FLD1 to WFLD1
[both fields are of numeric & length is same]
But, my program has received MCH1202 during the processing of the file.
Now, i need to find out the various possibles scenarios which can cause the DECIMAL DATA ERROR i.e MCH1202 in a COBOL program. so that i can avoid those scenarios.
Kindly help me in this regard.
Comment