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

How to convert a numeric variable to a character variable?

630


Explain bmdp procedure?

614


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

3902


How long can a macro variable be? A token? : sas-macro

715


What is SAS?

617






What are the five ways to do a table lookup in sas? : sas-grid-administration

590


Mention the validation tools used in SAS?

654


Mention the difference between ceil and floor functions in sas?

646


name the scheduler for scheduling job and explain the scheduler? : Sas-di

592


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1578


what is proc Index? and what is proc document?

1994


how many types of prompts are there? : Sas-bi

552


Explain data step in SAS

628


what is slowly changing dimension? : Sas-di

623


Name any two sas spawners? : sas-grid-administration

558