on 07-24-2015 12:25 PM
set temporary option temp_extract_name1='/home/iq/p1/team/ess/procs/sp_p1ClrptBasketMaturityMonths/new.lst'
set temporary option temp_extract_column_delimiter='|'
set temporary option temp_extract_row_delimiter='\n'
And then I use a UDF in a select statement:
select swapNum, fc_datefmtspec1(maturityDate) from #out
I get this runtime error:
"Feature, EXTRACT with OMNI functional compensation, is not supported."
Does anyone know what this means and how to fix it?
Mark,
Unfortunately, this is expected. The TEMP_EXTRACT options only work for queries whose entire data set and computation are inside the IQ engine. The UDF has to push data into the external library and that breaks the "all in IQ" requirement. I would look to stuff the result into a temp temp then run an extract from there.
The one downside may be that the licenses forbid UDFs from writing back into IQ. This is only available via partner UDFs and via the RAP product as far as I know.
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With respect to the TSQL and Watcom discussion.... This is no different than someone writing in C. You can't mix C and C#, for instance. And for certain you can't have JAVA and C in the same program. A C compiler won't understand JAVA calls and vice versa.
What we mean by this is that you cannot have a single procedure or batch that mixes dialects. You can't use the TSQL IF statement then have the WATCOM SQL SET statement followed by a TSQL WHILE loop.
You can absolutely have a TSQL proc that calls a WATCOM proc and vice versa. That is fine since each set of code is encapsulated within a standalone procedure.
Mark
Basically, the objects in the FROM clause must all be IQ tables (no catalog, no SYSTEM, no CIS tables). Second, the function calls being used must be IQ functions. So the few remaining SA functions (like LIST) and any UDFs (C, SQL, JAVA) will take some processing outside the IQ engine and memory and thus cannot be used for temp extracts.
Mark
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.