Consider the below example
call a-test1.
--
--
--
a-test1.
if a=b
perform a-test through a-exit
next sentence
else
if b=c
perform c-test through c-exit.
if a=d
perform d-test through d-exit.
a-test.
--
--
a-exit.
exit.
can u tell me what will happen if a=b
after looping into a-exit will the control go back to a-
test1.
will the condition a=d be checked???
Answer Posted / adarsha
NOP ! none of the above.. compiler Error !!!
When you are using NEXT SENTENCE or continue, their
shouldn't be any sentence/paragraph name or anything before
or after it with in that condition...
if a=b
NEXT SENTENCE
.
.
. should be the syntax ... perform a-test through a-exit
shouldn't be coded 1
hope it helps u !
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
i need a small 3d program using inline and outline.
What are the different rules for performing sort operation?
Why did you choose to work with ibm mainframe cobol programming?
State the various causes of s0c1, s0c5 and s0c7.
Why occurs cannot be used in 01 level in COBOL?
Define cobol?
What is the difference between binary search and sequential search?
Have you used comp and comp-3 in your project? And how?
What is the difference between next sentence and continue in cobol programing language?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Write a cobol program making use of the redefine clause.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Can we redefine the field of x(200) to less than 200?