Access numerics fields by bytes.
Posted: Wed Apr 18, 2018 5:47 pm
Hi,
Can we do byte level manipulation in COBOL? To this question, I said, yes we can do it. Then second question was, how can we access bytes in a numeric field? To which I had not had a good answer. But later I thought and said that every digit in any numeric field will take a byte and as such that is a byte level manipulation. But my interviewer was not satisfied. Can someone please help me with this question?
Can we do byte level manipulation in COBOL? To this question, I said, yes we can do it. Then second question was, how can we access bytes in a numeric field? To which I had not had a good answer. But later I thought and said that every digit in any numeric field will take a byte and as such that is a byte level manipulation. But my interviewer was not satisfied. Can someone please help me with this question?