what is the difference between occurs and occurs depending
on? i dont think so there is the difference in
storage..then why we should use occurs depending on?

Answer Posted / anna.

For hard-coded table we define cobol table with OCCURS,
becouse it is fixed numbers of occurances.

For input-loaded table (varb/l) with OCCURS DEPENDING ON
counter.Loading with perform vayring.
In this case we have exac numbers of entry and table can
easily access.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to enter and display the names of students in a class using the occurs clause.

654


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.

2013


what is difference between cobol and cobol/400

21568


How arrays can be defined in COBOL?

665


What rules are to be followed while using the corresponding options?

641






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?

1808


What is a report item?

741


What are the rules of the move verb?

708


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

649


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


how do you reference the printer file formats from cobol programs

667


What is the Purpose of Pointer in the string?

643


i want a program using by if, evaluate , string, unstring, perform, occurs?

4062


What is difference between static and dynamic call in cobol?

778


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8658