Chapter Contents

Previous

Next
PUTSYM

PUTSYM



Creates a DCL symbol in your process

Language element: function
Category: general-purpose OpenVMS
OpenVMS specifics: All aspects are host-specific


Syntax
Details

Syntax

PUTSYM(symbol-name,value,scope)

symbol-name
is the name of the DCL symbol that you want to create. It can be a character variable value, a character literal enclosed in double quotation marks, or another character expression.

value
is the string to be assigned to the symbol. It can be a character variable, a character literal enclosed in double quotation marks, or another character expression.

scope
defines whether the symbol is a local or global symbol. If the value of scope is 1, the symbol is defined as a local symbol. If the value of scope is 2, the symbol is defined as a global symbol. The scope argument can be either a numeric literal or a numeric variable.


Details

The PUTSYM function creates a DCL symbol in your process. If the PUTSYM function executes successfully, the return value is 0. Otherwise, the return value is the OpenVMS error code that indicates why it failed.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.