Ques 41 : Which one is most efficient : WHERE Statement or WHERE data set option ?
Ans : The 'WHERE = ' SAS dataset option is more efficient than WHERE Statement.
'Where' dataset option would transfer only those observations to PDV which match the conditional test.
* We should not use 'FIRSTOBS=' and 'OBS=' options with WHERE Statement or WHERE option
* If both WHERE Statement and WHERE option are used in same data step then where statement would get ignored by SAS
Ques 42 : How can we create user-defined formats ?
Ans : We can create user-defined format by PROC FORMAT procedure.
Ques 43 : How could we see the physical location of any library and any dataset ?
Ans : There are some files in SAS library 'SASHELP' by the name 'VSLIB' and 'VSTABLE' which contains the physical locations of library and datasets respectively.
Ques 44 : How do we list all SAS system options and can you list only specific one as well.
Ans : We can use PROC OPTIONS procedure to list sas system options.
To list all SAS system options :
PROC OPTIONS;
RUN;
To list specific SAS system option ;
Ans : The 'WHERE = ' SAS dataset option is more efficient than WHERE Statement.
'Where' dataset option would transfer only those observations to PDV which match the conditional test.
* We should not use 'FIRSTOBS=' and 'OBS=' options with WHERE Statement or WHERE option
* If both WHERE Statement and WHERE option are used in same data step then where statement would get ignored by SAS
Ques 42 : How can we create user-defined formats ?
Ans : We can create user-defined format by PROC FORMAT procedure.
Ques 43 : How could we see the physical location of any library and any dataset ?
Ans : There are some files in SAS library 'SASHELP' by the name 'VSLIB' and 'VSTABLE' which contains the physical locations of library and datasets respectively.
Ques 44 : How do we list all SAS system options and can you list only specific one as well.
Ans : We can use PROC OPTIONS procedure to list sas system options.
To list all SAS system options :
PROC OPTIONS;
RUN;
To list specific SAS system option ;
PROC OPTIONS OPTION= ERRORS;
RUN;
* SAS System options would get printed into log
Ques 45 : How could we reset the SAS system option's default value to specific one ?
Ans : We can reset the SAS system option's value by using OPTIONS option.
OPTIONS ERRORS = 5;
No comments:
Post a Comment