4. Setting Environment Variables and Logicals : Customization of Query Runtime Environment : ING_SET : Example: Set ING_SET
 
Share this page                  
Example: Set ING_SET
To define this Ingres environment variable, use the following command syntax at the operating system prompt:
Windows:
SET ING_SET = set-statement{; set statement}
Examples:
SET ING_SET=SET LOCKMODE SESSION WHERE READLOCK=NOLOCK
SET ING_SET=include C:\users\default\mystartfile
UNIX:
C Shell:
setenv ING_SET 'set-statement {; set-statement}'
or
setenv ING_SET 'include path_to_file'
Examples:
setenv ING_SET 'SET LOCKMODE SESSION WHERE READLOCK=NOLOCK'
setenv ING_SET 'include /usr/george/mystartfile'
Bourne Shell:
ING_SET='set-statement {; set-statement}'
or:
ING_SET='include path_to_file' export ING_SET
Examples:
ING_SET='SET LOCKMODE SESSION WHERE READLOCK=NOLOCK' export ING_SET
ING_SET='include /usr/george/mystartfile' export ING_SET
VMS:
define ING_SET "set-statement {;set-statement}"
or:
define ING_SET "include path_to_file"
Examples:
DEFINE /PROCESS ING_SET "SET LOCKMODE SESSION WHERE READLOCK=NOLOCK"
DEFINE /PROCESS ING_SET ‑ 
"INCLUDE DUA1:[USER.GEORGE]MYSTART.FILE"
For the include format, the file specified by path_to_file contains the set statements. If you have several set statements, separate the statements with a semicolon (;). Place each set statement on a separate line in the file. For example:
set autocommit on;
set lockmode session where readlock=nolock;
set result_structure cbtree