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
Write a program to enter and display the names of students in a class using the occurs clause.
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.
what is difference between cobol and cobol/400
How arrays can be defined in COBOL?
What rules are to be followed while using the corresponding options?
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?
What is a report item?
What are the rules of the move verb?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you reference the printer file formats from cobol programs
What is the Purpose of Pointer in the string?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is difference between static and dynamic call in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?