In COBOL "BEFORE" advancing is there or not ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

3831


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5896


Mention the guidelines to write a structured cobol program?

704


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2117


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2155






Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1785


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2204


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2838


What is the difference between PIC 9.99 and PIC9v99?

904


Why did you choose to work with ibm mainframe cobol programming?

730


Which Search verb is equivalent to PERFORM…VARYING?

778


Differentiate between structured cobol programming and object-oriented cobol programming.

751


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2034


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8493


Write down the divisions of cobol program?

750