View previous topic :: View next topic |
Author |
Message |
uthaman Beginner
Joined: 09 Apr 2007 Posts: 14 Topics: 9
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Mar 21, 2012 10:18 am Post subject: |
|
|
uthaman,
Unless I am mistaken , isn't it a simple case of using a PERFORM statement to capture whatever you are looking for?
Kolusu |
|
Back to top |
|
|
uthaman Beginner
Joined: 09 Apr 2007 Posts: 14 Topics: 9
|
Posted: Thu Mar 22, 2012 8:11 am Post subject: |
|
|
What I have is a copybook like this:
01 ws-return-info.
05 ws-return-code pic x(2).
05 ws-table occurs 500 times.
10 ws-name pic x(60).
10 ws-location-table occurs 50 times.
15 ws-loc-address pic x(60).
When I create the WSDL from this definition, and then process it back into a cobol format I end up with something like this:
01 ws-data.
05 ws-return-code pic x(2).
05 ws-return-count pic s9(9) comp-5.
05 ws-return-container pic x(16).
01 ws-table.
05 ws-name pic x(60).
05 ws-table-num pic s9(9) comp-5.
05 ws-table-containter pic x(16).
01 ws-location-table.
05 ws-loc-address pic x(60).
ws-return-container points at a container name that contains 0 to 500 WS-TABLE entries. You build that by reading thru a file and building a very large PIC X field. I have:
01 ws-ret-container pic x(600000).
That all works until I introduce the ws-location-table. I am trying to create an unique container name for each ws-table to plug into ws-table-container. But, it seems to be ignored by CICS.
Sorry, I am probably not explaining this very well. I am rather new to doing this myself! |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Mar 22, 2012 8:47 am Post subject: |
|
|
there are 50 ws-loc-address's per ws-name
you are processing an inner loop 50 times per ws-name outer loop?
or are you? _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
uthaman Beginner
Joined: 09 Apr 2007 Posts: 14 Topics: 9
|
Posted: Thu Mar 22, 2012 8:53 am Post subject: |
|
|
Yes. There are 1 to 50 location addresses possible for each name. And, 0 to 500 names are possible.
So, for the web service I am not sure how to reference a second container from within a variable number of "parent" containers... |
|
Back to top |
|
|
|
|