COBOL Snippet: Tell where the control will when the below
code execute
IF (A=B)
CONTINUE
ELSE
NEXT SENTENCE
PERFORM <IMP-STMT>
END-IF.
Answer Posted / manj
CONTINUE inside IF loop searches for the first terminator
END-IF and comes out.
NEXT SENTENCE searches for the first FULL STOP and goes to
the next line after that.
The above code does nothing. IF A=B, control comes to the
next line after END-IF and same for ELSE part too.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how do you reference the variable unblock file formats from cobol programs
How to remove 2 duplicate records and copy only one using job control language?
how to move the records from file to array table. give with code example
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is rmode(any) ?
Why would you use find and get rather than to obtain?
Write a program that uses move corresponding.
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is amode(24)?
how to access the file from prodution from changeman tool and to submit a file to production
What kind of error is trapped by on size error option?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What rules are followed by the search verb.
What are the different rules of SORT operation?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?