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 |
if someone is using my file,how can i find which user id is using?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
State the various causes of s0c1, s0c5 and s0c7.
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
What is EIBCALEN? Why it is used?
Syntax for JCLLIB & JOBLIB???
What is 88 level used for ?
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
What are the different open modes available in cobol?
can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans
01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?
how can we code index in an array of cobol pgm?