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
Explain about different table spaces.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is a scope terminator give example?
Name the sections present in data division.
What are the different rules for performing sort operation?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
State the various causes of s0c1, s0c5 and s0c7.
What is the compute verb? How is it used?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How can you get the ksds file records into your cobol program?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Give some examples of command terminators?