wht is the difference between goto and perform stmts
Answer Posted / makar
First, what are they use for?
1) 'Go to' statement is use when you want to perform a para
or skip some para's(Somtimes tag are used instead of para)
and jump to next para or tag, without the control comming
back to statement after go to. It is like a Jump.
2) 'Perform' is used when you what to want to perform a
para and want the control to comeback to called statement.
However if you do not use EXIT statement at the end of the
para, it will 'fall thru' and perform the next para. Always
use Perform.. thru and Exit statement if you want the
control to come back.
| Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
What is cobol?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Are you comfortable in cobol or jcl?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Can we redefine the field of x(200) to less than 200?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is amode(24)?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Can a Search can be done on a table with or without Index?
What is rmode(24)
When is inspect verb is used in cobol?
What is the difference between goback, stop run and exit program in cobol?