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

How arrays can be defined in COBOL?

663


What is an in line perform? When would you use it? Anything else you wish to say about it.

645


What is the compute verb? How is it used?

661


Which division and paragraphs are mandatory for a COBOL program?

709


How do u write test cases?

1638






IF I mention stop run in CICS what happens?

1896


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

8657


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is the difference between next sentence and continue in cobol programing language?

712


Differentiate between structured cobol programming and object-oriented cobol programming.

667


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2010


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825


What is the difference between comp and comp-3?

704


What are various search techniques in cobol? Explain.

650