BookmarkSubscribeRSS Feed
AmitKB
Fluorite | Level 6

Hi all,

            I want to create excel worksheet having output from 4 different proc prints. Currently it is creating 4 different worksheet.

       I appreciate all your help.

Regards,

Amit

ods tagsets.excelxp file="Test.xls" 
                          path="XXXXX"
                          options(sheet_name='test' autofit_height='yes'
     orientation='landscape' ) style=default;
      
         proc print data=combo;
  run;

  proc print data=ModelCStat;
  run;

         proc print data=ModelCTable;
  run;

  proc print data=ModelResProfile;
  run;
   ods tagsets.excelxp close;

3 REPLIES 3
Reeza
Super User

RTM or website.

Try the sheet_interval option.

Cynthia_sas
Diamond | Level 26


And, in order to read the internal documentation, use the doc='Help' suboption, as shown below.

cynthia

           
ods tagsets.excelxp file="Test.xls"  style=default;

                    path="XXXXX"

                    options(doc='Help' sheet_name='test'

                            autofit_height='yes'

                            orientation='landscape' );

....more code here....

ods tagsets.excelxp close;

MichelleHomes
Meteorite | Level 14

As Reeza suggests, use the sheet_interval option...

ods tagsets.excelxp file="Test.xls"

                          path="XXXXX"

                          options(sheet_interval="none" sheet_name='test' autofit_height='yes'

     orientation='landscape' ) style=default;

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register 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
  • 3 replies
  • 1675 views
  • 0 likes
  • 4 in conversation