How to replace the GOTO statement in COBOL without changing
the structure of program. e.g. consider following code...
I.D.
E.D.
D.D.
P.D.
compute C = A + B.
GOTO para 100-display.
compute D = C - D.
GOTO 200-display.
some other logic......
........
GOTO 300-para.
......
......
GOTO 400-para.
Now I want to replacce all GOTO statements without
changing the structure and otput of program.
Answer Posted / nag(igate)
using evaluate statement
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How do u write test cases?
What is redefines clause in COBOL?
What kind of error is trapped by on size error option?
Explain how you can characterize tables in cobol?
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.
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between goback, stop run and exit program in cobol?
what is search and searchall?what is the diffrence between them?give an best example?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is difference between static and dynamic call in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
what is amode(24), amode(31), rmode(24) and rmode(any)?