Could anyone please provide an example or explain how to join an FTM external hold file to a datawarehouse table within the SQL portion of a FEX procedure?
Example of what this might look like
APP FI WebfocusFile DISK myDirectory/ WebfocusFile.FTM
Sql sqldbc (datawarehouse connection) Select * From table 1 Join WebfocusFile On table1.wbid = WebfocusFile.wbid ; Tablef file sqlout Ect…..This message has been edited. Last edited by: FP Mod Chuck,
WF 8.2
September 04, 2019, 03:02 PM
BabakNYC
I doubt you can do that. I believe as soon as you say SQL SQLODBC, everything below that line has to be a table in your RDBMS. Since an FTM is just a file on disk, SQL commands won't see what's in them. Your alternative is to use the FOCUS syntax to JOIN these two, AFTER you extract your SQL answer set. Otherwise, you could end up doing table scans which are not very efficient.
WebFOCUS 8206, Unix, Windows
September 04, 2019, 03:38 PM
Tim A
quote:
RDBMS
thanks for taking the time to explain. I need t o update, create, insert data into tables in DW using some data in my WF FTM files. Data comes from a web tool with inputs to the FTM files from users of WF applications. I'll just create tables in DW and re-write the web app to load data to them instead.
WF 8.2
September 04, 2019, 03:41 PM
Tim A
FYI - the point of this is to allow others at our company to access this data in DW using a multitude of other reporting software. All of them can access dw but not WF files
WF 8.2
September 04, 2019, 03:52 PM
BabakNYC
If you have write access to the DW, then use HOLD FORMAT SQLODBC to put the data directly into the RDBMS. I assume right now your request has only HOLD. You can also use MODIFY to load the FTM into the RDBMS. If you have a HOLD.FTM with a HOLD.MAS associated with it all you need to do is
MODIFY FILE rdbmstablename FIXFORM FROM HOLD DATA ON HOLD END