Multi occurrence data structure parms into and out of RPGLE via XML toolkit

5 pts.
Tags:
RPGLE
XML
I have a parm #@WQRYT it is described as - 
D #@WQRYT         DS                  LIKEDS(#WQRY_T) DIM(99) 
Here is my PLIST - 
C     *ENTRY        PLIST
C                   PARM                    #@WQRYT
C                   PARM                    #@ROWCNT          2 0
C                   PARM                    #@STATUS          1
Trying to bring into this data structure to process in pgm then send back -
D #WQRY_T         DS 
D W#DHCRIS                       6    INZ(*BLANKS)
D W#DHWKDT                      10D               
D W#DHSITE                       3    INZ(*BLANKS)
D W#DHTOUR                       1    INZ(*BLANKS)
D W#DHSCHD                       1    INZ(*BLANKS)
D W#DHCLCD                       3    INZ(*BLANKS)
D W#DHTSSQ                      10    INZ(*BLANKS)
D W#DHWKGP                       2    INZ(*BLANKS)
D W#DHSTA1                       2    INZ(*BLANKS)
D W#DHEXCH                      40    INZ(*BLANKS)
D W#DHCHGC                       3    INZ(*BLANKS)
D W#DHOPRA                       3    INZ(*BLANKS)
D W#DHCCTR                       5    INZ(*BLANKS)
D W#DHTQID                      10    INZ(*BLANKS)
D W#DHTAID                      10    INZ(*BLANKS)
D W#DHHRSC                       4  2 INZ(*ZEROS) 
D W#DHMAIN                       4    INZ(*BLANKS)
D W#DHSUBT                       3    INZ(*BLANKS)
D W#DHPROJ                      10    INZ(*BLANKS)
D W#DHSBPR                       5    INZ(*BLANKS)
D W#DHOTCD                       1    INZ(*BLANKS)
D W#DHRMCD                       2    INZ(*BLANKS)
D W#DHRUNT                       5  2 INZ(*ZEROS) 
D W#DHSHCD                       2    INZ(*BLANKS)
D W#DHSHRS                       6  3 INZ(*ZEROS) 
D W#DHRECT                       1    INZ(*BLANKS)
D W#DHMESG                     100    INZ(*BLANKS)
 
row number for access - 
D#ROWNUM          S              2S 0 
 
init - 
MOVE      1             #ROWNUM           2 0
EVAL      #WQRY_T = #@WQRYT(#ROWNUM)
I move it into the data structure - process it and then move it back the same way. 
EVAL     #@WQRYT = #WQRY_T(#ROWNUM)
Then do the next row.
 
The XML toolkit is passing 2 rows. 
I am only getting and processing 1 row. When I created in a CL and concat all fields into 1 parm #@WQRYT and debug it works and I get both rows but coming from XML toolkit it does not. Also, in DEBUG it shows 2 rows populated going back to xml toolkit call.
 
What am I missing her to get all the rows and process them and return in the PLIST? 
 
Any help ASAP is appreciated.. here is the XML developer's code - 

Array
(
    [0] => DataStructure Object
        (
            [type:protected] => ds
            [io:protected] => both
            [comment:protected] => 
            [varName:protected] => #@WQRYT
            [data:protected] => Array
                (
                    [0] => DataStructure Object
                        (
                            [type:protected] => ds
                            [io:protected] => both
                            [comment:protected] => 
                            [varName:protected] => #@WQRYT
                            [data:protected] => Array
                                (
                                    [0] => CharParam Object
                                        (
                                            [type:protected] => 6A
                                            [io:protected] => both
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCRIS
                                            [data:protected] => 404639
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [1] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => both
                                            [comment:protected] => 
                                            [varName:protected] => W#DHWKDT
                                            [data:protected] => 2014-05-22
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [2] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSITE
                                            [data:protected] => 100
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [3] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTOUR
                                            [data:protected] => B
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [4] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSCHD
                                            [data:protected] => Y
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [5] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCLCD
                                            [data:protected] => 2
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [6] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTSSQ
                                            [data:protected] => 0000001.01
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [7] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHWKGP
                                            [data:protected] => AC
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [8] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSTA1
                                            [data:protected] => IN
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [9] => CharParam Object
                                        (
                                            [type:protected] => 40A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHEXCH
                                            [data:protected] => IN.MONROEVILLE
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [10] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCHGC
                                            [data:protected] => 944
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [11] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHOPRA
                                            [data:protected] => 701
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [12] => CharParam Object
                                        (
                                            [type:protected] => 5A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCCTR
                                            [data:protected] => 231
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [13] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTQID
                                            [data:protected] => SOQ0000001
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [14] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTAID
                                            [data:protected] => SOA0000002
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [15] => ZonedParam Object
                                        (
                                            [type:protected] => 4s2
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHHRSC
                                            [data:protected] => 
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [16] => CharParam Object
                                        (
                                            [type:protected] => 4A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHMAIN
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [17] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSUBT
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [18] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHPROJ
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [19] => CharParam Object
                                        (
                                            [type:protected] => 5A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSBPR
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [20] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHOTCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [21] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRMCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [22] => ZonedParam Object
                                        (
                                            [type:protected] => 5s2
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRUNT
                                            [data:protected] => 
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [23] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSHCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [24] => ZonedParam Object
                                        (
                                            [type:protected] => 6s3
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSHRS
                                            [data:protected] => 
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [25] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRECT
                                            [data:protected] => C
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [26] => CharParam Object
                                        (
                                            [type:protected] => 100A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHMESG
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                )
 
                            [varying:protected] => off
                            [dimension:protected] => 99
                            [by:protected] => 
                            [isArray:protected] => 
                            [labelSetLen:protected] => 
                            [labelLen:protected] => 
                            [labelDoUntil:protected] => RowCount
                            [labelEndDo:protected] => 
                            [_ccsidBefore:protected] => 
                            [_ccsidAfter:protected] => 
                            [_useHex:protected] => 
                            [returnParameter] => 
                        )
 
                    [1] => DataStructure Object
                        (
                            [type:protected] => ds
                            [io:protected] => both
                            [comment:protected] => 
                            [varName:protected] => #@WQRYT
                            [data:protected] => Array
                                (
                                    [0] => CharParam Object
                                        (
                                            [type:protected] => 6A
                                            [io:protected] => both
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCRIS
                                            [data:protected] => 404639
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [1] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => both
                                            [comment:protected] => 
                                            [varName:protected] => W#DHWKDT
                                            [data:protected] => 2014-05-22
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [2] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSITE
                                            [data:protected] => 100
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [3] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTOUR
                                            [data:protected] => B
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [4] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSCHD
                                            [data:protected] => Y
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [5] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCLCD
                                            [data:protected] => 2
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [6] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTSSQ
                                            [data:protected] => 0000001.02
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [7] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHWKGP
                                            [data:protected] => AC
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [8] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSTA1
                                            [data:protected] => IN
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [9] => CharParam Object
                                        (
                                            [type:protected] => 40A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHEXCH
                                            [data:protected] => IN.MONROEVILLE
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [10] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCHGC
                                            [data:protected] => 944
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [11] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHOPRA
                                            [data:protected] => 701
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [12] => CharParam Object
                                        (
                                            [type:protected] => 5A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHCCTR
                                            [data:protected] => 231
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [13] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTQID
                                            [data:protected] => SOQ0000006
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [14] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHTAID
                                            [data:protected] => SOA0000015
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [15] => ZonedParam Object
                                        (
                                            [type:protected] => 4s2
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHHRSC
                                            [data:protected] => 3.00
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [16] => CharParam Object
                                        (
                                            [type:protected] => 4A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHMAIN
                                            [data:protected] => 6423
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [17] => CharParam Object
                                        (
                                            [type:protected] => 3A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSUBT
                                            [data:protected] => 010
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [18] => CharParam Object
                                        (
                                            [type:protected] => 10A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHPROJ
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [19] => CharParam Object
                                        (
                                            [type:protected] => 5A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSBPR
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [20] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHOTCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [21] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRMCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [22] => ZonedParam Object
                                        (
                                            [type:protected] => 5s2
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRUNT
                                            [data:protected] => 
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [23] => CharParam Object
                                        (
                                            [type:protected] => 2A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSHCD
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [24] => ZonedParam Object
                                        (
                                            [type:protected] => 6s3
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHSHRS
                                            [data:protected] => 
                                            [varying:protected] => off
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [25] => CharParam Object
                                        (
                                            [type:protected] => 1A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHRECT
                                            [data:protected] => C
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                    [26] => CharParam Object
                                        (
                                            [type:protected] => 100A
                                            [io:protected] => out
                                            [comment:protected] => 
                                            [varName:protected] => W#DHMESG
                                            [data:protected] => 
                                            [varying:protected] => 
                                            [dimension:protected] => 
                                            [by:protected] => 
                                            [isArray:protected] => 
                                            [labelSetLen:protected] => 
                                            [labelLen:protected] => 
                                            [labelDoUntil:protected] => 
                                            [labelEndDo:protected] => 
                                            [_ccsidBefore:protected] => 
                                            [_ccsidAfter:protected] => 
                                            [_useHex:protected] => 
                                            [returnParameter] => 
                                        )
 
                                )
 
                            [varying:protected] => off
                            [dimension:protected] => 99
                            [by:protected] => 
                            [isArray:protected] => 
                            [labelSetLen:protected] => 
                            [labelLen:protected] => 
                            [labelDoUntil:protected] => RowCount
                            [labelEndDo:protected] => 
                            [_ccsidBefore:protected] => 
                            [_ccsidAfter:protected] => 
                            [_useHex:protected] => 
                            [returnParameter] => 
                        )
 
                )
 
            [varying:protected] => off
            [dimension:protected] => 99
            [by:protected] => 
            [isArray:protected] => 1
            [labelSetLen:protected] => 
            [labelLen:protected] => 
            [labelDoUntil:protected] => RowCount
            [labelEndDo:protected] => 
            [_ccsidBefore:protected] => 
            [_ccsidAfter:protected] => 
            [_useHex:protected] => 
            [returnParameter] => 
        )
 
    [1] => ZonedParam Object
        (
            [type:protected] => 2s0
            [io:protected] => out
            [comment:protected] => 
            [varName:protected] => #@ROWCNT
            [data:protected] => 2
            [varying:protected] => off
            [dimension:protected] => 
            [by:protected] => 
            [isArray:protected] => 
            [labelSetLen:protected] => 
            [labelLen:protected] => 
            [labelDoUntil:protected] => 
            [labelEndDo:protected] => RowCount
            [_ccsidBefore:protected] => 
            [_ccsidAfter:protected] => 
            [_useHex:protected] => 
            [returnParameter] => 
        )
 
    [2] => CharParam Object
        (
            [type:protected] => 1A
            [io:protected] => out
            [comment:protected] => 
            [varName:protected] => #@STATUS
            [data:protected] => 
            [varying:protected] => 
            [dimension:protected] => 
            [by:protected] => 
            [isArray:protected] => 
            [labelSetLen:protected] => 
            [labelLen:protected] => 
            [labelDoUntil:protected] => 
            [labelEndDo:protected] => 
            [_ccsidBefore:protected] => 
            [_ccsidAfter:protected] => 
            [_useHex:protected] => 
            [returnParameter] => 
        )
 
)
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I don’t know if there’s more code than what’s been shown but are you doing anything with #ROWNUM after you’ve initialised it to the value of one?

I’ve not worked with multiple occurrence data structures in some time, but I believe you use the OCCURS keyword, not the DIM keyword to define the number of occurrences.

BTW, it looks as though you’ve named your 1st incoming parameter the same as your data structure.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: