[SOLVED] Do you lose master file Defines when you join?
I know you lose Defines when you use a table in a join, i.e., Defines created earlier in the focexec.
Question -- do you lose the Defines created in the master file? I'm not in a position to test that right now.This message has been edited. Last edited by: FP Mod Chuck,
August 25, 2020, 06:42 PM
FP Mod Chuck
Hi John
I created a DEFINE in a fact table and joined it to a dimension table and the DEFINE was available for me to use when creating a report with App Studio.
Hope this helps you...
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 26, 2020, 01:44 PM
John_Edwards
It does, thanks.
I have a huge text field that parses into 200 separate fields, so having all the parses in the master files makes it super-easy to use everywhere.
August 26, 2020, 03:13 PM
jgelona
I use DEFINES in masters all the time. They may go away with a JOIN CLEAR *, but as soon as you reference the master file again, they are back. Also, something I'm pretty sure was fixed a number of years ago, is that if you use the master in a recursive JOIN and use the TAG attribute the DEFINE respects the TAG now. When they first came out with putting DEFINEs in master, FOCUS/WebFOCUS would get all confused when referencing a DEFINEd field in a recursive JOIN.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.