BookmarkSubscribeRSS Feed
camfarrell25
Quartz | Level 8

Hello,

 

I am trying to add a prompt that would allow the user to populate the following table using the prompt instead of manually adjusting the code.

Ideally, the user would be able to input multiple names and the associated gender.

The two variables:

Name $30

Gender $6

 



DATA gender_names_v2_add;

set gender_names_v1 (drop= datetime);

INPUT NAME GENDER; 

DATALINES;

PIEROLIVIER M

RUN; 

4 REPLIES 4
Reeza
Super User

So what is the question you need help with?

What are your parameter names and what's not working? I see no reference to your parameters in your code for starters.

 


@camfarrell25 wrote:

Hello,

 

I am trying to add a prompt that would allow the user to populate the following table using the prompt instead of manually adjusting the code.

Ideally, the user would be able to input multiple names and the associated gender.

The two variables:

Name $30

Gender $6

 



DATA gender_names_v2_add;

set gender_names_v1 (drop= datetime);

INPUT NAME GENDER; 

DATALINES;

PIEROLIVIER M

RUN; 


 

camfarrell25
Quartz | Level 8

I am not sure how to have the prompt be a table essentially, allowing the user to input name and gender.

Is that something that is feasible?

VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

Have you looked at SAS Screen Control Language examples?

 

Reeza
Super User

@camfarrell25 wrote:

I am not sure how to have the prompt be a table essentially, allowing the user to input name and gender.

Is that something that is feasible?


 

Sure, register your table in the metadata server, then select Prompt Type as Text. Then for Method select User selects from static/dynamic list. If it's a dynamic list, you can add the source to be a table (if it's registered in the metadata server) or you can manually create your list in the prompt. 

 

I suspect we're dealing with an XY type problem here and if you could explain your requirements more we may be able to suggest different options. 

XY problem:  http://xyproblem.info/

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 995 views
  • 0 likes
  • 3 in conversation