option(notab)

「option(notab)」の編集履歴(バックアップ)一覧はこちら

option(notab)」(2008/10/13 (月) 00:08:31) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

<DDEでのnotabオプションの使用例> 【問題】セルに複数の単語からなる文字列を格納する。 #highlight(sas){ option noxwait noxsync; /*新規Excel open*/ x 'start excel'; /*テストデータ*/ data test_d; length ver1 ver2 $12; ver1="test one"; ver2="test two"; output; run; } 例1)notabオプションを使用しない。 #highlight(sas){ filename test1 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test1; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help/?cmd=upload&act=open&page=%E5%8F%82%E7%85%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E4%B8%80%E8%A6%A7&file=dde1.JPG) ※notabオプションを指定しないと、1列目に[test]、2列目に[one]が出力される。 例2)notabオプションを使用する(1つのセルに格納)。 #highlight(sas){ filename test2 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test2 notab; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help/?cmd=upload&act=open&page=%E5%8F%82%E7%85%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E4%B8%80%E8%A6%A7&file=dde2.JPG) ※notabオプションを指定すると、複数の単語からなる文字列を1つのセルに格納できる。  1列目に[test one test two]が出力される。 例3)notabオプションを使用する(各変数ごとに格納)。 #highlight(sas){ filename test3 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test3 notab dlm="09"x; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help/?cmd=upload&act=open&page=%E5%8F%82%E7%85%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E4%B8%80%E8%A6%A7&file=dde3.JPG) ※notabオプションを指定して、各変数を別々のセルに格納したい場合、各変数間にタブを入力して 出力するため、dlmオプションで区切り文字を"09"xに指定する。 1列目に[test one]、2列目に[test two]が出力される。 参考)いろいろなプログラムの書き方 #highlight(sas){ filename test3 dde "excel|[book1]Sheet1!r4c1:r5c2" notab; /*(1)*/ data _null_; file test3 ; set test_d; put ver1 "09"x ver2; run; /*(2)*/ data _null_; file test3 ; ver1="test one"; ver2="test two"; put ver1 "09"x ver2; run;} #hr(height=1,color=#002bb8)
<DDEでのnotabオプションの使用例> 【問題】セルに複数の単語からなる文字列を格納する。 #highlight(sas){ option noxwait noxsync; /*新規Excel open*/ x 'start excel'; /*テストデータ*/ data test_d; length ver1 ver2 $12; ver1="test one"; ver2="test two"; output; run; } 例1)notabオプションを使用しない。 #highlight(sas){ filename test1 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test1; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help?cmd=upload&act=open&pageid=19&file=dde1.JPG) ※notabオプションを指定しないと、1列目に[test]、2列目に[one]が出力される。 例2)notabオプションを使用する(1つのセルに格納)。 #highlight(sas){ filename test2 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test2 notab; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help?cmd=upload&act=open&pageid=19&file=dde2.JPG) ※notabオプションを指定すると、複数の単語からなる文字列を1つのセルに格納できる。  1列目に[test one test two]が出力される。 例3)notabオプションを使用する(各変数ごとに格納)。 #highlight(sas){ filename test3 dde "excel|[book1]Sheet1!r4c1:r5c2"; data _null_; file test3 notab dlm="09"x; set test_d; put ver1 ver2; run;} #image(http://www39.atwiki.jp/sas_help?cmd=upload&act=open&pageid=19&file=dde3.JPG) ※notabオプションを指定して、各変数を別々のセルに格納したい場合、各変数間にタブを入力して 出力するため、dlmオプションで区切り文字を"09"xに指定する。 1列目に[test one]、2列目に[test two]が出力される。 参考)いろいろなプログラムの書き方 #highlight(sas){ filename test3 dde "excel|[book1]Sheet1!r4c1:r5c2" notab; /*(1)*/ data _null_; file test3 ; set test_d; put ver1 "09"x ver2; run; /*(2)*/ data _null_; file test3 ; ver1="test one"; ver2="test two"; put ver1 "09"x ver2; run;} #hr(height=1,color=#002bb8)

表示オプション

横に並べて表示:
変化行の前後のみ表示:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。