can we use go to statement inline-perform?

Answers were Sorted based on User's Feedback



can we use go to statement inline-perform?..

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

can we use go to statement inline-perform?..

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

can we use go to statement inline-perform?..

Answer / ravi

No we cant.

Inline perform is - -> PERFROM END-PERFORM.

Is This Answer Correct ?    3 Yes 1 No

can we use go to statement inline-perform?..

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

can we use go to statement inline-perform?..

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

can we use go to statement inline-perform?..

Answer / jswan

Yes you can, although that is not good programming practice.

Is This Answer Correct ?    0 Yes 0 No

can we use go to statement inline-perform?..

Answer / jswan

Yes you can but that is not good COBOL programming practice at all.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

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?

2 Answers   IBM,


In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-programs will always will always in Initial Mode. My question is : Do we need to code CANCEL or (IS INITIAL) for dynamically called sub-programs or it is the property of Dynamically called pgms so every time sub-pgms are called they will be in initial mode. ***This question is only Dynamic call****, Please reply. Thank you in advance.

4 Answers   Wipro,


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


what is index and how to use two tables using index?

1 Answers  






How do you set a return code to the JCL from a COBOL program?

4 Answers  


have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code

3 Answers  


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


how to know that the file has 300 records how to acess it?

0 Answers   Hewitt, TCS,


Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.

2 Answers  


how do you reference the variable block file formats from cobol programs

0 Answers  


if someone is using my file,how can i find which user id is using?

4 Answers  


Categories