Learning SAS? Welcome to the exclusive online community for all SAS learners.

statistics-I course- Error running data set

Reply
New Contributor
Posts: 2

statistics-I course- Error running data set

Hello Everyone-

i am working on Statistics-I course , i have SAS-University edition installed on my laptop.i am unable to run a program and it gave me an error in the file Statdata.German. i have already defined the Statdata Library by running the setup.sas file. i was able to work with other data sets however this data set is not able to run.i have also attached the error log with this post.

Please advice .

Super User
Posts: 17,912

Re: statistics-I course- Error running data set

What section of the course requires this data set?

I double checked the code and it doesn't show a dataset called German.

EDIT:

It does show in my library, perhaps try recreating the dataset according to the instructions which are linked to on the page. Otherwise the code is below.

data statdata.German;

    input @1 ID 3. @5 Pre 6.2 @12 Retain 6.2 @19 Group $9. @29 Gender $6.;

    Change=Retain-Pre;

cards;

101  56.41  89.19 Treatment Male

103  66.67  86.49 Treatment Male

105  58.97  56.76 Treatment Male

107  79.49  62.16 Treatment Male

110  46.15  56.76 Treatment Male

112  58.97  59.46 Treatment Male

121  56.41  75.68 Treatment Male

104  71.79  81.08 Treatment Female

109  51.28  75.68 Treatment Female

115  71.79  81.08 Treatment Female

116  76.92  67.57 Treatment Female

118  58.97  91.89 Treatment Female

119  74.36  81.08 Treatment Female

120  53.85  81.08 Treatment Female

123  69.23  75.68 Treatment Female

302  66.67  81.08 Control   Male

303  82.05  86.49 Control   Male

306  71.79  86.49 Control   Male

308  71.79  70.27 Control   Male

312  53.85  70.27 Control   Male

316  84.62  78.38 Control   Male

320  58.97  78.38 Control   Male

322  30.77  40.54 Control   Male

304  71.79  86.49 Control   Female

307  74.36  81.08 Control   Female

309 100.00  94.59 Control   Female

313  79.49  81.08 Control   Female

317  79.49  81.08 Control   Female

;

run;

New Contributor
Posts: 2

Re: statistics-I course- Error running data set

Hello Reeza-

thank you very much for the reply , i tried your first solution i recreated  another practice folder and saved another 'setup.sas' file and fortunately the program ran without any issues. However i am still curious to know how did other data sets were still working except the "German "data set.

I am able to work now,thank you again for your help and i apologize for a late reply.

thank you,

mithilesh

Ask a Question
Discussion stats
  • 2 replies
  • 367 views
  • 0 likes
  • 2 in conversation