If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > function for getting environment variables in procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-04, 00:47
dolphin4022 dolphin4022 is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
function for getting environment variables in procedure

Hi,

How do I get enviromnent variables in stored procedure codes?

I don't know which build-in function or keyword can let me get
environment variables in stored procedure codes.
Reply With Quote
  #2 (permalink)  
Old 10-08-04, 03:02
dolphin4022 dolphin4022 is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
4GL function, fgl_getenv, cannot be resolved for procedure

Hi,

I added a 4GL function, fgl_getenv, for the stored procedure.
But, failed.
674: Routine (fgl_getenv) can not be resolved.


create procedure p1() returning CHAR(10);

define ret1 CHAR(10);

let ret1 = fgl_getenv("USER"); -- environment variable USER for example

return ret1;

end procedure;



How should I do? If I need to get environmnet variables when I
execute this stored procedure.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On