SAS Macro library
After Clone in an appropriate directory, write the following option at the beginning of SAS code
OPTIONS MAUTOSOURCE SASAUTOS=(SASAUTOS "the path to the directory");
Name | Description |
---|---|
num2char | Convert a numeric variable to a character variable without changing the name. Multiple variables can be converted at the same time. |
char2num | Convert a character variable to a numeric variable without changing the name. Multiple variables can be converted at the same time. |
setDs | Combine multiple datasets vertically. If a character variable with a different length exists for the same variable name, it is converted to the maximum length to prevent data lost. |
適当なフォルダにClone後、SASコード冒頭に以下optionを書く
OPTIONS MAUTOSOURCE SASAUTOS=(SASAUTOS "the path to the directory");
名前 | 56D0 明 |
---|---|
num2char | 数値変数を、変数名を変えずに文字変数に変換する。複数の変数を同時に変換可能。 |
char2num | 文字変数を、変数名を変えずに数値変数に変換する。複数の変数を同時に変換可能。 |
setDs | 複数のデータセットを縦方向に結合する。同じ変数名でLengthが異なる文字変数が存在した場合は最長Lengthに変換して文字切れを防止する。 |