Restriction: | You cannot change the length of a variable using the LENGTH= option on an ATTRIB statement. |
Example: | Modifying SAS Data Sets |
modify mydata / dtc='03MAR00:12:01:00'dt;
DTC= cannot be used with encrypted files or sequential files.
DTC= can be used only when the resulting SAS file uses the V8 or V9 engine.
gennum=2
specifies
MYDATA#002). Specifying a negative number is a relative reference
to a historical version in relation to the base version, from the
youngest to the oldest (that is, gennum=-1
refers
to the youngest historical version). Specifying 0, which is the default,
refers to the base version./* assigns a password to an unprotected file */ modify colors (pw=green); /* assigns an alter password to an already read-protected SAS data set */ modify colors (read=green alter=red);
/* changes the write password from YELLOW to BROWN */ modify cars (write=yellow/brown); /* uses alter access to change unknown read password to BLUE */ modify colors (read=/blue alter=red);