| Back to Questions Page |
| |
| Question |
In the SAS Data step what is the difference between the
subsetting done by Where and subsetting done by If? |
Rank |
Answer Posted By |
|
Question Submitted By :: Dp |
| This Interview Question Asked @ Cognizent |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | There is difference between how SAS handles IF and WHERE
conditions. The 'WHERE' condition is applied on data before
they enter Program Data Vector (PDV) and in case of 'IF' it
is applied after data comes out from PDV. Now, if you have
created a variable in the same data step using
Where : the created variable will not be applied condition.
IF: the created variable will be subjected to the condition
applied.  |
| K |
| |
| |
| Answer | Make sure you apply the following rules when determining
which approach to take when subsetting your data set using
the DATA step. If your subset condition does not meet the
requirements below, then the WHERE and IF statements should
produce identical results. For cases such as this, use the
WHERE statement since it is more efficient. Note that
having both WHERE and IF statements within the same DATA
step has a cumulative effect.
• Can use WHERE statement when only specifying data
set variables
• Use IF statement when specifying automatic
variables or new variables created within DATA step
• Use IF statement when specifying FIRST.BY or LAST.
BY variables
• Use IF statement when specifying data set options
such as OBS = , POINT = or FIRSTOBS =
• In general, use IF statement when merging data sets
to apply subset condition after merging data set
• Use WHERE statement when specifying indexes  |
| Gangadhar |
| |
| |
| Answer | WHERE Statement can be only be used with variables in the
existing dataset where as IF statement can also be used raw
data as well  |
| S.s.suresh |
| |
| |
|
|
| |
| Question |
Does anybody has lastest SAS certification dumps,if anybody
has please mail me on saggydesai@gmail.com |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Hi Saggy Desai,
I think you can get Genuine SAS Dumps from: sasiexam@gmail.com
Regards
Bharath  |
| Bharath |
| |
| |
| Question |
What is difference between sas rename and lable? |
Rank |
Answer Posted By |
|
Question Submitted By :: Anand |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | SAS rename is used for variable renaming while lables is
used to define/alter the lables of the vaiables  |
| Anuj Kashyap |
| |
| |
| Question |
what is Difference between PROC SQL JOINS and MERGE? |
Rank |
Answer Posted By |
|
Question Submitted By :: Sankar |
| This Interview Question Asked @ Accenture |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | The resultant dataset depends on the input datasets.
In case of one to one and one to many both work
similarly,i.e. the resultant dataset is same.
But differs in case of many to many and non matching
datasets:
many to many:
ex: (merge on x) (proc sql)
X Y X Z X Y Z X Y Z
----- ------ ------- -------
1 A 1 F 1 A F 1 A F
1 C 1 R ---> 1 C R 1 A R
2 B 2 G 2 B G 1 C F
1 C R
2 B G
NON MATCHING DATA:
ex: (merge on x) (proc sql)
X Y X Z X Y Z X Y Z
----- ------ ------- -------
1 A 1 F 1 A F 1 A F
2 B 3 T ---> 2 B . 3 C T
3 C 4 G 3 C T
4 . G  |
| Rajitha Macherla |
| |
| |
| Question |
Does anybody has lastest SAS certification dumps,if anybody
has please mail me at akshara_SAS@ymail.com
Thanks
Akshara |
Rank |
Answer Posted By |
|
Question Submitted By :: Akshara |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Hi Akshara
You can get latest SAS Certi Dumps from: sasi.vats@gmail.com
I took few dumps from him and scored 100 %, he always
maintains latest dumps
Regards
Jeevan  |
| Jeevan |
| |
| |
| Answer | hey aksara,
contact this mail id for getting sas related latest info:
certification
openings
career  |
| Shiva |
| |
| |
| Answer | Hi Shiva
Yes Shiva, i got A00-211 & A00-212 Dumps from Sasi Vats,
I got above 96 % Score,
thanks a tonns to Sasi Vats once again
Thanks
Reshma  |
| Reshma |
| |
| |
| Question |
What is the difference between Regression and Logistic
Regression? Can u explain the Assumptions/Conditions? |
Rank |
Answer Posted By |
|
Question Submitted By :: Ramesh.katikala |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Regression is used to model Interval target variables where
as logistic regression is used to model Categorical
varaibles.
Regression Assumptions: Input variables are linearly
related to target variable and that input variables and
residuals are normally distributed, and independent with a
mean of 0 and constant variance.
Logistic Regression: There are no distributional
requirements for inputs in Logistic regression  |
| Raj |
| |
| |
| Answer | Regression Modelling is also called linear modelling as the
input variables and residuals normally distributed.
the formula generally used here is
Y = m1x1+m2x2+m3x3+m4x4+c
Where as the logistic modelling is a non linear modelling
in which input variables and residuals randomly distributed.
The dependent variable has a value of either 1 or 0
the formula we use here is
Y= 1
--------------------
1 + e^-(m1x1+m2x2+m3x3+m4x4)  |
| Vipin Choudhary |
| |
| |
| Question |
how to perform paired t-test using Base/SAS & SAS/Stat? |
Rank |
Answer Posted By |
|
Question Submitted By :: Ramesh.katikala |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | proc ttest data=a;
paired var1 var2;
run;  |
| Mili |
| |
| |
| Answer | I tried the above code.But it worked after I gave * or :
between var1 and var2.
proc ttest data=a;
paired var1:var2;
run;  |
| Shwetha |
| |
| |
| Question |
How do i read multiple spaces in datasets?
|
Rank |
Answer Posted By |
|
Question Submitted By :: Anjani |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | using DSD  |
| Preetha |
| |
| |
| Answer | by using : oprator  |
| King |
| |
| |
| Answer | by using double trailing operator @@  |
| Sri |
| |
| |
| Question |
How to do user inputs and command line arguments in SAS? D&B
|
Rank |
Answer Posted By |
|
Question Submitted By :: Anjani |
| This Interview Question Asked @ BoA |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | 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"  |
| Segu |
| |
| |
| Question |
There are 200 observations in a dataset, i want to pull out
the observation no's 100, 150,180,190 by using Proc SQL? How
you can get it? |
Rank |
Answer Posted By |
|
Question Submitted By :: Koti |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Proc Sql;
Select * from <dataset name>
where _n_ in (100,150,180,190);
quit;  |
| Vipin Choudhary |
| |
| |
| Answer | Proc Sql;
Select *,monotonic ()as c from <datasetname>
group by a having c in (100,150,180,190);
quit;  |
| Limnesh |
| |
| |
| Answer | Before saying answer is not correct, please try this
Data f;
do i=1 to 200;
output;
end;
run;
Proc Sql;
Select *,monotonic ()as c from f
group by i having c in (100,150,180,190);
quit;
Proc print;
run;  |
| Limnesh Dominic |
| |
| |
| Answer | * Setup test data;
data test;
do i=1 to 200;
j=ranuni(i);
output;
end;
run;
Proc Sql;
Select *,monotonic ()as c from test
having c in (100,150,180,190);
quit;  |
| Jim |
| |
| |
| Answer | PROC SQL;
SELECT*,
MONOTONIC() AS COUNT
FROM TEST
HAVING COUNT IN(100,150,180,190);
QUIT;  |
| Pranoy Tikadar |
| |
| |
| Question |
Hi I have list of products in a dataset,
which are classified by other name for eg:- there is a
product A> Malambo Shiraz Malbec 750ML(0388) which is a Red
wine.Now i need to generate a report where it shows if this
product appears then it should b displayed as red
wine,similarly for other products and other classification.
I dont wan use proc format.
|
Rank |
Answer Posted By |
|
Question Submitted By :: Santosh |
| This Interview Question Asked @ Symphony |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Hi.
I don t know any specific reason why yu dont wan to use
proc format. It would be better if you use that as there
would be probably some more wines in the market where u can
apply this format of red wine....
Anyways I think you can try this.
* the content in brackets have to come from your program
proc sql;
update [dataset_name];
set [wine_name_field] = "Red Wine" where [wine_name_field]
="Malambo Shiraz Malbec 750ML(0388)";
exit;
let me know in case u require something else.  |
| Saurabh |
| |
| |
| Answer | above answer is correct. Just need to correct syntax
errors. Following is the corrected code,
proc sql;
update [dataset_name]
set [wine_name_field] = "Red Wine" where [wine_name_field]
="Malambo Shiraz Malbec 750ML(0388)";
quit;  |
| Sheetal |
| |
| |
| Answer | You can use HASH lookup for this. Performnace will depend
on the data size.  |
| Harsh |
| |
| |
| Question |
How to convert a given date value into SAS date |
Rank |
Answer Posted By |
|
Question Submitted By :: Sk |
| This Interview Question Asked @ CitiGroup |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Actually sas stores dates as numbers
eg:: given date 12-07-2009
in sas :: we can store like this `12-07-2009`d  |
| Suresh Ganapuram |
| |
| |
| Answer | we can store date values using date format
(ex:date9.,ddmmyyyy10.)  |
| Ranjith |
| |
| |
| Answer | We can read the date value with the help of date informats.
Say we have the date 09/13/2008.
Now if we want SAS to read this date, we will use the date
informat in the input statement like
"input date mmddyy10."
SAS will store this date in the numerical form as the
number of days passed from 1st january, 1960.  |
| Vipin Choudhary |
| |
| |
| Answer | e.g the date is '05/09/2007'
we can use the input function to convert this string into SAS date i.e.
date='05/09/2007'
sasdate=input(date,mmddyy10.);
Also, we can use mdy function.For this first use substr function.
m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
sasdate=mdy(m,d,y);  |
| Arish Kumar |
| |
| |
| Answer | If you don't know in advance how the date will be
formatted, you can use the ANYDTDTE. informat. This will
extract a SAS date from most date/date-time formats.
(Warning: ANYDTDTE doesn't fully support day-month-year
ordering, even if you have this set as your system
preference, but it still copes with most DMY-formatted
dates.)  |
| Geoffrey Brent |
| |
| |
| Answer | For example if we have a date="14/12/2008".
you have to input it first and the format it like
date1=input(date,ddmmyy10.);
format date1 ddmmyy10.;
run;  |
| Komal |
| |
| |
| Answer | data temp;
date='17/12/2009';
m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
d1=mdy(m,d,y);
format d1 mmddyy10.;
run;  |
| Sheetal |
| |
| |
| Question |
What is the difference between Proc tabulate and Proc print |
Rank |
Answer Posted By |
|
Question Submitted By :: Sk |
| This Interview Question Asked @ CitiGroup |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Proc tabulates out puts the aggregate values in table
whereas
Proc print used to print the data of a dataset into an out
put window  |
| Suresh Ganapuram |
| |
| |
| Answer | The PRINT procedure: prints the observations in a SAS data
set, using all or some of the variables. You can create a
variety of reports ranging from a simple listing to a
highly customized report .
The Tabulate procedure : used to print tabular type of
Reports
and we can find descriptive statistics.  |
| Ranjith.m |
| |
| |
| Answer | proc print is used to print the observations in the output
proc tabulate is used to print the observations in table
form
as rows and colums
 |
| Pavan |
| |
| |
| Answer | proc print produces list report output. Proc Tabulate print
crosstabulation report output.  |
| Sheetal |
| |
| |
|
| |
|
Back to Questions Page |