Your SAS programs, embedded in web apps and elsewhere

on a data _null_ how to put link below

Reply
Regular Contributor
Posts: 163

on a data _null_ how to put link below

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
SAS Employee
Posts: 285

Re: on a data _null_ how to put link below

What other code do you have in the stored process?

Vince DelGobbo
SAS R&D
Regular Contributor
Posts: 163

Re: on a data _null_ how to put link below

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
SAS Employee
Posts: 285

Re: on a data _null_ how to put link below

Besides what is written by the DATA Step, is there any other HTML text on the page?

Vince DelGobbo
SAS R&D
SAS Super FREQ
Posts: 8,743

Re: on a data _null_ how to put link below

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
Regular Contributor
Posts: 163

Re: on a data _null_ how to put link below

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
Ask a Question
Discussion stats
  • 5 replies
  • 276 views
  • 0 likes
  • 3 in conversation