Skip to content

Commit

Permalink
feat(qualify) 指定 UID 的情况下,默认显示例次的统计结果 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 authored Jul 10, 2024
1 parent cb80733 commit 55d4d69
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
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

0 comments on commit 55d4d69

Please sign in to comment.