(SAS9.4M4からの新機能です)
HTMLとか触ったことある方ならピンときやすいですが、「HEADINGステートメント」で「見出し」を設定できます。
構文
| H1 "見出しにするテキスト"; |
- 「H1」~「H6」で見出しレベルを設定できます。
例
| proc odstext; h1 "食欲の秋"; p "栗"; p "柿"; p "さつまいも"; run; ![]() |
見出しって大切です。
何が大切かってのはまた今度紹介できたらと思います。
2. リストの入れ子
3. 見出しの設定| H1 "見出しにするテキスト"; |
| proc odstext; h1 "食欲の秋"; p "栗"; p "柿"; p "さつまいも"; run; ![]() |
| ods excel file='c:\test.xlsx'; proc report data=sashelp.class missing style( header ) = [ background=blue color=white ]; column sex name age height weight; define sex / order order=internal; compute weight; if age.sum > 12 then do; call define( "age.sum", "style", "style = [ color=red ]" ); call define( "name" , "style", "style = [ background=yellow ]" ); end; endcomp; run; ods excel close; ![]() |


| ods html file="c:\mysas\test.html"; proc print data=sashelp.class; run; ods html close; |
| ods html path="c:\mysas" file="test.html"; |
| ITEM; P "テキスト1"; P "テキスト2"; END; |
| proc odstext; list; item "アイス"; item; p "スイカ"; p "スイカは野菜"; end; end; run; ![]() |
| ITEM; P "項目"; LIST; ITEM "入れ子にする項目1"; ITEM "入れ子にする項目2"; ITEM "入れ子にする項目3"; END; END; |
| proc odstext; list; item "果物"; item; p "野菜"; list; item "きゅうり"; item "キャベツ"; end; end; end; run; ![]() |
| PROC ODSTEXT; P "出力するテキスト": RUN; |
| proc odstext; p "暑いですねー"; p "さて、夏といえば、なにを思いうかべる?"; run; |
| PROC ODSTEXT; LIST: ITEM "項目1"; ITEM "項目2"; ITEM "項目3"; END; RUN; |
| proc odstext; list; item "アイス"; item "スイカ"; item "クーラー"; end; run; ![]() |
data test;
x = '05feb2019'd; firstday = intnx( 'month', x, 0, 'beginning'); *月初を求める; lastday = intnx( 'month', x, 0, 'end'); *月末を求める; format x firstday lastday yymmdd10.; run; ![]() |
data test2; x = '2019-02-05T10:20:30'dt; firstday = intnx( 'dtmonth', x, 0, 'beginning'); *月初を求める; lastday = intnx( 'dtmonth', x, 0, 'end'); *月末を求める; format x firstday lastday e8601dt.; run; |