BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rjinks
Obsidian | Level 7

Hello,

I am trying to test a dataset for nomal distribution. I am novice to coding so, I do not quite understand what I am doing wrong. My coding is below. I would appreciate suggestion on correcting the code, so that I can get an output. Thanks in advance.

 

Data SsamPAHan;
Input Site $ Ace Anthra Benzoaa Benzoapy
Benzobflu Benzoghi Benzokfluo Chry
Dibenzo Fluoran Fluorene Indeno123
Phenan Pyr;
Datalines;
LC 0 0 0.024266667 0.015533333 0.02602 0.008633333 0.010333333 0.017233333 0 0.006366667 0.041333333 0.016933333 0.023333333 0.053833333
SK1 0.004966667 0.004966667 0.0078 0.005666667 0.008533333 0 0 0.0078 0 0 0.003566667 0.003566667 0.008593333 0.027133333
WR1 0.0042 0.0077 0.04 0.0175 0.02539 0.0063 0.0091 0.0224 0 0 0 0.0091 0.018216667 0.093156667
WR2 0 0 0.00595 0.00595 0.011833333 0.0042 0.00345 0.005326667 0.002176667 0 0 0.003733333 0.006066667 0.013743333
PI 0 0 0 0 0 0 0 0 0 0 0 0 0.006003333 0
;
Proc univariate normal;run;

 

Here are the notes that pop up from my coding. I am getting invalid datalines and I do not know how to correct this issue.

 

74 Input Site $ Ace Anthra Benzoaa Benzoapy
75 Benzobflu Benzoghi Benzokfluo Chry
76 Dibenzo Fluoran Fluorene Indeno123
77 Phenan Pyr;
78 Datalines;
 
NOTE: Invalid data for Ace in line 80 1-122.
NOTE: Invalid data for Anthra in line 81 1-65.
NOTE: Invalid data for Benzoghi in line 82 1-114.
NOTE: Invalid data for Benzokfluo in line 83 1-40.
NOTE: LOST CARD.
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
84 ;
NOTE: Invalid data errors for file CARDS occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
Site=LC000 Ace=. Anthra=. Benzoaa=0.0091 Benzoapy=0.018216667 Benzobflu=0.093156667 Benzoghi=. Benzokfluo=. Chry=. Dibenzo=.
Fluoran=. Fluorene=. Indeno123=. Phenan=. Pyr=. _ERROR_=1 _N_=1
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.SSAMPAHAN has 0 observations and 15 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
 
84 ;
85 Proc univariate normal;run;
 
NOTE: No observations in data set WORK.SSAMPAHAN.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 0.
1 ACCEPTED SOLUTION
2 REPLIES 2
rjinks
Obsidian | Level 7
Thank you. I went back and removed the tabs and replaced them with spaces. The output posted.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 788 views
  • 1 like
  • 2 in conversation