BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a large number of HTML tags and because of that it takes a long tim to load. I have tried to use the answer in FAQ (3628) and it worked out. But ! - the problem is that I want the message to show only when the first page i loaded. Every time I start another report the message appeared. I include parts of my program below.
T


replace body from document /
preimage="projpri2.jpg" prehtml='


Page loaded ...

'; Style Startupfunction from Startupfunction / tagattr="setTimeout('loadimages()',3000)";



ODS HTML PATH=&HTMLOUT (URL=NONE)
BODY="PRIBODY.HTML"
FRAME="PRIFRAME.HTML"
CONTENTS="PRICONTENT.HTML"
STYLESHEET='TEMP.CSS'
NEWFILE=PAGE
CODEBASE="HTTP://10.69.56.54/SASWEB/GRAPH/ACTIVEXGRAPH/SASGRAPH.EXE#VERSION=9,1,0,304"
CODE=(URL="HTTP://10.69.56.54/ODS_FILER/JAVA_HTML4/JAVASCRIPT_COLLAPSE.JS")


headtext=""
STYLE=SLLBLUE;
1 REPLY 1
Chevell_sas
SAS Employee
Give the below code a try. This applies a smaller version of this script using the HEADTEXT= option which the other example used, however this version does not require the use of the template. Using the HEADTEXT=, the string is limited to 256. If we need more than this based on the text that you want to display, we can add it to a tagset.

data one;
do i=1 to 5000;
output;
end;
run;

ods html file="temp.html"

headtext='

loading...please wait


';

proc print data=one;
run;

ods html close;

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
  • 1 reply
  • 2933 views
  • 0 likes
  • 2 in conversation