Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?



Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?..

Answer / Atul Chaudhary

The default for a PERFORM statement in COBOL is 'TEST AFTER'. This means that the loop will not be executed if the condition is true at the end of the last iteration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


Write the code implementing the perform … varying.

1 Answers  


How to retain the Duplicates in the one records?

3 Answers   CS,


which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1 Answers  


subscript and index r not coded in u r application program what will happen?

2 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


What are the different open modes available in cobol?

1 Answers  


How to recover a deleted source physical file from library?

1 Answers   HCL,


i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?

2 Answers  


Categories