01 var1 pic s9(9)v99.
01 var2 pic x(30).
procedure division.
move 12345.99 to var1.
move12345.99 to var2.
display var1.
display var2.
what is the output?
Answer Posted / kingshuk
var1:0000123459I
If we move 12345.99 to var2 it will give a compilation error.
It should be move '12345.99' to var2.Then
var2:12345.99
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
how do you reference the variable unblock file formats from cobol programs
Why did you choose to work with ibm mainframe cobol programming?
how do you reference the ksds vsam file formats from cobol programs
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 ......
What is length is cobol?
Name some of the examples of COBOl 11?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how to convert the recors form vsam file to db2 table tru file aid
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What are the access modes of START statement?
What is the Purpose of Pointer in the string?
How do we get current date from system with century in COBOL?
i need a small 3d program using inline and outline.