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 / sivakumar sekharannair
As ram said the number of occurances stored can be only 5
in either case. it cannot exceed more than that. what i
feel is when the first occurs clause is used regardless of
the number of occurances are loaded in the table the memory
allocation would be 5 bytes but if occurs 1 to 5 times
depending on ws-var, memory allocation will be made based
on the number of occurances loaded.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
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.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the different data types in cobol?
What are the different rules for performing sort operation?
example for sub strings ? and refernce modifications whit output pls
how to access the file from prodution from changeman tool and to submit a file to production
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Can you please let me know the centre name of INS certification in Kolkata.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different rules of SORT operation?
What are literals?
how to refer the data field?
how can i see junk values in dclgen or in hostvariable of comp ?