BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
I have a data _null in an stp like this:

data _null_;
file _webout;
length string $1024;

string =

' click Graph';
put string;
run;
I am trying to make this string on the bottom, however it always goes to the top of the page.
Any help?
Thanks
jp
5 REPLIES 5
Vince_SAS
Rhodochrosite | Level 12
What other code do you have in the stored process?

Vince DelGobbo
SAS R&D
jplarios
Quartz | Level 8
Vince,

Well, I guess it helps to give a 'complete' picture.
the null data step actually is called upon by a macro:

%start

data _null_;
file _webout;
..etc.
put string;
run;
%end
Vince_SAS
Rhodochrosite | Level 12
Besides what is written by the DATA Step, is there any other HTML text on the page?

Vince DelGobbo
SAS R&D
Cynthia_sas
SAS Super FREQ
Hi:
I remember that, when working with stored processes and the Platform with SAS 9.1.3, there was a "timing" issue with PUT statements using _webout. I'm not sure whether there's still an issue with SAS 9.2,

There are some of the the notes that discuss _webout and stored processes:
http://support.sas.com/kb/23/970.html (why output is out of sequence)
http://support.sas.com/kb/13/599.html

cynthia
jplarios
Quartz | Level 8
Yes, there was other HTML on the page which were some parameters. I wanted to have the put string on the bottom of the parameters once the last parameter was updated.

I changed the code to output a different page with the output.

Thanks Cynthia for the notes. I did not know about the put timing issue, so I changed the code as mentioned above so I avoid that.

jp

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1018 views
  • 0 likes
  • 3 in conversation