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 / 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 |
Post New Answer View All Answers
Why would you use find and get rather than to obtain?
Difference between array and sub-script ?
) How do u handle errors in BMS macro?
What rules are to be followed while using the corresponding options?
how to move the records from file to array table. give with code example
What are declaratives and what are their uses in cobol?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Name the sections present in data division.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
what is search and searchall?what is the diffrence between them?give an best example?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is comp-1 and comp-2?
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?
Why did you choose to work with ibm mainframe cobol programming?
State the various causes of s0c1, s0c5 and s0c7.