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 / kiran
Result
000123
abc
no "-" sign will come bcoze we didnt give like this
01 a pic s9(3) value is 123
01 b pic s9(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
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
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.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are the different data types in cobol?
What is a SSRANGE and NOSSRANGE?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How are the next sentence and continue different from each other?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
) How do u handle errors in BMS macro
What is difference between static and dynamic call in cobol?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How do u write test cases?
What is the usage of comp fields in cobol?
Which is not true about evaluate statement