Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and 9v99 in COBOL?

1307


Can we change the password using ALTER? anyone tried and changed?

1989


example for sub strings ? and refernce modifications whit output pls

2298


Difference between cobol and cobol-ii?

1251


i need a small 3d program using inline and outline.

2193


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17848


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1068


What is the difference between PIC 9.99 and PIC9v99?

1319


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

2954


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1137


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1118


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1138


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5357


Explain how you can characterize tables in cobol?

1045


How you can characterize tables in cobol?

1176