Return to UOCC HomeComputing News Home
Header bar

SAS 8.2 Now Available on VMScluster

If you need to convert your old v.6 datasets in order to read them in the new version, follow these steps...

Joe St Sauver, Ph.D.
joe@oregon.uoregon.edu

At the end of fall term, SAS 8.2 was installed on Oregon.

For most users, upgrading to the new version should be easy. However, if you're among those who need to explicitly convert their older SAS version 6 datasets in order to read them in 8.2, the task is a bit more complex.

For example, suppose you have two SAS version 6 permanent datasets called datafile1 and datafile2. To convert those datasets from version 6 to version 8.2, you'll need to follow the steps outlined below:

1. Because both versions shouldn't be stored in the same directory, you'll need to create an OpenVMS directory to temporarily hold the old format datasets:

$ create/dir [.old]

2. Move datafile1.* and datafile2.* into that directory by typing:

$ rename datafile1.* [.old]
$ rename datafile2.* [.old]

3. Using EVE or EDT, create a file called convert.sas containing the lines:

libname mystuff base '[ ]';
libname oldstuff v6 '[.old]';
proc copy in=oldstuff out=mystuff;
select datafile1 datafile2;
run;

4. Run the conversion job by typing:

$ sas82 convert.sas

5. Using EVE or EDT, check convert.log to make sure the job ran properly.

6. At a later point, after you have verified that your old data sets have been correctly converted to version 8.2 format, you can remove the old format data sets and the temporary directory you created to hold them:

$ set def [.old]
$ del datafile1.*.*,datafile2.*.*
$ set def [-]
$ set prot=o:RWED old.dir
$ del old.dir.*

For a summary of new SAS 8.2 features, see http://www.sas.com/products/sassystem/release82/features.html

You'll find complete SAS documentation for the OpenVMS environment at http://sas.uoregon.edu/sashtml/vms/genid-2.htm

If you have further questions about using SAS 8.2 on Oregon, please send an email message to Joe St Sauver at joe@oregon.uoregon.edu


Winter 2002 Computing News | Computing Center Home Page