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 / ram g

no i cant agree with ur ans..
for eg: ws-var occurs 1 to 5 times depending on ws-cnt
it means that u can store max of 5 entries..
if i wanna store 50 entries instead of 5 at run time...what
could be the code change u can do on this?
ur ans indirectly saying that occurs depending on is
dynamic array isn't ? never is the my ans...
if u hv any idea please explain with simple eg

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

982


Discuss about changing dataset name in proc.

839


How you can read the file from bottom?

749


Why would you use find and get rather than to obtain?

777


What are the access modes of START statement?

813






What are 77 levels used for?

751


How do you define a variable of comp-1 and comp-2?

804


How to remove 2 duplicate records and copy only one using job control language?

875


What is Pic 9v99 Indicates in COBOL?

837


In COBOL programming, what is PERFORM? What is VARYING?

755


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1782


What is the difference between binary search and sequential search?

731


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2763


What is the default value(s) for an initialize and what keyword allows for an override of the default?

831


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