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 differences between sum function and using “+” operator?

0 Answers  


Mention some common errors that are usually committed in sas programming.

0 Answers  


how does sas handle missing values in a merge? : Sas programming

0 Answers  


State the difference between INFORMAT and FORMAT ?

0 Answers  


which date function advances a date, time or datetime value by a given interval? : Sas programming

0 Answers  






hi guys ...i have one query... data abc; input s w k g o t a m; cards; 1 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 ; run; i want the output to be the sorted order(only variables).observations should not be changed..

14 Answers  


Mention the validation tools used in SAS?

0 Answers  


AE datasets names? how many types?

0 Answers   Accenture,


What will calendar procedure do?

0 Answers  


. Which date advances a date, time or date/time value by a given interval?

8 Answers  


what are the sites did u refer for enquiries and doubts for SAS

2 Answers   UBS,


How do you add a number to a macro variable?

3 Answers  


Categories