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 |
How do you do in-line PERFORM?
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??
Write the syntax of a two dimensional array?
What rules are to be followed while using the corresponding options?
What is the difference between CONTINUE & NEXT SENTENCE ?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
)what is retrieve?
What are the different types of condition in cobol and write their forms.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Can we call a CICS program from a batch program or viceversa?If so, how?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?