Hi:
In addition to Vince's suggestions (to simplify your stored process as a means of debugging), I want to mention that many of these system options, specified at the top of your code are inappropriate for TAGSETS.EXCELXP output:
[pre]
options orientation=landscape leftmargin=0.5in rightmargin=0.5in
topmargin=0.5in bottommargin=0.5in ls=160 ps=50 mprint symbolgen;
[/pre]
Several of these system options are LISTING-destination only options, such as LINESIZE and PAGESIZE and other options, such as ORIENTATION, and the MARGIN options only work for "paged" destinations like RTF and PDF.
When you are using TAGSETS.EXCELXP for output generation, attributes like orientation and print settings are controlled by suboptions specified like this:
[pre]
ods tagsets.excelxp ...... style=sasweb
options(suboption-list);
an example of a suboption list would be:
ods tagsets.excelxp ...... style=sasweb
options(doc='Help' embedded_titles='Yes' orientation='landscape' zoom='150');
[/pre]
ExcelXP will not use LINESIZE and PAGESIZE and will not use the system option settings for print settings.
This user-group paper discusses more of the print-related sub-options used with TAGSETS.EXCELXP:
http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf
cynthia