on ‎2012 Aug 17 5:50 AM
Say, I want to access the value of the Windows %TEMP% setting in order to write output to a particular directory...
Just as "cross documentation" - as it has been dealt with as a side effect of this question dealing witb DBISQL.
Request clarification before answering.
If you have the Perl external environment setup, this function will return value of the environment variable passed in:
CREATE FUNCTION getenv( env LONG VARCHAR ) RETURNS LONG VARCHAR EXTERNAL NAME '$sa_perl_return = $ENV{$sa_perl_arg0}' LANGUAGE PERL
You can do something similar with any of the other external environments, but Perl is most convenient because you can embed the code right in the external name, without having to deal with distributing dlls or jars.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.