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
Explain the configuration section of a cobol program with examples of syntax.
Explain about different table spaces.
What is difference between static and dynamic call in cobol?
Difference between cobol and cobol-ii?
What is static and dynamic call in cobol?
How do get the result of your program directly on your pc?
How do you get the data to code the BMS macro?
How arrays can be defined in COBOL?
In COBOL, what is the different between index and subscript?
What is rmode(any) ?
Differentiate between structured cobol programming and object-oriented cobol programming.
What are literals?
What is the difference between external and global variables in COBOL?
What is the use of intialize verb?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......