Focal Point
[Solved] Join two Focus Hold files linking Computed fields

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2811078992

September 19, 2008, 10:49 AM
Daren
[Solved] Join two Focus Hold files linking Computed fields
Is it possible to join two Hold files (in focus format). The linked field is computed in both fields.

I can not seem to index the hold file with a computed field

This message has been edited. Last edited by: Daren,


Web Focus 7.6.5
JDE World
September 19, 2008, 11:04 AM
GinnyJakes
The source of the join doesn't have to be a FOCUS file, just the target.

What I would recommend for the other one is hold the data from the request that has the compute then re-table it as a hold format focus index idxfield. In the second table request, the computed field is now a real field.

It is kind of annoying that this happens. I also try to do it with ASNAMES and it just doesn't. I either wind up doing what I suggested above or store both fields in the FOCUS file.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
September 19, 2008, 11:15 AM
j.gross
This may be the issue: If you renamed the computed field...

COMPUTE name1/.. = ... ; AS 'name2'

...you have to specify the original name in the INDEX clause. The resulting fieldname and index name will reflect the renaming, assuming ASNAMES=ON or FOCUS.
SET ASNAMES=ON
TABLE FILE CAR
  WRITE COUNTRY NOPRINT 
  AND COMPUTE CN/A2=EDIT(COUNTRY,'99'); AS ABR
  BY CAR
  ON TABLE HOLD FORMAT FOCUS INDEX CN
END
-RUN
CHECK FILE HOLD PICT
-RUN
? FILE HOLD



- Jack Gross
WF through 8.1.05
September 19, 2008, 04:14 PM
Daren
I appreciate your help. I worked well.


Web Focus 7.6.5
JDE World