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 would you keep from overlaying the a SAS set with its sorted version?

4 Answers  


i am importing large data from oracle to work library. in log there is a error message worklibrary space is not enough. then how to import the data safely to sas environment.

2 Answers   Cap Gemini,


explain about sas business intelligence? : Sas-bi

0 Answers  


How are the analysis data sets structured?

3 Answers  


how to read raw data in sas. Do it manually and throw the programming.

1 Answers   WNS,






HOW DO WE CREATE A SAS STORED PROCESS IN SAS EG ?

1 Answers   TCS,


What are the Aggregate functions in SQL ?

2 Answers   AON,


what is option year cuttoff in sas

2 Answers   L&T,


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

0 Answers  


How experienced are you with customized reporting and use of Data _Null_ features?

4 Answers   Oracle,


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

0 Answers  


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

0 Answers   Oracle,


Categories