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-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 5 replies
  • 1482 views
  • 0 likes
  • 3 in conversation