* The datasets in the diskette supplied with the 3rd ; * edition of the KKMN textbook can be "expanded" into ; * different formats. ; * One such format is the "sas transport file" format. ; * A sas transport file is a sas file in a format ; * that can be read by SAS on any platform ; * (e.g. Windows, Unix, Mac, etc...). ; * Suppose the transport file is called ; * ex0501.xpt ; * and that it is stored in a directory/folder called ; * C:\work\c678\ on a Windows computer ; * or ; * HD:work:c678 on a Macintosh computer ; * ===================================================== ; * Procedure for creating a "regular" permanent sas file ; * from a sas transport file ; * ===================================================== ; * I am not sure if this is the "best way, but it works! ; * In the SAS Editor window type the following 5 lines.... ; * Note: the semicolon at end of each statement matters!! ; * Note: the part between /* and */ is just a comment!! ; Libname path XPORT "C:\work\c678\" ; /* or mac equivalent */ Libname path2 "C:\work\c678\" ; /* or mac equivalent */ DATA path2.x0501; SET path.ex0501; /* SET is like "read from" */ RUN; * then "submit" or "run" these statements by clicking on the ; * icon of the person "running" ; * these statements should create a permanent sas file called ; ; * x0501.sd2 (Win) or x0501.ssd01 (Mac) ; * in the sub-directory or folder specified by path2 ; * (sas permanent files have a ".sd2" extension in Windows) ; * (sas permanent files have a ".ssd01" extension in Mac ) ; * Notice that I had to call the permanent file by a different ; * name i.e. x0501 rather than ex0501 (there may be other ways); * I can now call up a "regular" permanent sas file into ; * SAS INSIGHT after I have executed the above statements ; * from the SAS Editor Window ; * ========================================================== ; * To create a "temporary" sas file from a sas transport file ; ; * ========================================================== ; Same as above, but... * omit path to permanent file (not being created) ; * use a one part name in the DATA statement ; Libname path XPORT "C:\work\c678\" ; DATA x0501; SET path.ex0501; RUN; * this will create a temporary sas file called ; * WORK.x0501 ; * One can apply various sas PROCedures (eg REG, GLM, ...) ; * to this temporary dataset by typing statements into the ; * SAS Editor Window .... * e.g. ; * PROC REG; ; * MODEL Y = X; ; * RUN; ; * and "submitting" them. ; * OR... ; * The temporary dataset can be brought into INSIGHT, from ; * the "WORK" library ; * By the way... * Don't panic if when the data open into INSIGHt, the values ; * appear truncated. You can show decimals by highlighting ; * the variables, then going to Formats in the Edit menu, and ; * changing the number of decimal places displayed. ; * and while you are at it... rename the variables from Y and ; * X to their REAL names. just doubleclick on the name at the ; * top of each column and change it ; * It used to be that statisticians (mathematicians) liked to ; * save their fingernails, and give the shortest possible ; * names to variables. Now, with point and click, or cut and ; * paste, there is NO EXCUSE for such brevity. ; * Indeed, it is downright rude and inconsiderate to one's ; * readers! ; * jh 1999.05.27 ;