Transferring VMS SAS/SPSS Data to UNIX Jeff Hayes Social Science Computing Co-op February 26, 1999.

Slides:



Advertisements
Similar presentations
Statistical Software Packages: How do I get this into that? Gillian Byrne Memorial University of Newfoundland Atlantic DLI Training - April 23, 2004.
Advertisements

1 Online communication: remote login and file transfer.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
Tutorial 5 Downloading and Storing Data. XP Objectives Learn what FTP is and how it works Explore how to use a Web browser to transfer files Navigate.
Its easy to be an information provider Tutorial: Web Publishing.
A+ Guide to Software, 4e Chapter 4 Supporting Windows 2000/XP Users and Their Data.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Good Data Management Practices Patty Glynn 10/31/05
RESEARCH HUB AT THE UNIVERSITY LIBRARIES PENN STATE UNIVERSITY TOUR OF STATISTICAL PACKAGES.
WinZip Basics Chris Comito Marybeth MacLean Jameelah Roberts Matt Smith.
Product Retrieval Statistics Canada / Statistique Canada Chuck Humphrey ACCOLEDS/DLI Training December, 2001.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit October 2014.
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Chapter Three Designing The File System. Chapter Objectives Describe the components of the NetWare file system Describe the purpose of each NetWare-created.
Chapter 2 IT Foundation Data: facts about objects Store data in computer: – binary data – bits – bytes Five types of data.
CIS 90 - Lesson 3 Mail Command. UNIX mail Benji sends message on Opus CIS 90 - Lesson 3 simmsben simmsmar Use. or Ctrl-D to end the.
Back to content Final Presentation Mr. Phay Sok Thea, class “2B”, group 3, Networking Topic: Mail Client “Outlook Express” *At the end of the presentation.
Offline Performance Monitoring for Linux Abhishek Shukla.
SLIR Computer Lab: Orientation and Training December 16, 1998.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Software.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Introduction to HTML Reporting with SAS Welcome to HTML reporting with SAS Sam Gordji, Weir 107.
Copyright © 2005, SAS Institute Inc. All rights reserved. Installing and Configuring the BI Platform on z/OS Tony Valmassoi Systems Developer z/OS Host.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
5 SYSTEM SOFTWARE CHAPTER
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
DB Zip Expert Portable database backup and export/import Copyright © SoftTree Technologies, Inc.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Module 5: Implementing Group Policy
Capabilities of Software. Object Linking & Embedding (OLE) OLE allows information to be shared between different programs For example, a spreadsheet created.
REDCap Overview Institute for Clinical and Translational Science Heath Davis Fred McClurg Brian Finley.
Introduction to Fortran Welcome to IT’s seminar on Fortran Sam Gordji, Weir 107.
1 Chapter 34 Internet Applications (Telnet, FTP).
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
Chapter 5 Common Internet Tools. How Gophers Work? Internet Gopher: Client software, to find Internet files and other resources easily Organize information.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Software AS Module Heathcote Ch.20. Importance of Information  Information technology is fundamental to the success of any business  The information.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
Data analysis Now I have data. What can I do with them? Old way: Export it to a text file, import it back to SAS, SPSS or some stat package Drawbacks:
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit November 2014.
Systems Software. Systems software Applications software such as word processing, spreadsheet or graphics packages Operating systems software to control.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit January 2008.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit April 2006.
Day11a FTP. File Transfer Protocol. –Used to move files from one machine to another. Windows -> Unix Unix -> Windows Unix -> Unix Windows -> Windows etc.
Copyright © 2003 by Prentice Hall 1 Computers: Tools for an Information Age Chapter 3 Operating Systems: Software in the Background BSM025 Computers.
Introduction to Operating Systems
FTP Lecture supp.
Things You Should Know + Usage Tips
Product Retrieval Statistics Canada / Statistique Canada Title page
Sergiy Radyakin The World Bank
Electronics II Physics 3620 / 6620
CSCI N207 Data Analysis Using Spreadsheet
CIS 155 Lecture 10, Farewell to UNIX
My Position: I am an Intern in the Psychology Industrial Internship Program. I am working in Connie Varnhagen’s Instructional Technologies Lab. The.
Stata Basic Course.
Internet Applications (Telnet, FTP)
STATEL an easy way to transfer data
Presentation transcript:

Transferring VMS SAS/SPSS Data to UNIX Jeff Hayes Social Science Computing Co-op February 26, 1999

Problem 4 SAS and SPSS data sets are stored in binary 4 Binary representations differ across operating systems (VMS and UNIX)

Don’t forget… 4 About your files on VMS tapes. Files stored as SAS or SPSS data sets on tape need to be transported 4 For SPSS, data sets need to be based on SPSS version 4 or later

Steps to transfer data 4 Exporting the data set(s) on VMS (Run some descriptives!) 4 FTPing the data to UNIX –SPSS portable files as ASCII –SAS transport files as binary 4 Importing the data set(s) on UNIX (Re-run the descriptives and check the data!)

UNIX disk allocations 4 Most users have only one account on UNIX –/home - limited to 100 MB. Intended for mail and program files –/aux - limit varies MB. (See consultant.) Intended to hold user data files –/temp/fivedays - limited by usage (disk is 4 GB)

Use compressed files on UNIX 4 Compressed files can greatly reduce the amount of disk space your files take up 4 SAS and SPSS can read compressed transportable files directly. See: –SSCC How to… #1 How to Write/Read UNIX Compressed SAS Data Sets Directly –SSCC Publication 7-7 Using SPSS on UNIX

Translation tools 4 SSCC has two utilities that can read the SPSS/SAS transportable files and write files for many different software packages, e.g. Stata, Limdep, and Excel. –Stat/Transfer (WinCenter, available to any PC in Social Science building) –DBMS/Copy (UNIX, X windows required for graphical interface)

SPSS: Exporting data 4 Use a GET command to identify the data set you wish to transfer 4 Use an EXPORT command to create the portable file. (Recommend.por extension) 4 Run descriptive statistics for verifying data transfer’s success

SPSS: FTP the data 4 Login to UNIX and get to the directory where you want the data to end up 4 Start FTP (ftp eagle) and login to Eagle 4 get staffdisk2:[ spss]gss7296.por gss7296.por 4 When completed, type “quit” to exit FTP

SPSS: Importing data 4 Use an IMPORT command to read the portable file on UNIX 4 If you wish, you can use a SAVE command to create a SPSS system file 4 Re-run the descriptive statistics to compare to results on VMS

SPSS: Conclusions 4 Consider keeping your data in a SPSS portable file. It’s easy to read in SPSS on UNIX or a PC. It can also be transferred to another package, such as Stata, using Stat/Transfer or DBMS/Copy 4 When transferring SPSS portable files, use FTP in ASCII mode (default between VMS and UNIX)

SAS: Exporting data I: Libnames 4 Use a LIBNAME statement with the xport engine and the cc=none option to identify the transport file to be created 4 libname moveout xport “staffdisk:[ sas]gss.xpt” cc=none;

SAS: Exporting data I: Libnames 4 Use a LIBNAME statement to identify the directory containing the SAS data set to be exported 4 libname movein “staffdisk2:[ sas]”;

SAS: Exporting data II: PROC COPY 4 Use PROC COPY to create a transport file from a SAS system file or library 4 proc copy in=movein out=moveout; select gss7296;

SAS: Exporting data II: PROC COPY 4 The SELECT subcommand copies only the file named to the transport file 4 Omitting the SELECT subcommand will create a transport file containing all of the SAS data sets in the specified directory. PLEASE DON’T. Such a file can be too large. Use SSCC How to… #7 How to Write a Macro to Transport SAS Data Sets from VMS to UNIX to transfer many files.

SAS: FTP the data 4 Login to UNIX and get to the directory where you want the data to end up 4 Start FTP (ftp eagle) and login to Eagle 4 Type binary to specify that the transport file will be transferred in binary mode  get staffdisk2:[ sas]gss7296.xpt gss7296.xpt 4 When completed, type “quit” to exit FTP

SAS: Importing data I: Libnames 4 Use a LIBNAME statement with the xport engine to identify the transport file to be read 4 libname moveout xport “/aux/j/jhayes/sas/gss7296.xpt”;

SAS: Importing data I: Libnames 4 Use a LIBNAME statement to identify the directory to save the imported SAS data set 4 libname movein “/aux/j/jhayes/sas”;

SAS: Importing data II: PROC COPY 4 Use PROC COPY to create a SAS system file or library from a transport file  proc copy in=moveout out=movein; select gss7296; 4 The SELECT subcommand must refer to the exact name specified in the PROC COPY/SELECT on VMS

SAS: Conclusions 4 FTP transport files in binary mode. (ASCII is the default between VMS and UNIX) 4 Consider keeping your data in a SAS transport file. They can be compressed and read directly by SAS. 4 SAS transport files can also be transferred to another package, such as Stata, using Stat/Transfer or DBMS/Copy

SAS: New developments 4 Starting with version 7, SAS data sets (referred to as “tables”) will be platform independent 4 Watch SSCNews for an announcement that version 7 is available on VMS and UNIX with new SSCC publications available

Clean-up and Back-up! 4 Get rid of out-of-date, unneeded files before you start this process 4 Please back-up intermediate (.por or.xpt) files or those you are not actively using to tape (4mm or 8mm) or CD and store them off-line

Compress! Compress! Compress!  > compress gss7296.por reduces disk space used from 1,603,962 to 443,545  > compress gss7296.xpt reduces disk space used from 5,648,960 to 565,812

Good luck! 4 Problems? Send log files to or stop by during office hours 4 Contact consultant early to request SSCC staff assistance in transferring all VMS files to UNIX.