01 a pic 9(3) value is 123
01 b pic 9(6)
move a to b
wht will be the value ? and
01 a pic x(6) value is abc
01 b pic x(3)
move a to b
wht will be the value ?
Answer Posted / praveen
Arati was correct. if you move x(6) varibale to x(3) there
will not be any blank spaces.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
How to print 10 to 1 if the input have only 10 digit number?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is amode(31)
how do you reference the variable block file formats from cobol programs
i want a program using by if, evaluate , string, unstring, perform, occurs?
what is the use of outrecord?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is a report item?
how do you reference the variable unblock file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
In which area will you utilize 88 level items in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?