简体   繁体   中英

Running the following SAS code and would like to change the proc freq

%_pd_prov_sched_future (
          _begin_date             = '01MAY2020'D
        , _end_date               = '31MAY2020'D
        , _fac_id                 = 
        , _parrs_clinic_cd        = 
        , _resource_id_schedule   =
        , _current_bkbl_nonbkbl_type =
        , _appt_avail_bkg            =
        , _add_bkd_appt_detail    = YES
        , _output_dataset         = _pd_prov_sched_future
        , _library                = work
                    ) ;
proc freq data=_pd_prov_sched_future;
    table PRIMARY_MNEMONIC_SCHEDULE*current_activity_cd*current_bkbl_nonbkbl_type/list;
run;

the proc freq looks like this[enter image description here] I'm wondering how I can change the frequency & percent to select categories opposed to having it be the total.

Might be that you want to use a BY statement.

proc freq data=_pd_prov_sched_future;
  by category;
  table 
    PRIMARY_MNEMONIC_SCHEDULE
    * current_activity_cd
      * current_bkbl_nonbkbl_type / list;
run;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM