wht happens if we dnt give scope terminator ?
Answers were Sorted based on User's Feedback
Answer / rahul
For better readablity, we use scope terminators in the
program.
scope terminator closes are not the executable statements.
Nothing will happen to the program by not using these
terminators.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / renga
For Inline Perform and End-evaluate scope terminator is
mandatory. So it will result in compilation err. For others
the program logic will got impacted.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / prachi
exapamples of scope terminators are end-if for if statement
end-evaluate for evaluate function. So if we dont give end-
if when we are using if statement ...it willl throw
compilation error..So scope terminator is needed to end the
loop..if we dont give scope terminator it will throw
compilation error...
| Is This Answer Correct ? | 3 Yes | 5 No |
What is length is cobol?
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?
How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.
Explain call by context by comparing it to other calls.
Mention the guidelines to write a structured cobol program?
I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
how can we find total no of records in a file ....is there any utility......?
How can I tell if a module is being called DYNAMICALLY or STATICALLY?