I am trying to do a left outer join for a segment (SEGMENT_B) that requires a filedef to another segment (SEGMENT_A) that does not require a filedef. The host file will be SEGMENT_A. It is giving me the following error: (FOC1071) VALUE FOR JOIN 'TO' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED
I have no problems joining the files when I use SEGMENT_B as the host. It appears that I have the FILEDEF statement for SEGMENT_B in the wrong place, but every time I move, WebFocus doesn't recognize it.
Here's what I've written so far:
FILEDEF SEGMENT_B DISK /DATA/FILENAME.prn
JOIN SEGMENT_A.PIN IN SEGMENT_A TO SEGMENT_B.PIN IN SEGMENT_B AS J0
TABLE FILE BEN_ACT
PRINT
PIN
LNAME
END
Can someone tell me what I'm doing wrong?
I have no problems joining the files when I use SEGMENT_B as the host. It appears that I have the FILEDEF statement for SEGMENT_B in the wrong place, but every time I move, WebFocus doesn't recognize it.
Here's what I've written so far:
FILEDEF SEGMENT_B DISK /DATA/FILENAME.prn
JOIN SEGMENT_A.PIN IN SEGMENT_A TO SEGMENT_B.PIN IN SEGMENT_B AS J0
TABLE FILE BEN_ACT
PIN
LNAME
END
Can someone tell me what I'm doing wrong?