i need a program by giving input as a abcd in any randem order
but i need a output as 1234 related to abcd. i.e,. a for
1,b=2,c.....etc..
Answer Posted / parvatraj m bhuti
first we have to initialize the letters a=1,b=2,....
like that z=26..
then we have to read the variable v pic x(4)( which may be
abcd or any other) from input
Then we have to un string the variable v into 4 other
variables as a1,a2,a3,a4.
then
compute x1= (a1*10)+a2;
compute x2= (x1*10)+a3;
compute x3= (x2*10)=a4;
Then display ('answer is = ", x3);
That will be the answer.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
) How do u handle errors in BMS macro?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How do you get the data to code the BMS macro?
How do u write test cases?
What is the difference between binary search and sequential search?
How can you get the ksds file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What are the various section in data division and briefly explain them.
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between perform … with test after and perform … with test before?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
what is the use of outrecord?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Can we redefine the field of x(200) to less than 200?