For Missing Question

Terry Pickering pickering@myself.com
Thu, 09 Nov 2000 09:48:34 -0800


Chris asked if "multiple wps-po-mst records per gls-po-driver record" was 
the case. No, they are one-to-one. What I don't understand is why if I am 
not using GLS-PO-DRIVER everything works fine. If the screen was changed to 
the following it works just fine. It will continue displaying records way 
past the 255.

Also, if I remove the CACHE clause, it only displays one screen of data 
since by default it sets the cache to the number of occurrences.

Bob - why does this example work, but the previous one does not??? Also, is 
there another way than what I tried using the GLS-PO-DRIVER file as a 
designer file to accomplish the same thing. Basically, I want to read the 
GLS-PO-DRIVER file and link to the WPS-PO-MST file to display them. They 
are a one-to-one relationship. I'm also going to take a closer look at 
Chris' suggestion.

Here is the example of code that works just fine.



SCREEN GLS_EXE:TPK016  ACTIVITIES FIND

FILE WPS-PO-MST PRIMARY    OCCURS 14 CACHE 20

TEMP T-VENDOR-NUM CHAR*10 RESET AT STARTUP

FIELD T-VENDOR-NUM

CLUSTER OCCURS WITH WPS-PO-MST
ALIGN (1,,1) (10,,10)
FIELD PO-NUM OF WPS-PO-MST SIZE 6
FIELD CUSTOMER-NUM OF WPS-PO-MST
;*********************** PROCEDURES ***************************

;************************
PROCEDURE PATH
;************************
BEGIN
   REQUEST T-VENDOR-NUM
   LET PATH = 1
END

;************************
PROCEDURE FIND
;************************
BEGIN
    FOR MISSING WPS-PO-MST
       BEGIN
         GET WPS-PO-MST VIA VENDOR-NUM USING T-VENDOR-NUM
       END
END


Terry Pickering
Eugene School District 4J
(503) 687-3416


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.