Thanks for the answers,
I'd like to make a 2 point message
1) DB2 is frightfully an 'Owner's Solution' who thinks that
in his World HIS Rules are the Universal Law
How can Focus ( whose DB2 Access Motor is Great) can play an heterogeneous game
"Extract ... with a concatenated key" : Please Help
2) I retried trying to be as close as (precious) Darin's advice as I could
This point is at the end oft the message
1) My question towards DB2 ( The choice of my Enterprise and a Safe Production SGBD)
Outside of the DB2 world, I process with Hold Files ( seldom Format Focus)
And I marry this HOLD file through Join (often) and Match (sometimes)
My Enterprise, as many, do not allow "ON TABLE HOLD AS TOTO FORMAT SQLDS"
which would turn me in the DB2 marvellous(!) World ( and no longer heterogeneous )
In so far as I Know &DB2.&TABLE ( like MVS temorary files) do not exist
So, the best way I know to induce FIX world in DB2 Word is WHERE TOTO IN FILE FSELTOTO
But I don't know how to play the Game With Concatanated Key
2) Everything makes me believe that Focus does not appreciate our way of
combining WITH and AND in the JOIN
----------------------------------------------------------------------
FOCUS 7.3.4 09.54.58 10/09/2009 CHTIE12 LINE 12 1067.05
JOIN CLEAR *
JOIN FED_SEL WITH CPT_SEL
AND CTR_SEL WITH CPT_SEL IN FRIBSEL
(INF32073) ERROR AT OR NEAR LINE 13 IN PROCEDURE CHTIE12 FOCEXEC
(FOC376) ERREUR DE SYNTAXE OU ELEMENT ABSENT DANS LA COMMANDE JOIN:
TO ALL
UNKNOWN FOCUS COMMAND TO
(INF32074) BYPASSING TO END OF COMMAND
TIECTR.COD_FED AND TIECTR.REF_CTR IN DMVTTLCR
END
DEFINE FILE FRIBSEL
FED_SEL/A02 WITH CPT_SEL = 'xx' ;
CTR_SEL/A50 = RIB_SEL ;
END
And of Course, Focus doesn't recognize any linked Field
TABLE FILE FRIBSEL
BY FED_SEL
BY RIB_SEL
PRINT
TIECTR.COD_FED
(INF32073) ERROR AT OR NEAR LINE 28 IN PROCEDURE CHTIE12 FOCEXEC
(FOC003) NOM DE CHAMP ABSENT DU DICTIONNAIRE TIECTR.COD_FED
(INF32074) BYPASSING TO END OF COMMAND
I can swear that in (MASTER) File DMVTTLCR, TIECTR is the First Segment
SEGNAME=TIECTR,SEGTYPE=S0,$
FIELD=COD_FED ,COD_FED ,A2 ,A2 ,MISSING=OFF,$
.../...
FIELD=REF_CTR ,REF_CTR ,A50 ,A50 ,MISSING=OFF,$
I also must say that COD_FED can be found in Other Segments too
Of course, if FED_SEL and CTR_SEL were real Fields ( no WITH, no Define )
Everything would be OK.
And If I preferred Crystal Report to Focus, You wouldn't be bored by me ...
Joining out of a Define is Great, and I Love it ...
Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO