BookmarkSubscribeRSS Feed
Billybob73
Quartz | Level 8

Hi,

I would like the proc print to work in the code below through a stored process, but it won't. I'm lost.. How do I get this to work ?
Thanks!!

Rgds

BB

 

data _null_;
  format infile $char256.; 
  input;
  infile = resolve(_infile_);
  file _webout;
  put infile;
cards; 
<html><body BGCOLOR="silver">
<H3>Customer Submission Form</H3>
<form action="&_URL">
<input type="hidden" name="age"
value="&age">
Select the age of the students to be listed:
<select name="age" >
<option value="11"> 11
<option value="12"> 12
<option value="13"> 13
<option value="14"> 14
<option value="15"> 15
<option value="16"> 16
</select>
<br><br>
<input type=checkbox name="_debug" value="log"> Show SAS log?
<br><br>
<input type=submit value="Execute Stored Process">
</body></html>
;
run;


proc print data=sashelp.class;
where age = &age;
title1 "&age-Year-Old Students";
run;

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 419 views
  • 0 likes
  • 1 in conversation