I have the following code.
data ListOfFiles;
set sqlSTL.Upload_Master;
if Meta_User="&user.";
length FileName_Desc FileName_Select FileName_Delete Button_Select $900 UploadDate UploadTime 8.;
format UploadDate mmddyy10. UploadTime hhmm.;
/*FileName_Desc="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,execute,newwindow&"||'&filename_p='||strip(FileName)||"><b>Select</b></A>";*/
/*FileName_Desc="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,execute,newwindow&"||'&filename_p='||strip(FileName)||">"||strip(FileName)||"</A>";*/
/*FileName_Select="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,execute,newwindow&"||'&filename_p='||strip(FileName)||">"||strip(FileName)||"</A>";*/
FileName_Select="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,execute,newwindow&"||'&filename_p='||strip(FileName)||">Select This File</A>";
FileName_Delete="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FConfirm_File_Deletion_1&_action=execute"||'&filename_p='||strip(FileName)||">Delete This File</A>";
UploadDate=Datepart(UploadDateTime);
UploadTime=Timepart(UploadDateTime);
/*Button_Select="<a href=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,newwindow class='btn btn-primary btn-lg active' role='button'>Primary link</a>";*/
/*<a href="#"><button>Text</button></a>*/
run;
What I intended to do is when the user select the link it should open the different stored process in a new window.
For some reason the new stored process keeps opening in the same windows.
Couls anybody look at the above code and suggest me. Thanks.
Hello Cynthia,
Thanks for your prompt reply. This is a stored process question.
I made some changes and it works now.
I put target="_bank" at the end of href tag.
data ListOfFiles;
set Upload_Master;
length FileName_Desc FileName_Select FileName_Delete Button_Select $900 UploadDate UploadTime 8.;
FileName_Select="<A HREF=/SASStoredProcess/do?_program=%2FShared+Data%2FStudent+Listings%2FStudentFileUpload_Selection_2&_action=properties,execute,newwindow&"||'&filename_p='||strip(FileName)||" target=_blank>Select This File</A>";
run;
Lokraj
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.