Jump to content

CONFIG.SYS - SET Statements: Difference between revisions

From EDM2
Line 174: Line 174:
;Parameters:Paths can be any full path or any relative path. If you use more than one path, the paths must be delimited by a semicolon.  
;Parameters:Paths can be any full path or any relative path. If you use more than one path, the paths must be delimited by a semicolon.  


====SMNOTC====
*[[SMNOTC]]
SET SMNOTC=1
*[[SMTMP]] - Points to a directory used to store temporary files.


*[[SMTMP]] - Points to a directory used to store temporary files.
*[[SMG_PATH]] - Used by the IBM AO-Manager.  
*[[SMG_PATH]] - Used by the IBM AO-Manager.  
*[[SMG_Pl2NlG]] - Used by the IBM AO-Manager.  
*[[SMG_Pl2NlG]] - Used by the IBM AO-Manager.  

Revision as of 16:43, 1 December 2017

Return to The Config.sys Documentation Project Main Page

Environment variables are stored by OS/2 in memory and can be called by any program. They are used by many programs to store information (for example, the install path) or some configuration information. If you want to see a list of all installed environment variables and their values, type "Set" in an OS/2 window. If the list is too long, you can redirect the screen output to a file, simply type this:

SET >output.txt

General Tips

Note that SET commands in CONFIG.SYS behave differently than when entered on the command line.

So, when you issue the following comands in a OS/2 session:

SET TEMP=C:\TMP
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=C:\TMP

But, if you add the same lines to CONFIG.SYS:

SET TEMP=C:\TMP 
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=%TEMP%

but not TMP=C:\TMP. The enviroment variable TMP now has the value composed by the letters "%", "T", "E", "M", "P", "%". For that reason, in CONFIG.SYS, you must write the values explicitly as follows:

SET TEMP=C:\TMP
SET TMP=C:\TMP

This is because variables are not expanded during CONFIG.SYS processing, but they are when run from a shell (command line).

Base Operating System

PM

Help Manager

Workplace Shell

SOM

OS/2 SOM Set Statements.

Programming Environments

Java Run-time

Networking

LAPS

Global Security Runtime

MM...

PM_

WarpCenter

ShellHandlesINC

OS/2 SOM

SMADDSTAR

SET SMADDSTAR=1

SMCLASSES

SET SMCLASSES=Wptypes.idl

SMEMIT

SET SMEMIT=H;IH;C

SMINCLUDE

Defines the directories where the special SOM header files are stored.

SET SMINCLUDE=Paths
Parameters
Paths can be any full path or any relative path. If you use more than one path, the paths must be delimited by a semicolon.
  • SMNOTC
  • SMTMP - Points to a directory used to store temporary files.

VIO


Check also CONFIG.SYS - SET Statements (Additional software).