Questions tagged [sas-ods]
SAS ODS is the Output Delivery System for the SAS language, the method by which various formats of output (PDF, HTML, RTF, etc.) are usually produced in SAS.
88
questions
0
votes
0
answers
18
views
SAS ods html output getting black box instead of plots
I'm attempting to generate plots using PROC SGRENDER within a for loop. Upon running the code in Job execution, I encounter black boxes instead of plots. When I copy the link from Job submission into ...
1
vote
0
answers
17
views
Сan I create a sub-group for headers that will not create a new line from above but occupy part of the grouped headers instead?
To better explain what I need, I added a picture. I want to get option 1 instead of option 2 which is usually created with column var1 ("Title for both vars" var 2 var 3) var4
The only thing ...
0
votes
1
answer
128
views
How to color proc report variable label with multiple colors in one cell using define statement?
I am trying to output SAS DS with multiple columns into excel and want to show two columns' name/label with two different colors. Please see the expected example output below:
So I need both black ...
1
vote
0
answers
74
views
Graph output on a remote server
I am trying to create a series of graphs on a remote server using Base SAS.
SAS appears quite happy to produce graphs in a local session (Windows). This appears to be routed through the ODS HTML ...
0
votes
1
answer
88
views
link color clashes with background using MAGNIFY ODS style
I recently switched from the HTML destination to HTML5 so I would get SVG graphics in a job, and everything looks lovely, except my table-of-contents links, which now have bad contrast against the ...
0
votes
0
answers
93
views
Order ODS Output by Variable Not in Graph
I am using ODS to output an rtf file with graphs for each warehouse, using the warehouse ID as the by value. I need to organize the graphs in ascending order of rejected products per 100 produced. I ...
0
votes
2
answers
3k
views
SAS ODS RTF - Best option to embed Title/Footnote into Table
Looking for advice to embed title/footnote as part of the table (see below - making it easier to copy & paste into the different document)
Options explored so far
1) PROC REPORT - COMPUTE PAGE ...
2
votes
1
answer
738
views
ods excel and proc template
I am running into an error when trying to use ods excel after defining a style named excel via ods template. I was wondering if anyone could explain why this is happening as I thought ods styles and ...
0
votes
1
answer
1k
views
SAS Proc Report page break for columns
I'm hoping someone would be able to help me with this problem. I am trying to make a report using proc report with ods pdf. The problem is when I use the page option with the intention of displaying ...
1
vote
2
answers
467
views
How to insert the #byval value in the png filename when using sgplot with a by statement in SAS
I'm making several png image using sgplot and the by statement like this:
ods html path="&graphPath" body="index.html"
image_dpi=300 style=sciensano1 device=png;
ods graphics on / reset ...
0
votes
1
answer
570
views
ODS Tagsets RTF
I am trying to make underscores (_) appear in my output while using ODS Tagsets but for some unknown reasons it's not appearing as expected. I'm using SAS 9.4.
It appears with Bodytitle and ...
1
vote
1
answer
1k
views
SAS regression result output to excel in one sheet
I want to output my SAS regression result into excel.
The code is:
proc import datafile = 'cmds.csv'
out = Work.cmds
dbms = CSV;
run;
ODS TAGSETS.EXCELXP
file="dt.xls";
STYLE = STATISTICAL;
...
-1
votes
1
answer
130
views
Create SAS table header flexibly
I want to create a table head for a table, replacing the orignal table head.
The table head contains two rows:
head1 = !!!SS!FAS!PPS!
head2 = !Index!!(N=30)!(N=30)!(N=30)!
Here the ! meaning ...
1
vote
0
answers
476
views
In SAS, how to define table cell padding for tables with template styles using ODS tagsets.sasreport13?
I'm trying to define my template styles and I cannot increase the table cells padding when output is "ODS tagsets.sasreport13".
style Table /
cellpadding = 50pt /* ONLY EFFECT ...
0
votes
0
answers
117
views
ODS PACKAGE publish email does not send emails
SAS EG / SAS 9.4
I am currently using ODS package to zip a few files and then send them over to recipients using filename email.
I recently came through the ODS user guide (see EMAIL PROPERTIES) ...
1
vote
1
answer
613
views
Display an empty table with ODS Tagsets.ExcelXP
I have this code to write a report in an Excel file, using ODS Tagsets.ExcelXP. When the dataset "revenus" is not empty, the report is displayed in the Excel sheet. But, when the dataset "revenus" is ...
1
vote
1
answer
2k
views
SAS adding white space between the bottom of a graph and the footnote
I hope you can help. I would like to reduce the amount of white space that SAS adds between the bottom of a graph and the footnote. I'm generating graphs into .pdf files that need to meet certain ...
1
vote
1
answer
270
views
SAS ODS Query/Statement print along with it's output
SAS EG
Is there any way I can print the query/statement used to get the output, along with the output, using SAS ODS?
Suppose,
ods pdf file=pdfile;
proc sql;
select a.*
from tab1 a inner join tab2 ...
0
votes
2
answers
622
views
SAS Ods Output for Anova
I created an Anova and want to save the mean, standard deviation, F-statistics and the p-Value in a new data set.
This is my current code:
ODS OUTPUT means=anova;
PROC ANOVA DATA= multiple_sclerosis;
...
1
vote
1
answer
266
views
How can I insert a transparent image using ODS PDF
I'm trying to insert an image that has a transparent background into a PDF document using ODS. When I check the created PDF file, the image is using a white background. My code looks like this:
ods ...
0
votes
1
answer
107
views
SAS Management Console - The file is empty and can not be sent
I've scheduled some sas code using SAS Management Console.
However the job ends with an error: The file is empty and can not be sent.
The code which exports proc freqs to a file is as follows:
%...
1
vote
1
answer
389
views
SAS - how to stop results tab opening in sas using code.
I have the below code:
ods _all_ close;
ods csv file="filename.csv"
%macro mac_name (st, en=);
%do j=1 %to &en.;
%let k=%eval(&j.+1);
proc freq data=data_name;
tables ...
1
vote
1
answer
549
views
SAS-How to NOPRINT in ODS CSV
I have some sas code:
ods csv file="filename.csv"
%macro mac_name (st, en=);
%do j=1 %to &en.;
%let k=%eval(&j.+1);
proc freq data=data_name;
tables status&j. * status&...
1
vote
1
answer
130
views
Is it possible to add a class to a <tr> table row in SAS Proc Report with a compute statement?
I have an ODS HTML table made with Proc Report where I need to add an HTML class attribute to a table row <tr>, and not each individual <td> cell in that row. The reason is that this is ...
1
vote
1
answer
164
views
Hide 'by' group titles in ODS output
I'm trying to hide the titles for each by group in my ODS output. Code:
ods noproctitle;
ods html ;
proc sort data=sashelp.class out=class;
by sex;
run;
proc freq data=class;
by sex;
tables ...
1
vote
2
answers
987
views
Showing markers on a series chart using the GTL
I'm trying to get markers to show up on my chart using the Graphics Template Language. I've tried adding the marker definitions to the style, to the seriesplot statement within a markerattrs= option ...
0
votes
1
answer
842
views
Data Validation Lists in SAS ODS tagsets.excelxp / proc report / proc template
Am hoping that someone might point me in the right direction.
I am creating a spreadsheet using some elements of proc template and outputting it with a proc report within an ods tagsets.excelxp. This ...
0
votes
1
answer
2k
views
How can I adjust the size of an imported PNG file in SAS RTF output?
The response to the question Is it possible to import a PNG file into SAS to include in RTF output? gave a way to use an external PNG file in SAS ODS RTF output. In order for the provided solution to ...
0
votes
0
answers
206
views
Export Graph in BMP format in SAS
Currently I'm trying to export a SAS graph to a .bmp image format. I achieved a .bmp file but it is unreadeable.
ods HTML body="C:\Users\example.bmp";
proc gchart DATA=WORK.TABLE;
VBAR ...
0
votes
0
answers
59
views
SAS ODS. Set rute for export
Currently I'm trying to export a Graph with ODS in a SAS guide enviroment. The problem is that we try to export the file on a rute, SAS introduces on the rute the pre-name /sas/config1/Lev1/SASApp/. ...
1
vote
1
answer
924
views
ODS PDF - Two columns of output interrupted by one column of output on a single page
I'm trying to create an output for a requestor that wants me to take a preexisting report that comes in two columns on a single page and break it apart on that single page into different subsections, ...
1
vote
1
answer
3k
views
Exporting from SAS Enterprise Guide to multiple tabs in Excel (.xlsx)
I am trying to export output from SAS Enterprise Guide to Microsoft Excel 2010 (.xlsx), outputting both multiple tables per sheet, and several sheets per workbook. I want to have several proc sql ...
1
vote
0
answers
273
views
stretched image with proc gslide (with correct dimension values)
I need to create an image contains two plots.
What I am doing is outputting both them into a folder on my pc as a gif file.
The first one is like a screen of a proc report using ods=printer dpi=300
...
1
vote
1
answer
510
views
SAS sgplot: not the correct markers for the different groups
In SAS, when I use the following code, my rtf file shows everything like I want it to be. But in 'Results - Sas Report' every marker is a circle (although they are all different colors). How can I ...
0
votes
1
answer
952
views
Limiting number of observations in SAS ODS output
I'm trying to limit the number of observations included in ODS output table.
My attempt is pretty basic:
OPTIONS NODATE number pageno=1 rightmargin=0.25in leftmargin=0.25in topmargin=0.4in ...
2
votes
1
answer
323
views
How can I create SAS html files with names corresponding to a dataset field
I'm trying to create a file for each record in my SAS dataset. I have been able to succesfully do this using SAS ODS output by using the "newfile=page" option and then simply running a proc report on ...
2
votes
1
answer
3k
views
Is it possible to import a PNG file into SAS to include in RTF output?
I have PNG files that were created outside of SAS that I would like to include in an RTF file that I will output from SAS using ODS. Is it possible to use SAS to do this? My internet searches are ...
1
vote
1
answer
684
views
Variable value as title in sas ods
I have dataset in which a variable is having the value as below
Diagosis 780.7 804.7 101.7
Through ods and proc report I want this value as title of the sheet like below:
Diagnosis
* 780.7
* ...
1
vote
1
answer
367
views
Why does SAS ask me to save my excel file on every run?
I am using SAS ODS statement to create excel files in a program like so:
ods listing close;
ods tagsets.excelxp file='filters.xls' style=statistical
options(autofilter='2-7' frozen_headers = '3' ...
3
votes
1
answer
955
views
Update Excel output using ODS?
I am running a macro program to analyze a data set. In the end of my macro, i used a ODS statement and a proc Report to export my results. What i want is: For each time i run the macro program with a ...
1
vote
0
answers
262
views
Formatting conflicts: Proc format and Call define - proc report
I have a sample code like this:
**Variable Condition**
1 Stable
2 Unstable
3 Unstable
4 Stable
5 Stable
6 Stable
Average Unstable
I'...
1
vote
0
answers
152
views
Stack multiple cells of excel using ODS - SAS
For example, I have a table like this:
A N
A Mean
A Min
A Max
I'm using ODS tagsets.excelXP to export this data to Excel. In Excel, i don't want my first column to repeat "A" 4 ...
0
votes
1
answer
186
views
Which one is default ODS destination in SAS - Listing or HTML?
Which one is default ODS destination in SAS - Listing or HTML?
In SAS BASE Prep book, it says Listing but in Step by Step SAS programming it says HTML.
3
votes
2
answers
1k
views
SAS using CSSSTYLE and Email functionality together
I am not able to apply my CSS styles to an email which I am sending it as a html format. If I save the ODS output to a local file, I am able to apply my CSS styles.
Could someone help me on how to ...
0
votes
3
answers
469
views
SAS- Defining Page Breaks inside Macro
I am wondering if there is a way of defining when and where page breaks occur when using a macro to output data. I know within the various ODS tagests the "Startpage=NOW" can be used but that does ...
2
votes
1
answer
1k
views
SAS ods html generates additional html code
I use ods html to output HTML code from SAS to body=_webout. SAS version is 9.4.
I would like to output a HTML table, but SAS generates automatically an additional table around the output of each ods ...
0
votes
0
answers
59
views
ODS tagsets.msoddice2k_x ".xls". Exporting number as string
My problem Is related with exporting a table from sas using ODS. Well, when exporting my table the data its a number declared as a string (Example 0001, 0003). When exporting this table, in my exell ...
2
votes
1
answer
689
views
SAS-Dynamically Writing Bar Charts to Excel workbook in SAS Macro
I am trying to dynamically generate and export bar charts to and an excel workbook. My Macro pulls certain distinct Identifier codes and creates two summary tables (prov_&x table and the ...
1
vote
0
answers
260
views
Create a excel report from a SAS table.
Hello and thanks for your time,
Im trying to make a excel report from a SAS table.
I need to place different tables on the same report sheet. ¿Its is possible to choose the lines and colums where ...
1
vote
2
answers
2k
views
sas options orientation=Landscape has to run twice
Using ODS pdf I want to switch the orientation of my pdf to landscape.
Unfortunately by using the options orientation=LANDSCAPE function, I have to run my code twice. After the first run the pdf is ...