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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1222 views
  • 0 likes
  • 2 in conversation