How to do user inputs and command line arguments in SAS? D&B

Answer Posted / rupesh

we can input values in dataset runtime using WINDOW statement:


data temp;
length name $20;
length sex $1;

window start

#3 @5 'enter the name' +1 name attr=underline
#4 @5 'enter the age' +2 age attr=underline
#5 @5 'enter the sex' +2 sex attr=underline

#7 'when complete type end in cmd';

display start;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention sas system options to debug sas macros.

663


What is PROC in SAS?

606


what versions of sas have you used (on which platforms)? : Sas programming

584


Have you used macros? For what purpose you have used? : sas-macro

561


To what type of programms have you used scratch macros?

2143






What are the difference between sas functions and procedures?

640


What is the difference between reading data from an external file and reading data from an existing data set?

636


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3111


For what purpose would you use the RETAIN statement?

1045


how does sas handle missing values in a merge? : Sas programming

554


Explain the main difference between the sas procedures and functions? : Sas-administrator

540


what is the difference between infile and input? : Sas-administrator

609


For what purposes have you used sas macros? : sas-macro

540


Explain what Proc glm does?

639


what is snowflake schema? : Sas-di

696