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 / john benito

Will abend.
Pic clause is not allowed in 01 level.

Is This Answer Correct ?    3 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between goback, stop run and exit program in cobol?

920


Write the code to count the sum of n natural numbers.

697


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


How do you get the data to code the BMS macro?

1472


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

697






what are decleratives in cobol?

1827


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672


What guidelines should be followed to write a structured cobol prgm?

668


How to know whether the module is dynamical or statistical?

650


What are various search techniques in cobol? Explain.

641


Why would you use find and get rather than to obtain?

679


how can i see junk values in dclgen or in hostvariable of comp ?

2538


Explain about different table spaces.

643


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8637


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1840