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
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are the various section in data division and briefly explain them.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between Global and External Variables?
What is the difference between comp and comp-3?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the default value(s) for an initialize and what keyword allows for an override of the default?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Mention the guidelines to write a structured cobol program?
how to refer the data field?
What are different data types in cobol?
How do we get current date from system with century in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
Whats the difference between search & search ALL?