BookmarkSubscribeRSS Feed
karar1472
Calcite | Level 5
 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 proc reg data=adnanlib.crime;
NOTE: Data file ADNANLIB.CRIME.DATA is in a format that is native to another host, or the file encoding does not match the session
encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce
performance.
57 model crime=pctmetro poverty single;
58 output out=crime1res(keep=crime pctmetro poverty single r lev cd diffit)
59 r=rstudent h=lev cd=cookd dffits=dffit;
_
22
76
NOTE: The previous statement has been deleted.
ERROR 22-322: Syntax error, expecting one of the following: COOKD, COVRATIO, DFFITS, H, L95, L95M, LCL, LCLM, OUT, P, PRED,
PREDICTED, PRESS, R, RESIDUAL, RSTUDENT, STDI, STDP, STDR, STUDENT, U95, U95M, UCL, UCLM.
ERROR 76-322: Syntax error, statement will be ignored.
60 run;
 
60 !
61
62 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
WARNING: Data set WORK.CRIME1RES was not replaced because new file is incomplete.
74
3 REPLIES 3
Norman21
Lapis Lazuli | Level 10

You can use PROC CONTENTS to view the file and see what is the problem. It might be best to "convert" the file in a DATA step to a SAS file.

 

See http://support.sas.com/documentation/cdl/en/movefile/59598/HTML/default/viewer.htm#a001003262.htm

 

Norman.

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

jakarman
Barite | Level 11

The foreign message is telling that the SAS dataset is converted to a native one while processing.
You are having either a binary copy of a different SAS system or some old SAS version.   
That one doesn't  hurt you now...

The error is telling you codes the proc reg  pacjage wrong. RE-check it very detailed and look where the underscore is pointing http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_reg_syntax01...
look at the output statement I cannot find it in the syntax the way you have coded

---->-- ja karman --<-----
Reeza
Super User
In Proc Reg, CD is not a valid option. Also, double check your KEEP statement, the last variable looks to be misspelled.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 3 replies
  • 660 views
  • 1 like
  • 4 in conversation