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 the difference between structured cobol programming and object alternativelyiented cobol?
In COBOL, what is the different between index and subscript?
What kind of error is trapped by on size error option?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is comp-1 and comp-2?
How do you reference the following file formats from cobol programs?
HOw can I get the negative sign while deduct high value from low value
Explain about different table spaces.
what is the difference between COBOL2 AND COBOL390?
What are the different types of condition in cobol and write their forms.
How do you define a variable of comp-1 and comp-2?
Explain what you understand by passing by value.
Have you used comp and comp-3 in your project? And how?
how to refer the data field?