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 > Session Variable Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-11, 06:01
chicky0815 chicky0815 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
Session Variable Problem

Hey Guys,

please excuse my english

I am working with Informix DB together with 4gl Programs(since one year). I need to set some environment or session Variable. I dont know if it is even possible. I have a Shellmask where Users can choose some Printers.

After that i need to know which Printer was choosen by the user to act in the 4gl Program. For that i want to set a variable for example print_copy=1 or something.

I can start the Shellmask without the 4gl Programm an the Variable is set well. When i start the Shellmask on the Program the Variable is null. I think the Problem may be that the variable is only available when the Mask is started on the shell.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 07-21-11, 18:13
Luis Santos Luis Santos is offline
Registered User
 
Join Date: Jun 2009
Location: Lisboa, Portugal
Posts: 51
Hi,

Are you retriving the variable to the 4GL program?
You can set it on the shell but then you must retrive and use on the program...
__________________
LS
Reply With Quote
  #3 (permalink)  
Old 07-25-11, 01:56
chicky0815 chicky0815 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
Quote:
Originally Posted by Luis Santos View Post
Hi,

Are you retriving the variable to the 4GL program?
You can set it on the shell but then you must retrive and use on the program...
Thanks for reply. At first i could not retrieve the variable. Then i tought again (sometimes not bad ) and declared the variable in the .profile data. After that i could retrieve the variable in the program.

The Problem was i was thinking you could set a variable without setting it in the profile or somewhere else. But it seems not to go as environment variable.

Now the program works properly
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