can u give result for the fallowing example...
05 a pic 9(2)
05 b redifines a pic x(2).
move 'xy' to b.
display a,b.
Answer Posted / shyamala a
SCENARIO 1 :
If we move "XY" TO A then the result will be
1. You will get a compilation warning "** Warning 378 ** Expected digit string as sending operand"
2. display will be Both A and B will have 00.
sCENARIO 2:
iF WE MOVE "xy" TO B then the result will be
1. No compilation/run time error.
2. Display will be both A and B = XY
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the problem of ordered sequential files access?
how to move the records from file to array table. give with code example
Explain the configuration section of a cobol program with examples of syntax.
Why would you use find and get rather than to obtain?
What are the different open modes available in cobol?
explain sorting techniques in cobol program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What are the different rules to perform a Search?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Can we change the password using ALTER? anyone tried and changed?
How many sections are there in data division in COBOL?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What are the different rules for performing sort operation?