Help using Base SAS procedures

dynamic proc print column headers

Reply
N/A
Posts: 0

dynamic proc print column headers

With proc statement option LABEL for proc print, variable labels are used as column headers. With this option, some algorithm for "saving pages" will split a label at blanks dynamically. This is similar to the proc statement option SPLIT= '{split char}' but allows proc print to choose whether to use a blank or not (why split a label when the column content is wide?).
Announced among changes and enhancements (I think at SAS9, but may have been SAS8) a change of case in a variable name would also be used to split a column header. Try this demo[pre]data ;
abcDef = '123' ;
label mydata2 = 'myData2';
mydata2 =1 ;
MYdata = 345 ;
mTest = 'b' ;
RealTestName = 'fg hjk' ;
run;

proc print ;
proc print label ;
run;[/pre]

Do you know where I might find this feature documented?

Is this ineffective outside the LISTING destination?
It had no effect in the tagsets.excelxp markup destination, but I can understand that.

hth
PeterC
Ask a Question
Discussion stats
  • 0 replies
  • 128 views
  • 0 likes
  • 1 in conversation