楼主: yangyi199183
1996 0

[问答] SAS Combine Quotes at the Same Price and Time into One [推广有奖]

  • 3关注
  • 1粉丝

已卖:1份资源

硕士生

78%

还不是VIP/贵宾

-

威望
0
论坛币
74 个
通用积分
2.4000
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
346 点
帖子
210
精华
0
在线时间
131 小时
注册时间
2010-3-24
最后登录
2025-2-27

楼主
yangyi199183 发表于 2013-6-17 21:00:23 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Hi guys,

I am a green hand in SAS. I just ask a basic question in SAS.

My superviser asked me to combine trades and quotes data at the same time and price into one.

I buy a book which is "Using SAS in Financial Research". I followed the code in 10.1 and I got the trades data, but for the quotes data, I tried it servaral times but I still could not get it as some errors exsiting. Would you please help me to check it.  The code and log I put blew:

Code:

LIBNAME ECLIB000 "C:\Users\Desktop\Data\Original";
/*Data Source: ECLIB000.gcc1_quotes */
proc sort data= ECLIB000.gcc1_quotes out=quotes;
by _RIC Date Time Type;
proc means data=quotes noprint;
by _RIC Date Time Type;
output out=adjquotes (rename=(_freq_=numquotes) drop=_type_)
sum(Bid_Size Ask_Size)=Bid_Size


LOG:
ERROR: Expecting page 2617, got page -1 instead.
ERROR: Page validation error while reading ECLIB000.GCC1_QUOTES.DATA.
ERROR: File ECLIB000.GCC1_QUOTES.DATA is damaged. I/O processing did not complete.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 332202 observations read from the data set ECLIB000.GCC1_QUOTES.
WARNING: The data set WORK.QUOTES may be incomplete. When this step was stopped there were 0 observations and 8 variables.
WARNING: Data set WORK.QUOTES was not replaced because this step was stopped.
NOTE: PROCEDURE SORT used (Total process time):
real time 0.03 seconds
cpu time 0.07 seconds

ERROR: Failure encountered before internal or external sort determination.
20 proc means data=quotes noprint;
21 by _RIC Date Time Type;
22 output out=adjquotes (rename=(_freq_=numquotes) drop=_type_)
23 sum(Bid_Size Ask_Size)=Bid_Size Ask_Size;
24
25



I appreciate for your help.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:combine quotes Price Quote time question quotes

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 06:33