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?

Answers were Sorted based on User's Feedback



In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say C..

Answer / priya

The above code does not work. It gives a compilation error.
Is there any other solution?

Is This Answer Correct ?    4 Yes 1 No

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say C..

Answer / kb

yes , its right the above code gives compilation errors. I
have checked this

Is This Answer Correct ?    2 Yes 0 No

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say C..

Answer / kb

It will be called as
PERFORM CALC-INT OF SECTION-A.

Is This Answer Correct ?    2 Yes 1 No

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say C..

Answer / 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

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say C..

Answer / priya

Any para in a section can be called directly. There is no
need to call the section. In this case, the paragraph name
is the same in both the sections, so there should be some
way by which the paragraph can be called directly by using
the section name as the qualifier but now sure how.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


Why there is no questions in this column?

6 Answers  


A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.

1 Answers  


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,






How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


Explain the configuration section of a cobol program with examples of syntax.

0 Answers  


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

0 Answers  


How many sections are there in data division?.

10 Answers   Amdocs, TCS,


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


Categories