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
explain sorting techniques in cobol program?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
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 ?
Write down the divisions of cobol program?
How are the next sentence and continue different from each other?
What are the different types of condition in cobol and write their forms.
What are the different open modes available in cobol?
Why would you use find and get rather than to obtain?
What is the utilization of copybook in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Write a program to enter and display the names of students in a class using the occurs clause.
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
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning