Language Reference


File I/O Functions

ATTRC

returns the value of a character attribute for a SAS data set

ATTRN

returns the value of a numeric attribute for the specified SAS data set

CEXIST

verifies the existence of a SAS catalog or SAS catalog entry and returns a value

CLOSE

closes a SAS data set and returns a value

CUROBS

returns the observation number of the current observation

DROPNOTE

deletes a note marker from a SAS data set or an external file and returns a value

DSNAME

returns the SAS data set name that is associated with a data set identifier

EXIST

verifies the existence of a SAS data library member

FETCH

reads the next nondeleted observation from a SAS data set into the Data Set Data Vector (DDV) and returns a value

FETCHOBS

reads a specified observation from a SAS data set into the Data Set Data Vector (DDV) and returns a value

GETVARC

returns the value of a SAS data set character variable

GETVARN

returns the value of a SAS data set numeric variable

LIBNAME

assigns or deassigns a libref for a SAS data library and returns a value

LIBREF

verifies that a libref has been assigned and returns a value

NOTE

returns an observation ID for the current observation of a SAS data set

OPEN

opens a SAS data set and returns a value

PATHNAME

returns the physical name of a SAS data library or of an external file, or returns a blank

POINT

locates an observation identified by the NOTE function and returns a value

REWIND

positions the data set pointer at the beginning of a SAS data set and returns a value

SYSMSG

returns the text of error messages or warning messages from the last data set or external file function execution

SYSRC

returns a system error number

VARFMT

returns the format assigned to a SAS data set variable

VARINFMT

returns the informat assigned to a SAS data set variable

VARLABEL

returns the label assigned to a SAS data set variable

VARLEN

returns the length of a SAS data set variable

VARNAME

returns the name of a SAS data set variable

VARNUM

returns the number of a variable’s position in a SAS data set

VARTYPE

returns the data type of a SAS data set variable