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 / ganesh
but if there is no any condition to check for in evaluate
statement. how can we replace it using evaluate.
won't it change the structure of program if we use evaluate
statement.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What kind of error is trapped by on size error option?
) How do u handle errors in BMS macro?
What is the difference between perform … with test after and perform … with test before?
HOw can I get the negative sign while deduct high value from low value
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the usage of comp fields in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what is the use of outrecord?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the difference between next sentence and continue in cobol programing language?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How to remove 2 duplicate records and copy only one using job control language?
Have you used comp and comp-3 in your project? And how?