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