BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

I can explain the change in label in the TOC for proclabel using : https://documentation.sas.com/doc/en/pgmsascdc/v_010/odsug/p1oavvfpbhmsw0n1u2dj5fz9ur9m.htm

But I'm not sure how to explain it for the contents= option of the proc report statement as I cannot see "Report" in the proc document output. Is there some documentation about this?

 

*options label;
options nolabel;

data class;
    set sashelp.class;
    retain xxtable 1 ;
run;

ods pdf file ="&xxtest./reporting/ods_test.pdf";

proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
   
ods proclabel 'Procedure';

proc report data=class contents='Category';
    column xxtable sex--weight;
    define xxtable     / order noprint;
    define sex--weight / display;
    
    break before xxtable / contents = 'Table' page;
run;

ods pdf close;

TOC when label global option is used.

toc_label.JPG

TOC when nolabel global option is used.

toc_nolabel.JPG

 

 

 

ods document name=xxtest(write); 
    
proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
    
ods document close; 
 
proc document name=xxtest;    
    list/levels=all  details;
run;

proc_document_list.JPG

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 955 views
  • 0 likes
  • 1 in conversation