[last updated - 04 August 2003]
If you are lucky with your Unix environment then SAS datasets appear as icons on your screen and if you double click on one of the icons then fsview gets launched so you can browse the SAS dataset. If you are not lucky then you do not have this facility. But it is easy to create a script to do this. Copy and paste the following into your script library and give it the name fsv.
#!/bin/sh # Script : fsv # Version : 1.0 # Author : Roland Rashleigh-Berry # Date : 04 Aug 2003 # Contact : roland@rashleigh-berry.fsnet.co.uk # Purpose : To launch fsview to browse a SAS dataset # SubScripts : none # Notes : Make the data directory the current directory. When fsview is # invoked it will go into command line mode and will attempt to # make "subject" the id variable. Change this to match your site # standard. Task is run in background so you can open multiple SAS # datasets by relaunching the command. # Usage : fsv demog # #================================================================================ # PARAMETERS: #-pos- -------------------------------description-------------------------------- # 1 Name of SAS dataset #================================================================================ # AMENDMENT HISTORY: # init --date-- mod-id ----------------------description------------------------- # #================================================================================ # This is public domain software. No guarantee as to suitability or accuracy is # given or implied. User uses this code entirely at their own risk. #================================================================================ if [ $# -lt 1 ] ; then echo "Usage: fsv SAS-dataset" 1>&2 exit 1 fi sas -noautoexec -sasuser work -nofmterr \ -initstmt "libname here './'" \ -initcmd "fsview here.$1;command;show id subject" &
Go back to the home page.
E-mail the macro and web site author.