SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
Daily1
Quartz | Level 8
proc template; 
 define tagset tagsets.test; 
 parent=tagsets.phtml; 
 define event doc; 
 start: 
 put HTMLDOCTYPE NL NL NL; 
 put '<html xmlns:o="urn:schemas-microsoft-com:office:office"' NL; 
 put 'xmlns:x="urn:schemas-microsoft-com:office:excel"' NL; 
 put 'xmlns="http://www.w3.org/TR/REC-html40">' NL; 
 
 finish: 
 put "</html>" NL; 
 end; 
 
 define event doc_head; 
 start: 
 put "<head>" NL; 
 put VALUE NL; 
 put "<style>" NL "<!--" NL; 
 trigger alignstyle; 
 put "-->" NL "</style>" NL; 
 finish: 
 
 put " <!--[if gte mso 9]><xml>" NL; 
 put " <x:ExcelWorkbook>" NL; 
 put " <x:ExcelWorksheets>" NL; 
 put " <x:ExcelWorksheet>" NL; 
 put " <x:Name>Sheet1</x:Name>" NL; 
 put " <x:WorksheetOptions>" NL; 
 put " <x:Zoom>100</x:Zoom>" NL; 
 put " <x:Selected/>" NL; 
 put " <x:Panes>" NL; 
 put " <x:Pane>" NL; 
 put " <x:Number>3</x:Number>" NL; 
 put " <x:ActiveCol>1</x:ActiveCol>" NL; 
 put " </x:Pane>" NL; 
 put " </x:Panes>" NL; 
 put " <x:ProtectContents>False</x:ProtectContents>" NL; 
 put " <x:ProtectObjects>False</x:ProtectObjects>" NL; 
 put " <x:ProtectScenarios>False</x:ProtectScenarios>" NL; 
 put " </x:WorksheetOptions>" NL; 
 put " </x:ExcelWorksheet> " NL; 
 put " <x:WindowHeight>8070</x:WindowHeight> " NL; 
 put " <x:WindowWidth>10380</x:WindowWidth> " NL; 
 put " <x:WindowTopX>480</x:WindowTopX> " NL; 
 put " <x:WindowTopY>120</x:WindowTopY> " NL; 
 put " <x:ProtectStructure>False</x:ProtectStructure> " NL; 
 put " <x:ProtectWindows>False</x:ProtectWindows>" NL; 
 put " </x:ExcelWorkbook>" NL; 
 put " </xml><![endif]--> " NL; 
 put "</head>" NL; 
 end; 
 end; 
run; 
title j=left "Title1" j=right "Title 2";
ods markup file="report.html" tagset=tagsets.test    ;
proc report data=sashelp.class nowd   ;

run;
ods markup close;

title j=left "Title1" j=right "Title 2"; 

 

Daily1_0-1710493412955.png

I want two titles on one line, with 'Title 1' aligned to the left and 'Title 2' aligned to the right.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 523 views
  • 0 likes
  • 1 in conversation