Hi,
I have a problem with a comma delimiter file.
A comma will separate each field. In a cobol program "UNSTRING delimited by comma" is used to move to working storage section variables and the count is stored in respective cnt-edt variable. Later each field length(using cnt-edt values) is validated as per given requirement.
The problem is
"At the end of last field there will not be any comma. So the spaces after the fields are also being counted. Because of this the field length validation for the last field is failing"
I thought to use some SPACES also as delimiter, but I think it is bad programming.
I don't know whether there is any possibility to find end of the record.
please suggest.
Thanks,
Raju