Checks the validity of a character string for use as a SAS member name.
Category: | Character |
specifies a character constant, variable, or expression that associates a SAS library with a libref. Leading and trailing blanks are ignored.
specifies a character constant, variable, or expression that is checked to determine whether its value can be used as a SAS member name. Leading and trailing blanks are ignored.
specifies a character constant, variable, or expression that is the member type of the member name that you are using. Leading and trailing blanks are ignored. The value of memtype is not validated. The following member types are available:
ACCESS | specifies access descriptor files that are created by SAS/ACCESS. |
CATALOG | specifies SAS catalogs. |
DATA | specifies SAS data files. |
FDB | specifies a financial database. |
ITEMSTOR | specifies a SAS data set that consists of pieces of information that can be accessed independently. The SAS Registry is an example of an item store. |
MDDB | specifies a multidimensional database. |
PROGRAM | specifies stored compiled SAS programs. |
VIEW | specifies SAS views. |
specifies a character constant, variable, or expression. The values for validmemname can be uppercase or lowercase. Leading and trailing blanks are ignored. The following list contains the values that you can use with validmemname:
determines that string is a valid SAS member name when all three of the following conditions are true:
determines that string is a valid SAS member name when all of the following conditions are true:
Default | VALIDMEMNAME= is set to COMPAT. |
Note | If no value is specified, the MVALUE function determines that string is a valid SAS member name based on the value of the VALIDMEMNAME= system option. |
libname V9eng V9 'mypath'; data _null_; rc=MVALID('V9eng', 'my name', 'data', 'extend'); put rc=; run;
libname V9eng V9 'mypath'; data _null_; rc=MVALID('V9eng', 'my name', 'catalog', 'extend'); put rc=; run;