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

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).

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

789


Mention the guidelines to write a structured cobol program?

704


how to convert the recors form vsam file to db2 table tru file aid

2853


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1717


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

752






how do you reference the rrds file formats from cobol programs

936


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

774


How you can read the file from bottom?

749


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

4190


Name the sections present in data division.

793


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7073


How do you differentiate between cobol and cobol-ii?

753


Which Search verb is equivalent to PERFORM…VARYING?

778


Name some of the examples of COBOl 11?

2782


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2129