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 / kb
It will be called as
PERFORM CALC-INT OF SECTION-A.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are literals?
Write the code to count the sum of n natural numbers.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between perform … with test after and perform … with test before?
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.
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.
what is search and searchall?what is the diffrence between them?give an best example?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
how to convert the recors form vsam file to db2 table tru file aid
What are all the divisions of a COBOL program?
how can i see junk values in dclgen or in hostvariable of comp ?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What is amode(31)