How to do user inputs and command line arguments in SAS? D&B
Answers were Sorted based on User's Feedback
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 |
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 |
What are the default statistics that proc means produce?
How would you include common or reuse code to be processed along with your statements?
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
How would you delete duplicate observations?
what is the difference btw proc means and proc univariate?
What is interleaving in SAS?
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 ?
what do you mean by data staging area? : Sas-di
How to include or exclude specific variables in a data set?
how to write code for left outer join in SAs using datastep?
how do you validate tables abd reports?
2 Answers Accenture, Quintiles,
What report output formats can you generate using SAS?