This article appeared in the March/April 1994 issue of Benchmarks and is reprinted here mostly to make this issue on electronic data transfer truly comprehensive. The last paragraph, however, has been added since the article was first published.
The extensive availability of the Internet network and its speed in transferring files from one site to another makes it possible to send data files over the network. Raw data files can be sent easily without much preparation. System specific data files such as those that were created by SAS and SPSS require some preprocessing before they can be sent. This article will outline the steps that are required if you want to send those datasets through the Internet.
Since both SAS and SPSS system data files were created to be used only on the same operating system on which they were created, they are not useful on other systems. In order to move these datasets to another operating system, you will need to copy the data into a transport or export format. The export format data file contains instructions which are understood by all computer operating systems on how to create the attached data file into the system file for that particular operating system.
At UNT, SAS software is available for DOS, Windows, OS/2, UNIX, CMS, and the OS/MVS operating environments. The following programs show the SAS statements that will create an export data format.
Libname PORT SASV5XPT 'd:\filename.ext';*d:\filename.ext is a DOS filename
including Drive name and directory name;
Libname SASPCFIL 'd:\path';*d:\path is a drivename and directory name;
Proc Copy in=SASPCFIL out=PORT;
Select filename;*filename is a DOS filename which contains a
SAS dataset that you want to copy to export
format;
Libname PORT XPORT 'd:\filename.ext';*d:\filename.ext is a filename including Drive
name and directory name;
Libname SASPCFIL 'd:\path';*d:\path is a directory name;
Proc Copy in=SASPCFIL out=PORT;
Select filename;*filename is a DOS filename which contains
the SAS dataset that you want to copy to
export format;
//idnnSAS JOB (idnn,2,10,9999),'Your Name',PASSWORD=mvssp /*JOBPARM CARDS=99999 // EXEC SAS //PORTDDSYSOUT=B Libname SASFILE 'USER.idnn.xxxxxxxx' UNIT=SYSDA VOL=SER=ACADnn DISP=SHR; Libname PORT XPORT; Proc Copy in=SASFILE out=PORT; Select name Where: USER.idnn.xxxxxxxx is MVS Dataset name. ACADnn is a DASD volume name. name is a SAS member name.
After the job is done, you can copy the export file to your minidisk from the J2 Browse screen.
Libname PORT XPORT 'filename filetype filemode'; Libname SASFILE 'A'; Proc copy in=SASFILE out=PORT; select name;
Get file = 'd:\filename.ext'. Export outfile = 'd:\filename.ext'.*d:\path is a drive name and a directory name; Where:d:\filename.ext is a DOS filename including drive name and directory name.
//idnnSAS JOB (idnn,2,10,9999),'Your Name',PASSWORD=mvssp /*JOBPARM CARDS=99999 // EXEC SPSSX //SPSSFILEDDDSN=USER.idnn.xxxxxxxx,UNIT=SYSDA, VOL=SER=ACADnn,DISP=SHR //PORTDDSYSOUT=B Get file = SPSSFILE Export outfile = PORT Where:USER.idnn.xxxxxxxx is an MVS Dataset name. ACADnn is a DASD volume name.
Get file = 'filename filetype *'. Export outfile = 'filename filetype filemode'.
If you have problems or questions about this server, please contact us as soon as possible. You can send mail to the following address:
WWW@unt.edu