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 / tripti

IF AN INTERNAL TABLE OCCURS 100 TIMES.

I USE OCCURS DEPENDING ON <NUMBER OF RECS IN INPUT FILE>
CLAUSE WHILE DECLARING THE TABLE

MY INPUT FILE HAS 125 ITEMS.

CAN I ACCESS 125TH ITEM IN THE FILE USING THE INTERNAL
TABLE?

MY ANSWER ID YES. IN DEPENDING ON <XX> CLAUSE XX OVERWRITES
THE OCCURS CLAUSE

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the LINKAGE SECTION used in COBOL?

1040


Explain about different table spaces.

744


What is the difference between a binary search and a sequential search what are the pertinent cobol?

823


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1693


how to access the file from prodution from changeman tool and to submit a file to production

6887






what is amode(24), amode(31), rmode(24) and rmode(any)?

789


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

720


i need a small 3d program using inline and outline.

1748


how to refer the data field?

1902


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5230


What is the difference between structured cobol programming and object alternativelyiented cobol?

855


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.

1784


How do you reference the following file formats from cobol programs?

797


What is an in line perform? When would you use it? Anything else you wish to say about it.

739


What is rmode(any) ?

776