Как транспонировать вывод отчета sas proc - PullRequest
0 голосов
/ 08 апреля 2019

Я создал отчет (proc report), и все попытки (после посещения университета google) транспонировать мои данные с треском провалились.

proc report data=dataset1;
where cluster_id=1;
column ORGANISATION_CODE 
   ORGANISATION_NAME 
   ORG_TYPE
   org_type_name 
   CLUSTER_ID 
   CLUSTER_NAME 
   CLUSTER_TYPE 
   CountOFD
   CountOFC;
  define ORGANISATION_CODE / display 'Organisation Code' CENTER
  style(column)={width=1.5in} ;
     define ORGANISATION_NAME  / display 'Organisation Name' lEFT
    style(column)={width=1.5in} ;
     define org_type_name  /display 'Organisation Type' CENTER
style(column)={width=1.5in} ;
     define  org_type_name /display 'Organisation Type Name' CENTER
style(column)={width=1.5in} ;
     define CLUSTER_TYPE / display 'Cluster Type' CENTER
style(column)={width=1.5in} ;
      define CLUSTER_NAME / display 'Cluster Name' CENTER
style(column)={width=1.5in} ;
       define CLUSTER_ID / display 'Cluster ID' CENTER
style(column)={width=1.5in} ;
        define CountOFD / display 'CountOFD' CENTER
style(column)={width=1.5in} ;
        define CountOFC / display 'CountOFD' CENTER
style(column)={width=1.5in} ;       
run;
ods html close;

1 Ответ

0 голосов
/ 09 апреля 2019

Я согласен с Джо, мне нужно больше информации.

Пробовали ли вы опцию по в операторе define вместе со наложением столбцов в операторе column ? Смотри http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1pl56sdqo09cyn1fifuhcz8dl2f.htm

Если это не сработает, см. ПРОЦЕСС ТРАНСПОЗИЦИИ.

...