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
What is report-item in COBOL?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Discuss about changing dataset name in proc.
What are the access modes of START statement?
How do you differentiate between cobol and cobol-ii?
Can you please let me know the centre name of INS certification in Kolkata.
What is length is cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is an in line perform? When would you use it? Anything else you wish to say about it.
Define static linking and dynamic linking.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between Global and External Variables?
what is s000 u4087 error? please give the all error codes in cobol,jcl.