Base言語

proc ds2ステートメント

https://documentation.sas.com/doc/ja/pgmsascdc/v_061/proc/n0ox2hnyx7twb2n13200g5hqqsmy.htm

do untilステートメント

条件が真になるまで、処理をループする。 https://documentation.sas.com/doc/ja/pgmsascdc/v_061/lestmtsref/p1021qt3a3n8m2n1vh11ggzhu57n.htm

E8601DZw.d 入力形式

yyyy-mm-ddThh:mm:ss+|–hh:mm.<fffff> または yyyy-mm-ddThh:mm:ss.<fffff>Z 形式の日時値を入力する。 https://documentation.sas.com/doc/ja/pgmsascdc/v_061/leforinforref/p14nbxgmr6gn7tn1ntmuulgawrih.htm

関連: E8601DZw. 出力形式 https://documentation.sas.com/doc/ja/pgmsascdc/v_061/leforinforref/n1nvxddoqjof57n1r6j02unvwm8o.htm

tzoneu2s関数

UTC日時値をSAS日時値へ変換する。 https://documentation.sas.com/doc/ja/pgmsascdc/v_061/lefunctionsref/n1ien0skr1u9swn1f00w7hizdg9c.htm

data work.test;
  input create_dt_utc $30.;
datalines;
2025-11-27T05:07:21.474Z
;
run;

data work.test_plus9h;
  attrib create_dt format=NLDATM.;
  set work.test;
  create_dt = tzoneu2s(input(create_dt_utc, e8601dz26.3), 'AZIA/TOKYO');
run;

DATETIMEw.d 出力形式

ddmmmyy:hh:mm:ss.ss 形式でSAS日時値を出力する。

https://documentation.sas.com/doc/ja/pgmsascdc/v_061/leforinforref/n0av4h8lmnktm4n1i33et4wyz5yy.htm

NLDATMw. 出力形式

現在のSASロケールに適した形式(ja環境では yyyy/mm/dd hh:mm:ss)で、形式でSAS日時値を出力する。

https://documentation.sas.com/doc/ja/pgmsascdc/v_061/leforinforref/n0sf71zwqc9ioln1er0qqrlmku7r.htm

where= データセットオプション

https://documentation.sas.com/doc/ja/pgmsascdc/v_061/ledsoptsref/p0ny9o8t8hc5zen1qn3ft9dhtsxx.htm