|
Home
Site Licenses
Computer Labs
UNIX Server
Direct Purchase Discounts
Statistical
Software
Instructional
Materials
What's
New
Current Releases
Patches
Downloads
Resources
Documentation
Consulting
Software Developers' Links
"Third Party" Learning and Data Resources
BCCUMA
Datasets
Workshops
Online Docs
|
Moving
Files from OITUNIX to Stats Server
You can no longer log on to OITUNIX. However can use scp or sftp on stats server to get files from OITUNIX until August 9, 2007. All file migration must be completed by August 9, 2007, when OITUNIX will be decommissioned.
Using scp to copy files
- Log on to stats server.
- to copy an entire directory (including all its subdierctories), type
scp -pr username@oitunix:directoryname .
where username is your oitunix username, and name is the name of the oitunix directory (or of a file) to copy to stats.
-p paramater preserves permissions and modification time
-r parameter (recursive) copies all subdirectires and their contents. Do not use this if you're copying a file.
- note the period (.) at the end of the command, indicating the file(s) are to be placed in the current directory. If you want the file(s) placed somewhere else, specify a suitable location. A directory with the same name as the oitunix directory will be created in the target location.
- if you copy everything on your oitunix account (i.e. specify dirctoryname /u/uhome/username), the files will be placed in a subdirectory called username. To move the directory structure back to the $HOME level, type:
mv username/* .
Using sftp to copy files
sftp can be used to copy all files in a directory, but does not copy subdirectories. To copy files using sftp:
- Log on to stats server.
- in the directory that you want to copy the files to, type:
sftp username@oitunix
cd directoryname
mget *
where username is your oitunix username, and directoryname is the name of the oitunix directory whose contents you wish to copy to stats.
This will copy all files in oitunix directoryname to the current location on stats. Repeat for each directory to be transferred to stats.
SAS datasets and formats catalogs
After copying your SAS datasets and formats catalogs to stats server, be sure to test them to check for any problems. You may see a message similar to this in the log:
NOTE: file is in a format native to another host or the file encoding does not match the session encoding. Cross
Environment Data Access will be used, which may require additional CPU resources and reduce performance.
If you get this message, use PROC CPORT/PROC CIMPORT to convert the data or format catalog. This can be done on stats server, but should be done before June 15, in case there is a need to make any changes from OITUNIX. For instructions on using PROC CPORT/PROC CIMPORT, see Transporting
SAS Libraries.
|