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 / chowdary
after executing this program output will be
b value is 000123
and
b value is abc
there is no blanks after abc in b, because we have taken
its length as 3 in pic clause.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
Write down the divisions of cobol program?
i need a small 3d program using inline and outline.
IF I mention stop run in CICS what happens?
How do you get the data to code the BMS macro?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how do you reference the esds vsam file formats from cobol programs
What is the LINKAGE SECTION used in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How can you get the ksds file records into your cobol program?
What are the different types of condition in cobol and write their forms.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Differentiate between structured cobol programming and object-oriented cobol programming.
I have a File that has duplicate records. I need only those records that occur more than thrice.?