What is the difference between performing a SECTION and a
PARAGRAPH?
Answer Posted / grahame davis
Perform paragraph executes statements in the paragraph
Section executes all paragraphs until next section or until
end of program and ignores any EXIT except for last line in
program or last line prior to new Section. This was found
when someone added a new Section but forgot the SECTION
which meant previous Section then dropped through into new
code which caused logic problems and an abend
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the various section in data division and briefly explain them.
What is the difference between Call and a Link?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Which Search verb is equivalent to PERFORM…VARYING?
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?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how can i see junk values in dclgen or in hostvariable of comp ?
Write the code to count the sum of n natural numbers.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?