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 / venkat
The OCCUR keyword can not be used in 01 level variable. But
it can be used in level below 01.
Eg:
01 WS-NAME.
02 WS-NAM-X PIC X(10) occurs 2 times.
01 Ws-TEST PIC X(10) value spaces.
We can access the second name variable WS-NAM-X(2).
Eg 1. MOVE WS-NAM-X(2) to Ws-TEST.
2. Display WS-NAM-X(2).
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are all the divisions of a COBOL program?
What are the different rules of SORT operation?
What is the local-storage section?
What is the difference between comp and comp-3 usage?
When is inspect verb is used in cobol?
How do we get current date from system with century in COBOL?
What rules are to be followed while using the corresponding options?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
how do you reference the esds vsam file formats from cobol programs
How do you define a variable of comp-1 and comp-2?
Name some of the examples of COBOl 11?
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 ?
What are the various section in data division and briefly explain them.
what happens if parmparameter passes zero bytes to the program