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 |
How do pass the values to the parameters in cobol
how many divisions are there in cobol
88 class is used for
what is the minimum number of lines a Cobol program should have to successfully compile and run
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
What is amode(31)
what are the utilities for load and unload the DB2 tables
how do you reference the fixed unblock file formats from cobol programs
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,
What is the meaning of 'Eject' verb in cobol?
What is SDSF?
hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?