Lab 1: 316

   

Objectives:   1)   Getting on PCSAS

2)     Creating Data File in Program Editor

3)     Saving the PCSAS File to your Pin Drive

4)     Exit  PCSAS

5)     Retrieving your PCSAS file from your jump drive

 

I)      Getting on PCSAS.

         

               From the Program Manager— click  “Stat & Math Applications”.    Click SAS ICON

               (in blue box). You should find yourself in the SAS Program Editor.  This is

               where you create and modify files a data files.

 

II)    Creating a SAS File:

 

              Lets create a data file called Tall.sas.  Go to page 27 (Problem 1) of  the Spatz text.

              Please enter/type in the female and male  heights. Type “1” to denote a female

              (1=female, 2=male)  for the GENDER variable and the women’s height score

              (ex. 64)  for the TALLNESS variable.   Enter each women’s data on a separate line.

              In other   words, one line per women.  Repeat for the male scores.

        

             Example:

 

                                                 Variable 1                         Variable 2

                                                Column 1                          Column 3-4

                                                GENDER                         TALLNESS

ROW 1   person 1                      women                                  64                      {1 64}

ROW2    person 2                      women                                  67                      {1 67}

ROW3    person 3                      male                                      68                      {2 68}

 

 

III) Naming and Saving to your jumpdrive.

 

      PLEASE ENTER YOUR PIN DRIVE .

1.      Click File with mouse arrow (top, left hand corner)

2.      Click Save with mouse arrow

3.      Within rectangle (bottom  left corner, first line) under File Name type  {Tall.sas}

4.      Click Save In (upper left corner) with mouse arrow with mouse arrow and

       arrow down to a: and Click.   It should be saved to your Pin Drive. (Note light

        comes on during secular saving).

5.      Click close or X . 

 

IV) Exit for Program Editor/PCSAS

      

1.      Click File (top left corner) with mouse arrow.

2.      Click Exit SAS (bottom rectangle)  with mouse arrow.

 

V)   Retrieve File from your Pin Drive.

 

1.      Follow procedures in I (getting on SASPC).

2.      Click File (top left corner in Program Editor.

3.      Click Open (top of rectangle) with mouse arrow

4.      Click Look In (upper left) with mouse arrow.

5.      Click Drive that has data file.

6.      Click {tall.sas} a file in far left box and then click 0kay.

 

Please call me to see………

 

 

 

 

 

 

 

Heights for women and men

 

 

Women                               Men

64 67 63 65 66                   72 65 72 68 70
66 66 62 65 65                   69 73 71 69 67
60 72 64 61 65                   77 67 72 73 68
69 64 64 66 61                   68 64 72 69 69
65 67 65 62 69                   70 71 71 70 75
62 65 63 64 61                   72 68 62 68 74
66 64 59 63 65                   66 70 72 66 71
67 63 66 64 65                   69 71 68 73 69
66 67 62 62 63                   71 69 69 65 76
64 70 64 67 65                   71 73 65 70 70