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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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