Example 39.11 Retrieving Monthly Group Time Series by INDNO= Option
This example shows how to retrieve monthly group time series by using the INDNO= option.
title 'Retrieve Monthly Group Time Series by INDNO';
libname _all_ clear;
libname crsp sasexccm
"\\tappan\crsp1\data201008_little\MIZ201006\"
setid=400
indno=1000357
itemlist="MTRETG.*;MUSDCNTG.*;MUSDVALG.*";
data mgindts_all ( where=( mcaldt >= '01apr2010'd) );
set crsp.mthgind_ts;
run;
proc contents data=mgindts_all; run;
proc print data=mgindts_all; run;
Output 39.11.1
Monthly Group Indices Time Series by INDNO
The CONTENTS Procedure
WORK.MGINDTS_ALL |
51 |
DATA |
6 |
V9 |
0 |
Wed, Feb 16, 2011 02:15:18 PM |
64 |
Wed, Feb 16, 2011 02:15:18 PM |
0 |
|
NO |
|
NO |
|
|
WINDOWS_32 |
|
wlatin1 Western (Windows) |
|
8192 |
1 |
1 |
127 |
51 |
0 |
C:\DOCUME~1\saskff\LOCALS~1\Temp\SAS Temporary Files\_TD236_VMW0296_\mgindts_all.sas7bdat |
9.0301B0 |
XP_PRO |
KEYSET_TAG |
Char |
24 |
6. |
6. |
KEYSET |
KYINDNO |
Num |
8 |
7. |
7. |
Indno |
MCALDT |
Num |
8 |
YYMMDDN8. |
YYMMDD8. |
Caldt |
MTRETG |
Num |
8 |
11.6 |
11.6 |
Tret |
MUSDCNTG |
Num |
8 |
8. |
8. |
Usdcnt |
MUSDVALG |
Num |
8 |
15.2 |
15.2 |
Usdval |
1000357 |
1 |
20100430 |
0.008174 |
175 |
8536273485.00 |
1000357 |
1 |
20100528 |
-0.080409 |
175 |
8591982134.00 |
1000357 |
1 |
20100630 |
-0.049665 |
175 |
7875937725.00 |
1000357 |
2 |
20100430 |
0.027565 |
185 |
1788689604.00 |
1000357 |
2 |
20100528 |
-0.075078 |
185 |
1840767431.00 |
1000357 |
2 |
20100630 |
-0.050972 |
185 |
1704852934.00 |
1000357 |
3 |
20100430 |
0.040804 |
190 |
932695901.00 |
1000357 |
3 |
20100528 |
-0.069991 |
188 |
969616974.00 |
1000357 |
3 |
20100630 |
-0.060083 |
187 |
895650676.00 |
1000357 |
4 |
20100430 |
0.037353 |
184 |
564387964.00 |
1000357 |
4 |
20100528 |
-0.079216 |
183 |
582823225.00 |
1000357 |
4 |
20100630 |
-0.070191 |
183 |
537053252.00 |
1000357 |
5 |
20100430 |
0.042394 |
227 |
478255773.00 |
1000357 |
5 |
20100528 |
-0.081422 |
228 |
500248663.00 |
1000357 |
5 |
20100630 |
-0.057584 |
227 |
457590748.00 |
1000357 |
6 |
20100430 |
0.057838 |
222 |
322738641.00 |
1000357 |
6 |
20100528 |
-0.078382 |
222 |
343700243.00 |
1000357 |
6 |
20100630 |
-0.081953 |
222 |
317307907.00 |
1000357 |
7 |
20100430 |
0.050365 |
292 |
287694406.00 |
1000357 |
7 |
20100528 |
-0.066656 |
291 |
301676691.00 |
1000357 |
7 |
20100630 |
-0.071452 |
292 |
283193837.00 |
1000357 |
8 |
20100430 |
0.065176 |
358 |
220136974.00 |
1000357 |
8 |
20100528 |
-0.075101 |
355 |
233544237.00 |
1000357 |
8 |
20100630 |
-0.071157 |
354 |
215763356.00 |
1000357 |
9 |
20100430 |
0.069557 |
514 |
180205516.00 |
1000357 |
9 |
20100528 |
-0.083660 |
514 |
193398849.00 |
1000357 |
9 |
20100630 |
-0.078070 |
520 |
180564497.00 |
1000357 |
10 |
20100430 |
0.096078 |
1374 |
134793898.00 |
1000357 |
10 |
20100528 |
-0.087666 |
1371 |
149100089.00 |
1000357 |
10 |
20100630 |
-0.079349 |
1368 |
137743847.00 |
1000357 |
11 |
20100430 |
0.011533 |
360 |
10324963089.00 |
1000357 |
11 |
20100528 |
-0.079468 |
360 |
10432749564.00 |
1000357 |
11 |
20100630 |
-0.049897 |
360 |
9580790659.00 |
1000357 |
12 |
20100430 |
0.040203 |
601 |
1975339638.00 |
1000357 |
12 |
20100528 |
-0.075396 |
599 |
2052688862.00 |
1000357 |
12 |
20100630 |
-0.062350 |
597 |
1890294676.00 |
1000357 |
13 |
20100430 |
0.057194 |
872 |
830570020.00 |
1000357 |
13 |
20100528 |
-0.073486 |
868 |
878921171.00 |
1000357 |
13 |
20100630 |
-0.075456 |
868 |
816265100.00 |
1000357 |
14 |
20100430 |
0.080906 |
1888 |
314999414.00 |
1000357 |
14 |
20100528 |
-0.085404 |
1885 |
342498939.00 |
1000357 |
14 |
20100630 |
-0.078624 |
1888 |
318308344.00 |
1000357 |
15 |
20100430 |
0.016137 |
961 |
12300302728.00 |
1000357 |
15 |
20100528 |
-0.078799 |
959 |
12485438427.00 |
1000357 |
15 |
20100630 |
-0.051949 |
957 |
11471085335.00 |
1000357 |
16 |
20100430 |
0.063714 |
2760 |
1145569435.00 |
1000357 |
16 |
20100528 |
-0.076828 |
2753 |
1221420110.00 |
1000357 |
16 |
20100630 |
-0.076345 |
2756 |
1134573445.00 |
1000357 |
17 |
20100430 |
0.020191 |
3721 |
13445872162.00 |
1000357 |
17 |
20100528 |
-0.078623 |
3712 |
13706858536.00 |
1000357 |
17 |
20100630 |
-0.054145 |
3713 |
12605658779.00 |
Copyright © SAS Institute Inc. All rights reserved.