How to covert given string into ASCII value in COBOL/MF
COBOL
Answers were Sorted based on User's Feedback
Answer / asmara
Just by using translate verb only u can easily translate it.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / anu
please explained the answr for this question in detail.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
what is a load module ?
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
What is the difference between comp and comp-3?
In an array processing what is the thing that can be done by using subscripts but not by using index
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
what is level 66 means??
When is inspect verb is used in cobol?
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad
can we redefine 77 level item is it possible
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
Explain fixed length record in cobol? with suitable example
Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
6 Answers ABC, IBM, Mphasis, Wipro,