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 / khasim

compile error.
d-test and d-exit. not defined in Procedure division.

if we code the d-test and d-exit.
control goes to d-exit. not goback to a-test1.

after d-exit, it will go back.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define cobol?

1065


What is cobol?

938


How to remove 2 duplicate records and copy only one using job control language?

966


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1068


What are 77 levels used for?

840


how do you reference the variable unblock file formats from cobol programs

994


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2111


What rules are followed by the search verb.

820


Explain the configuration section of a cobol program with examples of syntax.

857


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

2589


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

900


What are the different rules of SORT operation?

890


how to access the file from prodution from changeman tool and to submit a file to production

7064


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1950


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1817