Thanks Mike for the insight. In my case, I believe the consuming application is the virtual service because, the data I use to create the virtual service is fixed length req/res files. While creating, I use the copybook to slide and dice the message into an XML as per the copybook and store it in the service image. This being the case, how do I represent the group with a key in the copybook ?
Generally when I have GROUP D-PREVIOUS-BOOK-GROUP depends on D-PREVIOUS-RESP-CODE without a key = {} , I will represent this as
05 D-STATIONERY-GROUP OCCURS 0 TO 1 DEPENDING ON D-PREVIOUS-RESP-CODE in the copybook which means the number of times the group occurrence is dependent on D-PREVIOUS-RESP-CODE which is a length field.
But in this case, I believe instead of merely taking the dependent field value and repeating the group those many times, I believe it has to compare the dependent field value (331000) and load the group ?
or
is it like, irrespective of the dependent field value, the group has to load and if it is 331000, the group will have meaningful data else it will be empty spaces or zero's. Is that what you meant Mike?
Regards,
Shivakumar.