In COBOL "BEFORE" advancing is there or not ?
Answers were Sorted based on User's Feedback
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 |
Answer / raja
After clause is default, but before clause also there.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravi
Before advancing is not there.
only after advanving is allowed
| Is This Answer Correct ? | 0 Yes | 2 No |
Have you used comp and comp-3 in your project? And how?
In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?
What are the various section in data division and briefly explain them.
can we use reference modification an arry.
What do you understand by passing by reference and passing by content?
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
diffrence between renames and redifnes with examples
how can we get current dat and time thru cobol pgm
How do you set a return code to the JCL from a COBOL program?
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?