01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2
times. My qustion is how can we access the second name
Answer Posted / veena
occurs can never be used in the 01 level. and when the
clause is used in 02 level, the variable has to be in the
level below that.
01 ws-name1.
02 ws-name2 occurs 2 times.
03 ws-name. pic x(10).
and also pic clause cannot be used in the same statement of
the occurs clause.
| Is This Answer Correct ? | 16 Yes | 7 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is rmode(any) ?
how to access the file from prodution from changeman tool and to submit a file to production
Which division and paragraphs are mandatory for a COBOL program?
Difference between cobol and cobol-ii?
What is the difference between goback, stop run and exit program in cobol?
What do you understand by psb and acb?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What rules are followed by the search verb.
How do you differentiate between cobol and cobol-ii?
What are the cobol coding sheets?
what is the use of outrecord?
) how do u code after getting data?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?