Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(qualify) 指定 UID 的情况下,默认显示例次的统计结果 #42

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/qualify/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ MISSING_POSITION = FIRST
>
> <sup>1</sup> 建议改用 `FREQ`, `FREQ_FMT`,保留 `N`, `N_FMT` 仅为兼容旧版本程序,未来的版本 (_v1.5+_) 可能不受支持;

其中,变量 `ITEM` 和 `VALUE` 默认输出到 `OUTDATA` 指定的数据集中,其余变量默认隐藏。
其中:

- 若指定参数 [UID](#uid) = `#NULL` 或 ` ` (空值),则默认输出变量 `ITEM` 和 `VALUE`
- 若指定参数 [UID](#uid) = _`variable`_,则默认输出变量 `ITEM`, `VALUE` 和 `TIMES_FMT`

**Default** : #AUTO

Expand Down
7 changes: 6 additions & 1 deletion gbk/qualify.sas
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,12 @@ Version Date: 2023-03-08 1.0.1
name = "ITEM";
quit;
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item value
%if &uid ^= #NULL %then %do;
keep = item times_fmt value
%end;
%else %do;
keep = item value
%end;
%end;
%else %do;
&dataset_options_out
Expand Down
7 changes: 6 additions & 1 deletion utf8/qualify.sas
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,12 @@ Version Date: 2023-03-08 1.0.1
name = "ITEM";
quit;
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item value
%if &uid ^= #NULL %then %do;
keep = item times_fmt value
%end;
%else %do;
keep = item value
%end;
%end;
%else %do;
&dataset_options_out
Expand Down