Ques 36 : How to get the default or sample datasets or sample library into SAS.
Ans : In SAS, sample library is SAMPSIO which is set by default in configuration file. We can get the sample datasets from this library by several ways but the easiest way is :
Ques 38 : How to copy a dataset from one library to another library ?
Ans : The simplest way to copy a dataset from one library to another library is to use COPY procedure.
PROC COPY IN = Uma OUT = Shanker;
SELECT Dsn ;
RUN;
* DSN dataset has been copied to 'Shanker' library from 'Uma' library.
Ques 39 : What is the specific condition when SAS does not create INPUT BUFFER ?
Ans : While creating a new dataset, if the input file is a sas dataset then SAS does not create an INPUT BUFFER. In this condition SAS writes the input data directly to the PDV.
Ques 40 : If a SAS code has too many errors, then how many errors SAS would print into its log ?
Ans : SAS prints 20 errors by default for a SAS code. We can also set the number of errors to be get printed into log by using SAS System option.
* This option is also useful to save log space. In the same way, if we don't want NOTES to print into log then we can use OPTIONS NONOTES
* There is no SAS OPTION is available to eliminate the warning messages.
Ans : In SAS, sample library is SAMPSIO which is set by default in configuration file. We can get the sample datasets from this library by several ways but the easiest way is :
PROC DATASETS LIBRARY=SAMPSIO;
RUN;
Ques 37 : How to copy an entire library to new destination with it's all attributes ?
Ans : We can use COPY statement with Proc Datasets procedure to copy an entire library.
PROC DATASETS LIBRARY= SOURCE;
COPY OUT = Destination;
Ques 38 : How to copy a dataset from one library to another library ?
Ans : The simplest way to copy a dataset from one library to another library is to use COPY procedure.
PROC COPY IN = Uma OUT = Shanker;
SELECT Dsn ;
RUN;
* DSN dataset has been copied to 'Shanker' library from 'Uma' library.
Ques 39 : What is the specific condition when SAS does not create INPUT BUFFER ?
Ans : While creating a new dataset, if the input file is a sas dataset then SAS does not create an INPUT BUFFER. In this condition SAS writes the input data directly to the PDV.
Ques 40 : If a SAS code has too many errors, then how many errors SAS would print into its log ?
Ans : SAS prints 20 errors by default for a SAS code. We can also set the number of errors to be get printed into log by using SAS System option.
OPTIONS ERRORS = 5;
* This option is also useful to save log space. In the same way, if we don't want NOTES to print into log then we can use OPTIONS NONOTES
* There is no SAS OPTION is available to eliminate the warning messages.
No comments:
Post a Comment