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
how do you reference the ksds vsam file formats from cobol programs
What are the different data types in cobol?
IF I mention stop run in CICS what happens?
How arrays can be defined in COBOL?
How do get the result of your program directly on your pc?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How many bytes S(8) comp field occupy and its maximum value?
What is amode(24)?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
how do you reference the fixed unblock file formats from cobol programs
What are the pertinent COBOL
What kind of error is trapped by on size error option?
How do u write test cases?
What is comp-1 and comp-2?