10000 GitHub - yosukei1979/SAS_Macros: SAS Macro library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yosukei1979/SAS_Macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

SAS_Macros

SAS Macro library

how to use

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");

Brief Description

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に変換して文字切れを防止する。

About

SAS Macro library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0