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 / rkt
Hi,
If a=b then para a-test will be performed from a-test to
a-exit , once it will be completed the control will returns
back to perform statement at line number 7 then the next
sentence statement will be executed. when next sentence will
be executed the control will look for a period (.) if it
finds then it will execute just after line of the para. here
it is if a=d , So the control will check for the condition
a=d and if its true then will perform d-test through d-exit.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Write a program to explain size error.
how to access the file from prodution from changeman tool and to submit a file to production
What is the Purpose of Pointer in the string?
what is the use of outrecord?
how do you define single dimensional array and multidimensional array in your cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between next sentence and continue in cobol programing language?
Discuss about changing dataset name in proc.
What is Pic 9v99 Indicates in COBOL?
how do you reference the fixed unblock file formats from cobol programs
how can i see junk values in dclgen or in hostvariable of comp ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?