| Date: | Thu, 2 Jan 2003 12:44:09 +0100 |
| Reply-To: | WIELKI Andre <wielki@INED.FR> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | WIELKI Andre <wielki@INED.FR> |
| Subject: | Re: Proc Report and Call Define |
|
| In-Reply-To: | <12c948e3.0212312206.26973fb9@posting.google.com> |
| Content-Type: | text/plain; charset="us-ascii"; format=flowed |
|---|
chuck
I don't see another solution than this one
ODS LISTING CLOSE;
ODS HTML path="d:\ods\htm" FILE="anc.htm" anchor="divid" newfile=bygroup;
PROC REPORT DATA=SASHELP.SHOES NOWINDOWS;by region;
COLUMN REGION SUBSIDIARY SALES ;
DEFINE REGION / GROUP ;
DEFINE SUBSIDIARY / GROUP;
BREAK AFTER REGION / SUMMARIZE ;
RBREAK AFTER / SUPPRESS;
RUN;
ODS HTML CLOSE;
ODS LISTING;;
you have different files each with an anchor <A name=divid> <A
name=divid1> ... for each part of your output.
Perhaps has anybody else another solution in javascript?
HTH
Andre
At 22:06 31/12/2002 -0800, Chuck Enright wrote:
>I'm looking for suggestions on how to modify the html attribute tags
>used in table row definitions created using proc report. In the code
>below, I'm able to create my html tag before the value of region (see
>sas code). I would like to be able to place the tag before the html
>row tag (see html source).
>
>Thank you, Chuck
>
>/*** SAS CODE ***/
>ODS LISTING CLOSE;
>ODS HTML FILE="&htmlfile";
>PROC REPORT DATA=SASHELP.SHOES NOWINDOWS;
> COLUMN REGION SUBSIDIARY SALES ;
>
> DEFINE REGION / GROUP ;
> DEFINE SUBSIDIARY / GROUP;
>
> COMPUTE BEFORE REGION;
> DIV+1;
> ENDCOMP;
> COMPUTE REGION;
> CALL DEFINE(_COL_, "STYLE","STYLE=[PREHTML='<DIV
>ID="||LEFT(COMPRESS(PUT(DIV,8.)))||">']");
> ENDCOMP;
>
> BREAK AFTER REGION / SUMMARIZE ;
> RBREAK AFTER / SUPPRESS;
>RUN;
>ODS HTML CLOSE;
>ODS LISTING;
>
>/*** HTML SOURCE (current) ***/
><TR>
> <TD ALIGN=LEFT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000"><DIV ID=1>Africa</font></TD>
> <TD ALIGN=LEFT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000">Addis Ababa</font></TD>
> <TD ALIGN=RIGHT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000"> $467,429</font></TD>
></TR>
>
>/*** HTML SOURCE (desired) ***/
><DIV ID=1>
><TR>
> <TD ALIGN=LEFT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000">Africa</font></TD>
> <TD ALIGN=LEFT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000">Addis Ababa</font></TD>
> <TD ALIGN=RIGHT bgcolor="#FFFFFF"><font face="Verdana, Arial,
>Helvetica" size="2" color="#000000"> $467,429</font></TD>
></TR>
___________
WIELKI Andre
INED - Service Informatique
133 Bd Davout,
75 980 Paris Cedex 20
FRANCE
Tel: 01 56 06 21 54
|