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.

Answers were Sorted based on User's Feedback



if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 7..

Answer / s

It will give Compilation error as the variable is not
uniquely defined

Is This Answer Correct ?    10 Yes 0 No

if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 7..

Answer / piyush mani

u r wrt but if we declare diff var for above values then result will b like
value result
-10 1{
-11 1J
-12 1K
-13 1L

.........

THANKS

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

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

0 Answers  


consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error

6 Answers   ABCL, TCS,


can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)

13 Answers   CTS,


What is rmode(24)

0 Answers  


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,






Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these

6 Answers   Wipro,


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.

11 Answers   Deloitte,


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


Are you comfortable in cobol or jcl?

0 Answers  


Categories