BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
I have a code that calls upon itself but I would like to pass a user logon into _METAUSER. I tried using this in the link when calling the stp:

HREF="http:///BIP TREE/ETC../
&_METAUSER='||urlencode(strip(logon_Person))|| <---is this correct?
4 REPLIES 4
Vince_SAS
Rhodochrosite | Level 12
Can you provide more information?

What are you trying to achieve? Drill-down to another stored process?
What application are you using to execute the stored process?
What version of SAS are you using?

Vince DelGobbo
SAS R&D
jplarios
Quartz | Level 8
Vince,
yes , drill down to another STP but to the same one that is making the call wheb the user clicks on a link. I am using the STP web Application with SAS 9.1.3.
I have something wthat works fine but I originally wanted to do it using _METAUSER and assign it a value to be passed via the link.
Vince_SAS
Rhodochrosite | Level 12
It's generally not a good idea to modify variables that SAS defines. I suggest that you use something other than _METAUSER.


Here is some sample code for you to try:


[pre]
%let URL=&_URL.?_program=&_PROGRAM%nrstr(&MYUSER=someValue);

data _null_;
file _webout;
put '<a href="' "&URL" '">Text for Hyperlink</a>';
run;
[/pre]


Vince DelGobbo

SAS R&D

jplarios
Quartz | Level 8
Vince,
Thanks! That recommendation is as good as gold to me.

Ok. I'll just have what I got or like what you recommended.

jp

sas-innovate-wordmark-2025-midnight.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. Sign up by March 14 for just $795.


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
  • 4 replies
  • 1364 views
  • 0 likes
  • 2 in conversation