How to covert given string into ASCII value in COBOL/MF
COBOL
Answer Posted / asmara
translate(Rtrim(Ltrim(substr(col_1,1,6))),'$',0123456789')
=''
thru leading (LTRIM) and Trailing (RTRIM) spaces from the
substring, then translates embedded spaces to $ and digits
to spaces and leaves any other char unchanged, then checks
to be sure there is nothing but spaces left. We can say
that we are checking the substring contains only numberic
digits, optionally with leading and/or trailing spaces.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Write a program to explain size error.
What is inspect in cobol ?
Which is not true about evaluate statement
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Have you used comp and comp-3 in your project? And how?
Mention the guidelines to write a structured cobol program?
how do you reference the printer file formats from cobol programs
) what is the difference between AID and HANDLE AID?
What is length is cobol?
Give some examples of command terminators?
HOw can I get the negative sign while deduct high value from low value
Difference between cobol and cobol-ii?
Are you comfortable in cobol or jcl?
What is amode(24)?
In COBOL programming, what is PERFORM? What is VARYING?