BookmarkSubscribeRSS Feed
AmitKB
Fluorite | Level 6
Hi,
I am trying to get the level counts for the variable market in code listed below. But SAS gives me error. My sas version is SAS 9.1 TS Level1M3.

Thanks in advance,

Amit

code:

rsubmit;
libname try ' library location ' ;
proc freq data=try.temp nlevels;
tables market;
run;
endrsubmit;


error:

ERROR 22-322: Syntax error, expecting one of the following: ;, (, COMPRESS,
DATA, FC, FORMCHAR, NOPRINT, ORDER, PAGE.
ERROR 200-322: The symbol is not recognized and will be ignored.
4 REPLIES 4
deleted_user
Not applicable
please post the log, from the line that says libname down to the error
AmitKB
Fluorite | Level 6
Here is the log from actual program



5 rsubmit;
NOTE: Remote submit to UNIXBOX commencing.
152 libname merbonus '/intl/iimis1/intl_mr/abothra/merchant/bonus';
NOTE: Libref MERBONUS was successfully assigned as follows:
Engine: V8
Physical Name: /intl/iimis1/intl_mr/abothra/merchant/bonus
153
154 proc freq data=merbonus.exceldata nlevels ;
------- -
22 200
ERROR 22-322: Syntax error, expecting one of the following: ;, (, COMPRESS,
DATA, FC, FORMCHAR, NOPRINT, ORDER, PAGE.
ERROR 200-322: The symbol is not recognized and will be ignored.
155 tables market /noprint ;
156 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE FREQ used:
real time 0.00 seconds
cpu time 0.00 seconds

NOTE: Remote submit to UNIXBOX complete.
darrylovia
Quartz | Level 8
I think your noprint is in the wrong place

try
proc freq data=merbonus.exceldata nlevels noprint;
tables market ;
run;

vs.


proc freq data=merbonus.exceldata nlevels ;
tables market /noprint;
run;
Cynthia_sas
SAS Super FREQ
Hi:

I notice that the libref MERBONUS was created with the V8 engine. Is it possible that you are still running SAS 8?

I know that NLEVELS works with SAS 9. I can't remember whether it was an available option in SAS 8 or not. Tech Support could answer that question for sure. I no longer have SAS 8 to test with.

cynthia

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1658 views
  • 0 likes
  • 4 in conversation