Hi,
I have a character field of length 2000.
Here I got data from a dtaara like:
'1111111111111111111111111111111111110000001111'
Now, I have to check whether in possition 79 we have a '0' or '1'.
I am new to COBOL but I tried using Unstring in cobol but it was unsuccessful.
Please help me out in getting the code right, so that I can get '0' or '1' in a Work field from the string above.
I have a character field of length 2000.
Here I got data from a dtaara like:
'1111111111111111111111111111111111110000001111'
Now, I have to check whether in possition 79 we have a '0' or '1'.
I am new to COBOL but I tried using Unstring in cobol but it was unsuccessful.
Please help me out in getting the code right, so that I can get '0' or '1' in a Work field from the string above.
Comment