1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SASによるxptファイルとsasデータセットの変換

Last updated at Posted at 2020-06-11

xptファイルをSASデータセットに変換する
SASデータセットをxptファイルに変換する
SASのcopyプロシジャを使用

準備

libname SAS "SASデータセットのパス";
libname XPT xport "XPTファイルのパス\xptファイル名.xpt";

xptファイル名までをlibnameで指定していることに注意
また、xptには変数名の長さなど制限あり

sas→xpt

proc Copy in = SAS out = XPT memtype = data;
  select SASデータセット名;
run;

xpt→sas

proc Copy in = XPT out = SAS memtype = data;
  select xptファイル名;
run;

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?