BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AMUMOR_SAS
Obsidian | Level 7

Hi,

 

Here's a new question regarding Chain of Stored Process. This time I have focus on the parameter Newwindow.

According to SAS 9.4 Stored Process Developers Guide, Third Edition, The Parameter Newwindow should display the result in a new window. Do I understand the term "New window" correct if I think it is as a new browser window?

 

I invoke the main Stored Process from the SAS Delivery Portal. This SP displays a menu from where the user can select e.g. at date.

The second SP, which is invoked using the parameter "Newwindow", will dsplay the result as either HTML or Excel. When I choose HTML the result is diplayed in the same window. Why is'nt it displayed in a new window?

Below is my code:

data _null_;
	file _webout encoding='UTF-8';
	put "<h1 style=color:ForestGreen align=center> Interne konti med siste transaksjon";
	put "</h1>";
	put "<h3 style=color:Black align=center> Dato tilsvarer siste dag i foregående måned.";
	put "</h3>";
	put "<div Align=Center>";
	put "<body>";
	put "<form ACTION='&_URL'>";
	put "<input TYPE='HIDDEN' NAME='_action' value='form,properties,execute,nobanner,newwindow'>";
	put "<input TYPE='hidden' NAME='_program' VALUE='&_Program._Print'>";

	put "<table BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH='30%'>";

	put "<tr BGCOLOR='ForestGreen'>";

run;

Regards

 

 

Morten Fredrik Amundsen

1 ACCEPTED SOLUTION

Accepted Solutions
foobarbaz
Obsidian | Level 7

In your form tag add

target="_blank"

hth

Cameron

Regards,
Cameron | Selerity

View solution in original post

6 REPLIES 6
foobarbaz
Obsidian | Level 7

In your form tag add

target="_blank"

hth

Cameron

Regards,
Cameron | Selerity
AMUMOR_SAS
Obsidian | Level 7

Hi,

 

Thank's for your reply. However, I'm not sure I do understand what you mean by "form tag"?

 

Could you please post me an example?

 

Morten Fredrik

foobarbaz
Obsidian | Level 7

Hi,

In the following line;

put "<form ACTION='&_URL'>";

Change to

put "<form ACTION='&_URL' target='_blank'>";

The following link is a good starting spot for how to direct html form output.

https://www.w3schools.com/tags/att_form_target.asp

 

Regards,

Cameron

Regards,
Cameron | Selerity
AMUMOR_SAS
Obsidian | Level 7

Hello,

 

Thanks for all Replys.

 

This Community is outstanding, I must say.

 

Regards

 

Morten Fredrik

J_Fredlund
Fluorite | Level 6
Not really directly related to your question, but you might want to look into PROC STREAM (with outfile=_webout). You'll save yourself from typing all of those ' PUT""; ' statements.
AMUMOR_SAS
Obsidian | Level 7
Hi,
Thanks for tip.

Regards

Morten Fredrik

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
  • 6 replies
  • 1186 views
  • 4 likes
  • 3 in conversation