The CDF_VARRENAME procedure renames an existing variable in a Common Data Format file.

Examples


See the example for CDF_VARGET.

Syntax


CDF_VARRENAME, Id, OldVariable, NewName [, /ZVARIABLE]

Arguments


Id

The CDF ID, returned from a previous call to CDF_OPEN or CDF_CREATE.

OldVariable

A string containing the current name of the variable or the variable number to be renamed.

NewName

A string containing the new name for the variable.

Keywords


ZVARIABLE

If OldVariable is a variable ID (as opposed to a variable name) and the variable is a zVariable, set this flag to indicate that the variable ID is a zVariable ID. The default is to assume that OldVariable is an rVariable ID.

Version History


Pre 4.0

Introduced