In COBOL "BEFORE" advancing is there or not ?

Answers were Sorted based on User's Feedback



In COBOL "BEFORE" advancing is there or not ?..

Answer / nag(igate)

Yes, Before advancing clause is there. but it is default in
perform statement.

ex:
Perform para1 varying I from 1 by 1 until I > 10 { test
before or after}
1. if we code before: the condition will check first then
loop will execute. it is default.
2. if we code after: the loop will execute first then
condition will check.

pls correct me, if i am wrong..............

Is This Answer Correct ?    1 Yes 0 No

In COBOL "BEFORE" advancing is there or not ?..

Answer / raja

After clause is default, but before clause also there.

Is This Answer Correct ?    0 Yes 0 No

In COBOL "BEFORE" advancing is there or not ?..

Answer / ravi

Before advancing is not there.

only after advanving is allowed

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

What is the file organization clause ?

2 Answers  


How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?

6 Answers  


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


What the difference is between continue and next sentence?

0 Answers  






What are the functions like c or c++ in cobol?

2 Answers  


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


What are the divisions in a cobol program?

1 Answers  


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,


can we use go to statement inline-perform?

7 Answers   IBM,


S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?

1 Answers  


Categories