how we can reverse the string in the cobol for example
satheesh can be reveresed as hseehtas
Answer Posted / g venkatesh
data division.
01 ws-input pic x(8).
01 ws-output pic x(8).
01 i pic 9.
01 j pic 9.
procedure division.
move 1 to i.
perform varying j from 8 by -1 until j =0
move ws-input(i:1) to ws-output(j:1)
add 1 to i
end-perform
display ws-output.
stop run.
| Is This Answer Correct ? | 51 Yes | 7 No |
Post New Answer View All Answers
) How do u handle errors in BMS macro
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What guidelines should be followed to write a structured cobol prgm?
What are various search techniques in cobol? Explain.
what is difference between cobol and cobol/400
How you can read the file from bottom?
example for sub strings ? and refernce modifications whit output pls
What are the different rules of SORT operation?
how do you reference the variable block file formats from cobol programs
how can i see junk values in dclgen or in hostvariable of comp ?
Mention the guidelines to write a structured cobol program?
When is inspect verb is used in cobol?
In which area will you utilize 88 level items in cobol?
What is perform what is varying?
What are the pertinent COBOL commands?