Skip to content

Commit

Permalink
fix(qualify_multi, qualify_multi_test) 指定 UID 时未输出例次结果 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 authored Jul 15, 2024
1 parent a497f92 commit 9893019
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 16 deletions.
20 changes: 16 additions & 4 deletions gbk/qualify_multi.sas
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Version Date: 2023-12-26 0.1
2024-04-25 0.7
2024-06-04 0.8
2024-06-13 0.9
2024-07-15 0.10
===================================
*/

Expand Down Expand Up @@ -390,12 +391,23 @@ Version Date: 2023-12-26 0.1

/*5. 输出数据集*/
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item %do i = 1 %to &group_level_n;
value_&i
keep = item %if &uid ^= #NULL %then %do;
%do i = 1 %to &group_level_n;
times_&i._fmt value_&i
%end;
%if &group_level_n > 1 %then %do;
times_sum_fmt value_sum
%end;
%end;
%if &group_level_n > 1 %then %do;
value_sum
%else %do;
%do i = 1 %to &group_level_n;
value_&i
%end;
%if &group_level_n > 1 %then %do;
value_sum
%end;
%end;

%end;
%else %do;
&dataset_options_out
Expand Down
19 changes: 15 additions & 4 deletions gbk/qualify_multi_test.sas
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Version Date: 2024-01-08 0.1
2024-06-03 0.7
2024-06-04 0.8
2024-06-13 0.9
2024-07-15 0.10
===================================
*/

Expand Down Expand Up @@ -356,11 +357,21 @@ Version Date: 2024-01-08 0.1

/*5. 输出数据集*/
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item %do i = 1 %to &group_level_n;
value_&i
keep = item %if &uid ^= #NULL %then %do;
%do i = 1 %to &group_level_n;
times_&i._fmt value_&i
%end;
%if &group_level_n > 1 %then %do;
times_sum_fmt value_sum
%end;
%end;
%if &group_level_n > 1 %then %do;
value_sum
%else %do;
%do i = 1 %to &group_level_n;
value_&i
%end;
%if &group_level_n > 1 %then %do;
value_sum
%end;
%end;
%end;
%else %do;
Expand Down
20 changes: 16 additions & 4 deletions utf8/qualify_multi.sas
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Version Date: 2023-12-26 0.1
2024-04-25 0.7
2024-06-04 0.8
2024-06-13 0.9
2024-07-15 0.10
===================================
*/

Expand Down Expand Up @@ -390,12 +391,23 @@ Version Date: 2023-12-26 0.1

/*5. 输出数据集*/
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item %do i = 1 %to &group_level_n;
value_&i
keep = item %if &uid ^= #NULL %then %do;
%do i = 1 %to &group_level_n;
times_&i._fmt value_&i
%end;
%if &group_level_n > 1 %then %do;
times_sum_fmt value_sum
%end;
%end;
%if &group_level_n > 1 %then %do;
value_sum
%else %do;
%do i = 1 %to &group_level_n;
value_&i
%end;
%if &group_level_n > 1 %then %do;
value_sum
%end;
%end;

%end;
%else %do;
&dataset_options_out
Expand Down
19 changes: 15 additions & 4 deletions utf8/qualify_multi_test.sas
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Version Date: 2024-01-08 0.1
2024-06-03 0.7
2024-06-04 0.8
2024-06-13 0.9
2024-07-15 0.10
===================================
*/

Expand Down Expand Up @@ -356,11 +357,21 @@ Version Date: 2024-01-08 0.1

/*5. 输出数据集*/
data &libname_out..&memname_out(%if %superq(dataset_options_out) = %bquote() %then %do;
keep = item %do i = 1 %to &group_level_n;
value_&i
keep = item %if &uid ^= #NULL %then %do;
%do i = 1 %to &group_level_n;
times_&i._fmt value_&i
%end;
%if &group_level_n > 1 %then %do;
times_sum_fmt value_sum
%end;
%end;
%if &group_level_n > 1 %then %do;
value_sum
%else %do;
%do i = 1 %to &group_level_n;
value_&i
%end;
%if &group_level_n > 1 %then %do;
value_sum
%end;
%end;
%end;
%else %do;
Expand Down

0 comments on commit 9893019

Please sign in to comment.