Answer Posted / sivakumar sekharannair
Yes go to can be used in inline perform. when GO TO is used
in inline perform then irrespective of the number of times
the perform has to execute.. the control will go to GO TO.
example:
PERFORM VARYING A1 FROM 1 BY 1 UNTIL A1 > 4
DISPLAY 'SIVAKUMAR'
GO TO DISPLAY-PARA
END-PERFORM.
DISPLAY-PARA
DISPLAY 'KUMAR'.
SYSOUT:
SIVAKUMAR
KUMAR
Instead of
SIVAKUMAR
SIVAKUMAR
SIVAKUMAR
SIVAKUMAR
Actually the perform has to execute 4 times and so the
display should be executed 4 times. but because GO TO is
given inside the inline perform the control goes to display-
para and and dose not come back.
Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
What is the difference between comp and comp-3 usage?
How do define dynamic array in cobol.
What is difference between static and dynamic call in cobol?
Difference between array and sub-script ?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How can you get the ksds file records into your cobol program?
) How do u handle errors in BMS macro
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Write a program to explain size error.
how do you reference the printer file formats from cobol programs
what is s000 u4087 error? please give the all error codes in cobol,jcl.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the access modes of START statement?
Which is not true about evaluate statement