Count SPACE character without INSPECT and STRING in COBOL?
Posted: Tue Feb 20, 2018 5:50 pm
Hi
Count SPACE character without INSPECT and STRING in COBOL?
In one of the interview I was asked that how to count the space characters in particular variable (15 characters) without using INSPECT and STRING?
My answer was to use PERFORM and use Reference Modification but it was not correct, can someone please answer what can be correct answer for it?
Count SPACE character without INSPECT and STRING in COBOL?
In one of the interview I was asked that how to count the space characters in particular variable (15 characters) without using INSPECT and STRING?
My answer was to use PERFORM and use Reference Modification but it was not correct, can someone please answer what can be correct answer for it?