can we use go to statement inline-perform?
Answers were Sorted based on User's Feedback
Answer / sandy
The below code is possible, if that is what asked.
1000-PARA
PERFORM VARYING
IF <CONDITION>
GO TO 1000-EXIT
END-IF
OTHER STATEMENTS.....
END-PERFORM
1000-EXIT
EXIT.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / suputhru
Yessssssssssssss!!!
Raveeeeee,shruti! we can use go to statement inline-perform.
If we use goto in inline then control will goto particular para and wont return.
thus control will comes from inline.
thus, no probs, u can use go to.
So please, don't give blindly answers.
-Sk
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravi
No we cant.
Inline perform is - -> PERFROM END-PERFORM.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mr.perfect
hello Suputhru ,
if you use GOTO statement inside the inline perform, the
control will go permanently to the GOTO statement.then what
about the other statements after END-IF, this will not
executed man. i think this is not good design of programmr.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sruthi
Hi,
we can't use GO TO statement in in-line perform.goto
should be used with in the range of paragrafhs being
executed.
in-line syn is, perform--- end-perform.
| Is This Answer Correct ? | 3 Yes | 3 No |
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
What is the usage of comp fields in cobol?
What is a scope terminator? Give examples.
what are the working storage fields in BMS macro?
How many divisions we have in Cobol ?
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
what is difference between cobol and cobol/400
How many maximum number of procedures can we write in one COBOL program?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
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
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
What is the utilization of copybook in cobol?