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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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