if a>b

continue
display x.
dispaly y.
end-if

display 1

display 2.

display 3.
what should be my output ?

Answers were Sorted based on User's Feedback



if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what..

Answer / sharpmainframe

ERROR: BECAUSE OF MISMATCH END-IF

YOU NOT PUT ANY SCOP TERMINATOR(.) INBETWEEN IF-ENDIF STMT

Is This Answer Correct ?    6 Yes 0 No

if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what..

Answer / javed

There will be a compilation error.

Is This Answer Correct ?    0 Yes 0 No

if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what..

Answer / ravikrian

1

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?

1 Answers  


what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........

1 Answers  


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


How do pass the values to the parameters in cobol

2 Answers  


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


Why we should use cursor ?

3 Answers  


In COBOL programming, what is PERFORM? What is VARYING?

1 Answers   CDC,


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1 Answers  


Why occurs cannot be used in 01 level in COBOL?

1 Answers   Arigo Infotech,


Categories