Hi all,
I tried to generate a report in sas mainframe by using sas proc report procedure and ods function while using to pdf its not working and I tried to print it in HTML so successfully it prints the output but it's not in the readible format so kindly help to find the solution for this issue below the code plz go through on the code
{
OPTIONS NONUMBER NODATE PAGENO=1 ORIENTATION=LANDSCAPE LS=164 PS=60;
ODS LISTING CLOSE;ODS NORESULTS;
ODS HTML FILE=OUTPDF;
DATA SASWORK.TRP;
INFILE INPPDF;
INPUT @1 H $CHAR1.
@3 HED $CHAR4.
@8 NUM 3.
@12 SEQNUM 3.
@16 BUSDT 8.
@25 COUNT 7.;
PUT _INFILE_;
RUN;
DATA SASWORK.FINAL;
SET SASWORK.TRP;
RUN;
PROC REPORT DATA=SASWORK.FINAL OUT=OUTPDF NOWD
NOHEADER
STYLE(COLUMN)={ASIS=ON};
TITLE ' ';
COLUMNS H SEQNUM COUNT;
DEFINE H / DISPLAY NOPRINT;
DEFINE SEQNUM / DISPLAY;
DEFINE COUNT / DISPLAY;
RUN;
ODS HTML CLOSE;
ODS LISTING;
}
and below the output plz look on it
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <!-- Ge
="shutdown()" vlink="#004488" link="#0066AA" leftmargin=8 bgcolor="#E0E0
<font face="Arial, Helvetica, Helv" size="3" color="#002288"><A NAME="I
> <TR> <TD ALIGN=CENTER bgcolor="#E0E0E0"><font face="Arial, Helvetica
<TABLE cellspacing=1 cellpadding=7 rules=GROUPS frame=BOX border=1 bgc
ont></PRE> </TD> <TD ALIGN=RIGHT bgcolor="#D3D3D3"><PRE> <font face="A
000000"> 0</font></PRE> </TD> <TD ALIGN=RIGHT bgcolor="#D3D3D3">
</font><SCRIPT LANGUAGE="JavaScript"> <!-- // This script is to load al
so kindly help on this issue
thanks & regards
Rohit Krishna
HI:
Here's a tip sheet for using ODS on the mainframe:
http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf
As I remember, the issue you're running into can be fixed by specifying the RS=NONE option on the ODS HTML statement.
Hope this helps,
Cynthia
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.