In a program, there are 2 sections defined say SECTION-A
and SECTION-B. There is a paragraph say CALC-INT in both
the sections. If this para has to be called directly for
SECTION-A, then PERFORM CALC-INT will not work as it is
present in both sections. How the PERFORM statement has to
be coded here?

Answer Posted / bv

It cannot be called directly . Control should go to
section A and start of that section A, perform CALC-INT.

Perform SECTION-A.

SECTION-A
Perform CALC-INT.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6807


What is amode(24)?

680


How do you differentiate between cobol and cobol-ii?

651


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


how do you reference the printer file formats from cobol programs

653






Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


how to refer the data field?

1802


What is perform what is varying?

701


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

704


What is rmode(24)

676


In COBOL, what is the different between index and subscript?

753


What are the rules of the move verb?

701


What is the difference between Call and a Link?

694


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?

1798


Explain how you can characterize tables in cobol?

636