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

what is the purpose of _error_? : Sas programming

818


how do you debug and test your sas programs? : Sas programming

812


what are sas/access and sas/connect? : Sas programming

728


Can you execute a macro within a macro? Describe. : sas-macro

843


What is the difference between proportion and average?

2978






What are the different servers in sas? : sas-grid-administration

810


State the difference between INFORMAT and FORMAT ?

788


what is change analysis in sas di ? : Sas-di

771


Explain the difference between nodup and nodupkey options?

778


how will you location sas platform applications available from web browser? : Sas-bi

775


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2076


What versions of SAS have you used (on which platforms)?

1226


What does the trace option do?

847


Differentiate between sas functions and sas procedures.

836


how many types prompting framework can be broken down to? : Sas-bi

819