由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - where is error in SAS
相关主题
我的SAS CODE 错那儿了?急问SAS proc gplot,在线等
哪位能推荐一本SPSS的书,面试要问到SPSSPROC GLIMMIX可以提到server里run吗?
公司从SAS转到WPS,大家有懂WPS的吗?求助 SAS 一个error 老改不对
syntax errorsOne question about data step in sas
有什么sas log的viewer吗问道 SAS BASE 的 Sample Questions
a question regarding sas programming请教SAS中libname 的一个问题
about Q70 of sas basehelp with reading a strange csv file into SAS
Base 70 第35题怎么理解? 谢谢。SAS MACRO和Procedure
相关话题的讨论汇总
话题: error话题: sas话题: where话题: 322话题: syntax
进入Statistics版参与讨论
1 (共1页)
m*******g
发帖数: 3044
1
just run SAS, got error message:
ERROR 22-322: Syntax error, expecting one of the following: GROUP, HAVING,
ORDER, WHERE.
ERROR 76-322: Syntax error, statement will be ignored.
318
319 where
320 b.moend=ldf.monthend and
321 b.ay=ldf.ay;
322 quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
my code is :
proc sql;
create table sasuser.aggloss_mcr as
select
b.sumofpaid_, ldf.mcr, b.sumofpaid_/ldf.mcr as completedloss
from
sasuser.claims_m b
sasuser.ldf
where
b.moend=ldf.monthend and
b.ay=ldf.ay;
quit;
where is problem?
R*****g
发帖数: 99
2
这两个地方有嫌疑:
1.
sasuser.claims_m b
sasuser.ldf (改为 sasuser.ldf ldf ?)
2. select a/b as calculated c? 不太记得这个地方要不要用calculated了,很有可能跟别的什么搞混了。。。[确定了,这种情况是不需要的,即使需要也不是用在这里,是用在where语句]
不过好像这两个都不是跟错误信息提示的内容相关的。等cow人们来更正

【在 m*******g 的大作中提到】
: just run SAS, got error message:
: ERROR 22-322: Syntax error, expecting one of the following: GROUP, HAVING,
: ORDER, WHERE.
: ERROR 76-322: Syntax error, statement will be ignored.
: 318
: 319 where
: 320 b.moend=ldf.monthend and
: 321 b.ay=ldf.ay;
: 322 quit;
: NOTE: The SAS System stopped processing this step because of errors.

D******n
发帖数: 2836
3
as b
R*****g
发帖数: 99
4
as 可以省略的

【在 D******n 的大作中提到】
: as b
A*******s
发帖数: 3942
5
missing a comma between two table names

【在 m*******g 的大作中提到】
: just run SAS, got error message:
: ERROR 22-322: Syntax error, expecting one of the following: GROUP, HAVING,
: ORDER, WHERE.
: ERROR 76-322: Syntax error, statement will be ignored.
: 318
: 319 where
: 320 b.moend=ldf.monthend and
: 321 b.ay=ldf.ay;
: 322 quit;
: NOTE: The SAS System stopped processing this step because of errors.

R*****g
发帖数: 99
6
火眼金睛!
看来光看不练(偶几乎没用过sql)还是不行的,始终不扎实,叹!

【在 A*******s 的大作中提到】
: missing a comma between two table names
A*******s
发帖数: 3942
7
that's because i make such mistakes all the time, haha

【在 R*****g 的大作中提到】
: 火眼金睛!
: 看来光看不练(偶几乎没用过sql)还是不行的,始终不扎实,叹!

R*****g
发帖数: 99
8
haha ,印证了这句话(今早上刚摘录下来的):
"One must learn by doing the thing; for though you think you know it, you
have no certainty, until you try." --Sophocles

【在 A*******s 的大作中提到】
: that's because i make such mistakes all the time, haha
m*******g
发帖数: 3044
9
you are my hero

【在 A*******s 的大作中提到】
: missing a comma between two table names
m*******g
发帖数: 3044
10
you are my hero

【在 A*******s 的大作中提到】
: missing a comma between two table names
C*****O
发帖数: 82
11
Missing a comma is usually indicated by this kind of error message.
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS MACRO和Procedure有什么sas log的viewer吗
spss Syntax怎么用a question regarding sas programming
Re: SAS help : How to use Macro to select procedursabout Q70 of sas base
请教proc sqlBase 70 第35题怎么理解? 谢谢。
我的SAS CODE 错那儿了?急问SAS proc gplot,在线等
哪位能推荐一本SPSS的书,面试要问到SPSSPROC GLIMMIX可以提到server里run吗?
公司从SAS转到WPS,大家有懂WPS的吗?求助 SAS 一个error 老改不对
syntax errorsOne question about data step in sas
相关话题的讨论汇总
话题: error话题: sas话题: where话题: 322话题: syntax