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


Please Help Members By Posting Answers For Below Questions

explain sorting techniques in cobol program?

785


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2008


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1985


Write down the divisions of cobol program?

750


How are the next sentence and continue different from each other?

875






What are the different types of condition in cobol and write their forms.

751


What are the different open modes available in cobol?

822


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

777


What is the utilization of copybook in cobol?

764


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

764


Write a program to enter and display the names of students in a class using the occurs clause.

774


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

875


i want a program using by if, evaluate , string, unstring, perform, occurs?

4190


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

847


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

773