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 is the difference between PIC 9.99 and 9v99 in COBOL?
Can we change the password using ALTER? anyone tried and changed?
example for sub strings ? and refernce modifications whit output pls
Difference between cobol and cobol-ii?
i need a small 3d program using inline and outline.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between PIC 9.99 and PIC9v99?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Explain how you can characterize tables in cobol?
How you can characterize tables in cobol?