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 we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Describe the cobol database components?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
State the various causes of s0c1, s0c5 and s0c7.
Write the code to count the sum of n natural numbers.
what are decleratives in cobol?
What is the difference between binary search and sequential search?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
how do you reference the rrds file formats from cobol programs
In which area will you utilize 88 level items in cobol?
What is the difference between goback, stop run and exit program in cobol?
What is Pic 9v99 Indicates in COBOL?
What is amode(24)?
What are the different types of condition in cobol and write their forms.