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 |
I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?
if a file has 1000 recods how copy the records from 1 to 100 records using sort
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
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 guidelines should be followed to write a structured Cobol program?
What the difference is between continue and next sentence?
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
what will happen if pass values more than 100 using PARM parameter?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
What does the initialize statement do ?