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

Answers were Sorted based on User's Feedback



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

Answer / segu

we can pass the paramters at run time.
here is an example which passes three parameters( 3 dates)
to a program calles pgm_name:

>sas pgm_name -sysparm "01aug95 05aug94 10jan60"

Is This Answer Correct ?    2 Yes 1 No

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

Answer / 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

More SAS Interview Questions

how do you derive descriptive statistics?

1 Answers   Accenture, Quintiles,


How does the internal authentication work in sas? : sas-grid-administration

0 Answers  


When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?

7 Answers  


How do you add a number to a macro variable?

2 Answers  


What is the Program Data Vector (PDV) and What are its functions?

9 Answers  






What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?

2 Answers   Accenture,


Where do you use proc means over proc freq?

0 Answers  


How would you remove a format that has been permanently associated with a variables?

3 Answers  


What is slibref?

0 Answers  


How do you add a prefix to some or all variables in a dataset using a SAS macro?

2 Answers  


what is null hypothesis? why do you consider that?

0 Answers   Accenture, Quintiles,


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

0 Answers  


Categories