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

What are the default statistics that proc means produce?

0 Answers  


How would you include common or reuse code to be processed along with your statements?

5 Answers   PSCI,


Hi , which book should i refer to for preaparing SAS statistical Exam. Searched a lot on books but still did n't find relevant books

2 Answers  


How would you delete duplicate observations?

10 Answers   Accenture,


what is the difference btw proc means and proc univariate?

8 Answers   HSBC, TCS,






What is interleaving in SAS?

0 Answers  


what are system option ? give few examples ? what are dataset options and dataset statements ? if there is a keep option and keep statement ? which one is executed first ? Difference between a WHERE statement and IF statement ? what is the advantage of using WHERE statement option on the dataset ?

1 Answers   Satyam,


what do you mean by data staging area? : Sas-di

0 Answers  


How to include or exclude specific variables in a data set?

0 Answers  


how to write code for left outer join in SAs using datastep?

8 Answers   CitiGroup,


how do you validate tables abd reports?

2 Answers   Accenture, Quintiles,


What report output formats can you generate using SAS?

3 Answers   Accenture,


Categories