Vous êtes sur la page 1sur 25

Search Tech Interviews

Top of Form
Search

Bottom of Form

SAS interview questions


By admin | October 12, 2004

1. 2. (. 4. +. -. .. /. 1.

What SAS statements wou ! you co!e to rea! an e"terna raw !ata #i e to a $ATA ste%& 'ow !o you rea! in the variab es that you nee!& Are you #ami iar with s%ecia in%ut !e imiters& 'ow are they use!& I# rea!in) a variab e en)th #i e with #i"e! in%ut, how wou ! you %revent SAS #rom rea!in) the ne"t recor! i# the ast variab e !i!n*t have a va ue& What is the !i##erence between an in#ormat an! a #ormat& ,ame three in#ormats or #ormats. ,ame an! !escribe three SAS #unctions that you have use!, i# any& 'ow wou ! you co!e the criteria to restrict the out%ut to be %ro!uce!& What is the %ur%ose o# the trai in) 0& The 00& 'ow wou ! you use them& 2n!er what circumstances wou ! you co!e a S3435T construct instea! o# I6 statements&

10. What statement !o you co!e to te SAS that it is to write to an e"terna #i e& What statement !o you co!e to write the recor! to the #i e& 11. I# rea!in) an e"terna #i e to %ro!uce an e"terna #i e, what is the shortcut to write that recor! without co!in) every sin) e variab e on the recor!& 12. I# you*re not wantin) any SAS out%ut #rom a !ata ste%, how wou ! you co!e the !ata statement to %revent SAS #rom %ro!ucin) a set& 1(. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& 14. 'ave you ever in7e! SAS co!e& I# so, !escribe the in7 an! any re8uire! statements use! to either %rocess the co!e or the ste% itse #. 1+. 'ow wou ! you inc u!e common or reuse co!e to be %rocesse! a on) with your statements& 1-. When oo7in) #or !ata containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& 1.. I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& 1/. 5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variab es, a on) with severa numeric variab es. 11. 'ow wou ! you !e ete !u% icate observations& 20. 'ow wou ! you !e ete observations with !u% icate 7eys& 21. 'ow wou ! you co!e a mer)e that wi 7ee% on y the observations that have matches #rom both sets.

22. 'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. 2(. What is the :ro)ram $ata =ector >:$=?& What are its #unctions& 24. $oes SAS @Trans ate* >com%i e? or !oes it @Inter%ret*& 3"% ain. 2+. At com%i e time when a SAS !ata set is rea!, what items are create!& 2-. ,ame statements that are reco)niAe! at com%i e time on y& 2.. I!enti#y statements whose % acement in the $ATA ste% is critica . 2/. ,ame statements that #unction at both com%i e an! e"ecution time. 21. ,ame statements that are e"ecution on y. (0. In the # ow o# $ATA ste% %rocessin), what is the #irst action in a ty%ica $ATA Ste%& (1. What is BnB&
www.accenture.com

42 COMMENTS ON SAS INTERVIEW QUESTIONS

1.

Ruksana

:oste! 4C1.C200+ at 29(( %m | Permalink

hi there, i am a stu!ent earnin) SAS. i nee! answer #or SAS 8uestions which are iste! on your site. % A #orwar! me the answers. than7s in a!vance. ;u7sana

2.

srijana

:oste! /C21C200- at 1291( am | Permalink

1(. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%&

3.

Ravi Awari

:oste! 10C24C200- at /90. am | Permalink

1(. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& Ans? S3T

4.

Vino Swarna

:oste! 11C/C200- at 1090. %m | Permalink

What SAS statements wou ! you co!e to rea! an e"terna raw !ata #i e to a $ATA ste%& Ans9 $ata DDDE in#i e @yyy*E in%ut F..E runE 'ow !o you rea! in the variab es that you nee!& Ans9 !ro% an! 7ee%. Are you #ami iar with s%ecia in%ut !e imiters& 'ow are they use!& Ans9 $S$ ! mmissover %a!. I# rea!in) a variab e en)th #i e with #i"e! in%ut, how wou ! you %revent SAS #rom rea!in) the ne"t recor! i# the ast variab e !i!nGHIJKILHt have a va ue& Ans9 Missover What is the !i##erence between an in#ormat an! a #ormat& ,ame three in#ormats or #ormats. Ans9 in#ormat to rea! the !ate. 6ormat to write the !ata.In#ormats9 comma. !o ar. !ate. 6ormats can be same as in#ormats ,ame an! !escribe three SAS #unctions that you have use!, i# any& mean>? !ate>? to!ay>? 'ow wou ! you co!e the criteria to restrict the out%ut to be %ro!uce!& Ans9 no%rint What is the %ur%ose o# the trai in) 0& The 00& 'ow wou ! you use them& Ans9 0 ho ! the va ue %ast the !ata ste%. 00 ho ! the va ue ti a in%ut statement or en! o# the ine

2n!er what circumstances wou ! you co!e a S3435T construct instea! o# I6 statements& Ans9 i# there are many mutua y e"c usive con!itions What statement !o you co!e to te SAS that it is to write to an e"terna #i e& What statement !o you co!e to write the recor! to the #i e& Ans9 !ata Bnu B set """E #i e @NNN*E %ut vv ii nnoo!!E runE I# rea!in) an e"terna #i e to %ro!uce an e"terna #i e, what is the shortcut to write that recor! without co!in) every sin) e variab e on the recor!& I# youGHIJKILHre not wantin) any SAS out%ut #rom a !ata ste%, how wou ! you co!e the !ata statement to %revent SAS #rom %ro!ucin) a set& What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& Ans9 set 'ave you ever in7e! SAS co!e& I# so, !escribe the in7 an! any re8uire! statements use! to either %rocess the co!e or the ste% itse #. 'ow wou ! you inc u!e common or reuse co!e to be %rocesse! a on) with your statements& When oo7in) #or !ata containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& 5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variab es, a on) with severa numeric variab es. 'ow wou ! you !e ete !u% icate observations& 'ow wou ! you !e ete observations with !u% icate 7eys& 'ow wou ! you co!e a mer)e that wi 7ee% on y the observations that have matches #rom both sets. Ans9 !ata """ mer)e yyy>in O in"""? AAA >in O inAAA? by aaaE i# in""" O 1 an! inyyy O 1E runE 'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. What is the :ro)ram $ata =ector >:$=?& What are its #unctions& Ans9 To store the current obsE $oes SAS GHIJKPQTrans ateGHIJKILH >com%i e? or !oes it GHIJKPQInter%retGHIJKILH& 3"% ain. Ans9 com%i e. At com%i e time when a SAS !ata set is rea!, what items are create!& Ans9 $escri%tor %ortion o# the !ata set, :$=. ,ame statements that are reco)niAe! at com%i e time on y& Ans9 %ut I!enti#y statements whose % acement in the $ATA ste% is critica . Ans9 $ata, ;unE ,ame statements that #unction at both com%i e an! e"ecution time. Ans9in%ut

,ame statements that are e"ecution on y. In the # ow o# $ATA ste% %rocessin), what is the #irst action in a ty%ica $ATA Ste%& Ans9 set the variab es to missin). What is BnB& Ans9 SAS variab e to count the no o# obs rea!.

5.

Mo!an

:oste! 11C22C200- at 11912 am | Permalink

I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& Ans9 use the !ata ste% o%tion OBSO+ 5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variab es, a on) with severa numeric variab es. Ans9 :;O5 SO;T !ataO outO E BN 5ountry State $istrictE ;2,E 'ow wou ! you !e ete !u% icate observations& Ans9 use :;O5 SO;T with the o%tion ,O$2: 'ow wou ! you !e ete observations with !u% icate 7eys& Ans9 use :;O5 SO;T with the o%tion ,O$2:R3N

6.

Mo!an

:oste! 11C22C200- at 1191+ am | Permalink

I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& Ans9 Sorry, my a%o o)ies #or the above answer #or this 8uestion. The correct answer is use R33:O o%tion in the S3T statement o# the $ATA ste%

7.

t!i"a#arajan

:oste! 12C20C200- at /9(/ am | Permalink

'i A , 1?5an you % ease te me the ist o# com%i e time statements& 2?I have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatF waitin) #or your comments

8.

$is!ore $u%ar&$

:oste! 12C2-C200- at 12940 am | Permalink

1(. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& Ans9< O%tions

9.

srinivas&M'

:oste! 1C2C200. at 1090. am | Permalink

2?I have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatG HIJKST !ata a1 a2 a( a4 a+E set E i# obsUO1 an! O21 an! O41 an! O-1 an!

10.

kavit!a

:oste! 1C1/C200. at 11921 am | Permalink

hi is the #o owin) co!e ri)ht #or #o owin) 8uestion& 'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. !ata one two threeE maer)e a >inOina? an bO>inb? by ""E i# inaO1 an! inbO1 then %roc %rint !ataOoneE i# inaO1 an! inbO0 then %roc %rint !ataOtwoE i# inaO0 an! inbO1 then %roc %rint !ata O threeE runE

11.

kavit!a

:oste! 1C1/C200. at 119(1 am | Permalink

I have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatGHIJKST et us say " is the !ata set that ha! a the 111 observationsF !ata a1 a2 a( a4 a+E set "E i# #irstobsO1 an! obsO20 then %roc %rint !ata Oa1E i# #irstobsO21 an! obsO40 then %roc %rint !ata Oa2E i# #irstobsO41 an! obsO-0 then %roc %rint !ata Oa(E i# #irstobsO-1 an! obsO/0 then %roc %rint !ata Oa4E i# #irstobsO/1 an! obsO100 then %roc %rint !ata Oa+E runE i# you !o not want the out%ut in o) #i e you !o not have to use %roc %rint

12.

kavit!a

:oste! 1C1/C200. at 119(/ am | Permalink

At com%i e time when a SAS !ata set is rea!, what items are create!& 1. in%ut bu##er 2. :ro)ram $ata =ector >:$=? (. $escri%tor In#ormation

13.

kavit!a

:oste! 1C1/C200. at 1194- am | Permalink

When oo7in) #or !ata containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& ans9 In!e" wi )ive you the %osition

14.

kavit!a

:oste! 1C11C200. at 119+1 am | Permalink

can anyone % ease te me i# there is a sas user )rou% or !iscussion #orum near #air#a", va

15.

$is!ore $u%ar&$an ikat(a

:oste! (C2+C200. at 2914 %m | Permalink

1(. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& Ans9< O%tions

16.

$is!ore $u%ar&$an ikat(a

:oste! (C2+C200. at 291/ %m | Permalink

'ow !o you rea! in the variab es that you nee!& 2sin) in%ut statement.

17.

Arun Mat!ura&) sai *

:oste! 4C(C200. at -94/ am | Permalink

I have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatGHIJKST Answer9 !ata a1 a2 a( a4 a+E set "E i# B,B UO1 an! B,B O21 an! B,B O41 an! B,B O-1 an! B,B O/1 an! B,B

18.

!i

:oste! 4C4C200. at 1904 am | Permalink

!ata a1 a2 a(E set "E i# BnB UO1 an! BnB O21 an! BnB O41 an! BnB

19.

SIVA

:oste! 4C10C200. at .90/ am | Permalink

data a1 a2 a3 a4 a5; set x; select; when (_n_ le 20) output a1; when (20

20.

siva

:oste! 4C10C200. at .91( am | Permalink

At com%i e time when a SAS !ata set is rea!, what items are create!& Whi e rea!in) a SAS !ata set the in%ut bu##er wi not be create!. It wi be create! on y when the e"terna !ata is rea!. So when a sas !ata set is rea! :$= an! the !escri%tor %ortion wi on y be create!.

21.

rao

:oste! 4C1.C200. at 1941 %m | Permalink

1? what is !i##erence between SAS=/.0 an! SAS=1.0& 2? u r creatin) Macro variab e where we have to store! it& (? what is !i##erence between SAS !ebu))in) an! Macro !ebu))in)& 4?what is the #eature o# S3T statements& +?what is the #eature o# mer)e statements&

22.

+!ars!a

:oste! +C1C200. at /9+1 am | Permalink

'ow wou ! you co!e a mer)e that wi 7ee% on y the observations that have matches #rom both sets. Ans? su%%ose their are two #i es !i#ine!. assume A V B, base! on 7ey >I$? u nee! on y matchin) #orm both the !atasets to be in another $ata in#i eaE in#i ein#i eaE in%ut 01 i! Wchar10. 011 !ata#i e! Wchar100.E :roc Sort by i!E $ata in#i ebE in#i ein#i ebE in%ut 01 i! Wchar10. 011 !ata#i e! Wchar100.E :roc Sort by i!E $ataBnu B Mer)er in#i ea>inOa? in#i eb >inOb? by i!E I# AOB then 6i e Out#i eE :ut 01 i! 5har10E 011 $ata#ie ! Wchar100. 3n!E

23.

$iran

:oste! +C2C200. at +942 am | Permalink

'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. !ata one two threeE maer)e a >inOina? an bO>inb? by ""E

i# inaO1 an! inbO1 then out%ut oneE i# inaO1 an! inbO0 then out%ut twoE i# inaO0 an! inbO1 then out%ut threeE runE

24.

Monta,er

:oste! +C(C200. at .901 am | Permalink

I wou ! i7e to estimate a Tobit mo!e on %ane !ata. :;O5 X4IM is su%%ose! to be the a%%ro%riate %roce!ure. But !i! not #in! any !etai s on how to te :;O5 X4IM that I am usin) %ane !ata. 5ou ! you min! he %in) me % ease&

25.

sanni !i

:oste! +C14C200. at 1904 %m | Permalink

hi Y et AO ( Y et BO 4 Y et 5O VA Z VB Y et 5O V5 What is the va ue o# Y:ut statement& : ease )ive me the answer.

26.

ravi

:oste! +C21C200. at 11944 am | Permalink

hi Y et AO (

Y et BO 4 Y et 5O VA Z VB Y et 5O V5 What is the va ue o# Y:ut statement& : ease )ive me the answer. cO(Z4

27.

'au(

:oste! +C2+C200. at 49+0 %m | Permalink

A so #irstobs an! obs are !ataset contro o%tions. ,ot e"ecution time statements. This co!e wi never wor7. A more #easib e answer is to !o this9 Y[sets u% a bo)us !atasourceE !ata "E !o iO1 to 100E ""O*Nour $ata*E en!E runE Y[accom% ishes the tas7E !ata a1 a2 a( a4 a+E set "E cntZ1E %ut cntOE i# 07avitha sai!, I have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatGHIJKST et us say " is the !ata set that ha! a the 111 observationsGHIJKST !ata a1 a2 a( a4 a+E set "E i# #irstobsO1 an! obsO20 then %roc %rint !ata Oa1E i# #irstobsO21 an! obsO40 then %roc %rint !ata Oa2E i# #irstobsO41 an! obsO-0 then %roc %rint !ata Oa(E i# #irstobsO-1 an! obsO/0 then %roc %rint !ata Oa4E i# #irstobsO/1 an! obsO100 then %roc %rint !ata Oa+E runE i# you !o not want the out%ut in o) #i e you !o not have to use %roc %rint

28.

'au(

:oste! +C2+C200. at 49+1 %m | Permalink

Y[accom% ishes the tas7E !ata a1 a2 a( a4 a+E set "E cntZ1E %ut cntOE i# 0

29.

-!arat!

:oste! .C1-C200. at 129+. am | Permalink

hi, these is bharath,iam earnin) sas wi anyone )ive me the answers #or these 8uetions .% A #orwar! me 1.name statments that #unctions at both com%i e V e"ecution time & 2.namestatments that are e"ecution on y & (.what is the !i##erence between var A1<A4 VvarA1\A4& 4.wat is the or!er o# eva uation o# the com%arison o%erators 9 Z < [C[[ >? & +.wat is the si)ni#icance o# the @O6* in "O sum >O6 a1<a4,a-,a1?E &

30.

kis!oreku%arkan ikat(a

:oste! .C2/C200. at 2921 %m | Permalink

'i rao here are my comments9 1? what is !i##erence between SAS=/.0 an! SAS=1.0& ans9< u can ta7e this as one9 SASv1 >"?Fmore im%rove! version #rom sas with res%ect to BI too s an! with many a!vance! #eatures. SASv/.09< imite! #eatures not that much concentrate! on BI too s.

2? u r creatin) Macro variab e where we have to store! it& ans9 it !e%en!s on you, i# u want to ma7e them as reusab e com%onents u can save them in one %ertucu ar ocation an! u can ca them by usin) Yinc u!e. (? what is !i##erence between SAS !ebu))in) an! Macro !ebu))in)& A,S9 !ebu))in) is !ebu))in. no i!ea. 4?what is the #eature o# S3T statements& ans9 you can a%% y trans#ormations an! u can even oa! the !ata. one im%ortance9 its a techni8ue to im%rove the e##iciency o# sas %ro)rams. +?what is the #eature o# mer)e statements& One sim% e answer is u can %er#orm a ty%es o# ]oins.

31.

nvv

:oste! /C14C200. at .91/ am | Permalink

'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. T'IS ,OT WO;RI,^ ^2NSF :4_ 5'35R IT #i ename " @59`$ocuments an! Settin)s`vinaya7`$es7to%`v.t"t*E !ata a1 a2 E in#i e "E i# #irstobsO1 an! obsO20 then %roc %rint !ataOa1E i# #irstobsO21 an! obsO40 then %roc %rint !ataOa2E runE %roc %rint !ataOa1 a2E runE

32.

)o.i

:oste! /C11C200. at 191+ am | Permalink

'i A , 5an anyone e"% ain about9 :roc 4I63T3ST an! :roc ^4M

33.

%a !u

:oste! 1C21C200. at /92- am | Permalink

X9what is the !i##erence between !s! an! missover& X9with out !ata set name create !ata set & it is %ossib e&

34.

A$A

:oste! 12C11C200. at -910 %m | Permalink

X9what is the !i##erence between !s! an! missover& missover %revents a sas %ro)ram #rom )oin) to a new in%ut ine i# it !oesnot #in! va ues in the current ine #or a the in%ut variab es. X9with out !ata set name create !ata set & it is %ossib e& !ata B,244BE

35.

A$A

:oste! 12C11C200. at -9++ %m | Permalink

a 'ow !oes SAS han! e missin) va ues in9 assi)nment statements, #unctions, a mer)e, an u%!ate, sort or!er, #ormats, :;O5s& a 'ow many missin) va ues are avai ab e& When mi)ht you use them& a 'ow !o you test #or missin) va ues& a 'ow are numeric an! character missin) va ues re%resente! interna y&

36.

A$A

:oste! 12C11C200. at -9+- %m | Permalink

a 'ow !o you ma7e use o# #unctions& a When oo7in) #or containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& a What is the si)ni#icance o# the @O6* in DOS2M>O6 a1<a4, a-, a1?E& a What !o the :2T an! I,:2T #unctions !o& a Which !ate #unction a!vances a !ate, time or !ateCtime va ue by a )iven interva & a What !o the MO$ an! I,T #unction !o& a 'ow mi)ht you use MO$ an! I,T on numerics to mimic S2BST; on character strin)s& a In A;;AN %rocessin), what !oes the $IM #unction !o& a 'ow wou ! you !etermine the number o# missin) or nonmissin) va ues in com%utations& a What is the !i##erence between9 "OaZbZcZ!E an! "OS2M>a,b,c,!?E& a There is a #ie ! containin) a !ate. It nee!s to be !is% aye! in the #ormat b!!monyyc i# it*s be#ore 11.+, b!!monccyyc i# it*s a#ter 11/+, an! as @$isco Nears* i# it*s between 11.+ an! 11/+. 'ow wou ! you accom% ish this in !ata ste% co!e& 2sin) on y :;O5 6O;MAT. a In the #o owin) $ATA ste%, what is nee!e! #or @#raction* to %rint to the o)& !ata Bnu BE "O1C(E i# "O.(((( then %ut @#raction*E runE a What is the !i##erence between ca cu atin) the @mean* usin) the mean #unction an! :;O5 M3A,S&

37.

)owri

:oste! 1C10C200/ at 29++ am | Permalink

When oo7in) #or containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& Ans9 I,$3D #unction. Scan ]ust sub strin)s the !ata an! I,$3D5 oo7s #or one char. a What is the si)ni#icance o# the GHIJKPQO6GHIJKILH in DOS2M>O6 a1<a4, a-, a1?E& Ans9 Without O6 this wi be sonsi!ere! as subtraction. I mean a4 wi be subtracte! #rom a1. a What !o the :2T an! I,:2T #unctions !o& Ans9 :2T converts ,umeric to character an! I,:2T converts 5haracter to ,umeric e"% icit y Which !ate #unction a!vances a !ate, time or !ateCtime va ue by a )iven interva & Ans9 I,T,D

In the #o owin) $ATA ste%, what is nee!e! #or GHIJKPQ#ractionGHIJKILH to %rint to the o)& !ata Bnu BE "O1C(E i# "O.(((( then %ut GHIJKPQ#ractionGHIJKILHE runE Ans9 6;A5Tw. #ormatcna be use! to accom% ish this

38.

+avi

:oste! +C1C200/ at 1092- %m | Permalink

1.What SAS statements wou ! you co!e to rea! an e"terna raw !ata #i e to a $ATA ste%& Answer9 I,6I43 statement is use! to rea! the e"terna raw !ata #ie to a $ata Ste%. 2. 'ow !o you rea! in the variab es that you nee!& Answer9 4ist the variab e names a#ter I,:2T statement. (. Are you #ami iar with s%ecia in%ut !e imiters& 'ow are they use!& Answer9 Nes, 2sin) I,:2T statement an! $4MOo%tion an! $S$ o%tin to rea! !e imite! #i e. 4. I# rea!in) a variab e en)th #i e with #i"e! in%ut, how wou ! you %revent SAS #rom rea!in) the ne"t recor! i# the ast variab e !i!nGHIJKILHt have a va ue& Answer9 2sin) MISSO=3; o%tion in I,6I43 statement. +. What is the !i##erence between an in#ormat an! a #ormat& ,ame three in#ormats or #ormats. Answer9 In#ormat )ives SAS s%ecia instruction #or rea!in) a variab e, an! 6ormat )ives SAS s%ecia instruction #or writin) a variab e. 6or e"am% e9 $AT3w. w. w.! -. ,ame an! !escribe three SAS #unctions that you have use!, i# any& Answer9 $AN>!ate? To!ay>? S2BST;>A;^,:OSITIO,,,?S2M>? .. 'ow wou ! you co!e the criteria to restrict the out%ut to be %ro!uce!& Answer9 2sin) W'3;3 statement /. What is the %ur%ose o# the trai in) 0& The 00& 'ow wou ! you use them& Answer9 Both are ine ho ! s%eci#iers, the !i##erence is how on) they ho ! a ine #or in%ut, The trai in)0 is use! to ho ! the ine o# the raw !ata #or subse8uent I,:2T statements, but re eases that ine when SAS returns to the to% o# $ATA ste%, the trai in) 00 wi ho ! the ine even when SAS starts bui ! a new obsrvation. 1. 2n!er what circumstances wou ! you co!e a S3435T construct instea! o# I6 statements& Answer9 10. What statement !o you co!e to te SAS that it is to write to an e"terna #i e& Answer9 2sin) Bnu B statement 11. What statement !o you co!e to write the recor! to the #i e& Answer9 2sin) 6I43 an! :2T statements 12. I# rea!in) an e"terna #i e to %ro!uce an e"terna #i e, what is the shortcut to write that recor! without co!in) every sin) e variab e on the recor!& Answer9 2sin) 3D:O;T %roce!ure

1(. I# youGHIJKILHre not wantin) any SAS out%ut #rom a !ata ste%, how wou ! you co!e the !ata statement to %revent SAS #rom %ro!ucin) a set& Answer9 B,244B 14. What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& Answer9 Where statement 1+. 'ave you ever in7e! SAS co!e& I# so, !escribe the in7 an! any re8uire! statements use! to either %rocess the co!e or the ste% itse #. 1-. 'ow wou ! you inc u!e common or reuse co!e to be %rocesse! a on) with your statements& MI5;O

39.

j"otsna&)

:oste! -C2+C200/ at +91+ am | Permalink

1.what is the !i##erence between !s! an! missover& 2.^ive some in#ormation about BIOS5B & (.What is the ro e o# BnB an! Bnu B &

40.

aja"sin!a

:oste! -C2.C200/ at /9(- %m | Permalink

1?What SAS statements wou ! you co!e to rea! an e"terna raw !ata #i e to a $ATA ste%& ans?in#i e statement 2?'ow !o you rea! in the variab es that you nee!& ans?use var i7e %roc %rint !ataOerE varnumE runE (?Are you #ami iar with s%ecia in%ut !e imiters& 'ow are they use!& ans?yes . ! mO*,dE or ! mO* @Eetc 4?I# rea!in) a variab e en)th #i e with #i"e! in%ut, how wou ! you %revent SAS #rom rea!in) the ne"t recor! i# the ast variab e !i!nGHIJKILHt have a va ue& ans?use s%eci#ic en)th or #ormat i7e in%ut num 1. char W+.E

+?What is the !i##erence between an in#ormat an! a #ormat& ,ame three in#ormats or #ormats. ans?in#ormat is use! to %rint the !ata #rom the !ataset by ommitn) some va ues whereas #ormat rea!s a !ata !i##ernt y then what is actua y store! in the !ataset by a!!in) our own va ues. !ate, !!mmyy an! wor!!ate -?,ame an! !escribe three SAS #unctions that you have use!, i# any& ans?aOsum>a,b,c?E sO o)>a?E !O a)>a?E .?'ow wou ! you co!e the criteria to restrict the out%ut to be %ro!uce!& ans? use #ormat /?What is the %ur%ose o# the trai in) 0& The 00& 'ow wou ! you use them& ans?0 is cou mn %ointer to )et the s%eci#ic va ue whi e 00 is use! i# variab es are ess an! va ue are more an! u want to rea! each va ue in%ut 0 @content9* a 1. b +.E in%ut a b c 00E 1?2n!er what circumstances wou ! you co!e a S3435T construct instea! o# I6 statements& ans? when u want to use a )rou% 10?What statement !o you co!e to te SAS that it is to write to an e"terna #i e& ans?o!s or !ata#i e 11?What statement !o you co!e to write the recor! to the #i e& ans?!!e 12?I# rea!in) an e"terna #i e to %ro!uce an e"terna #i e, what is the shortcut to write that recor! without co!in) every sin) e variab e on the recor!& ans?!!e an! o!s 1(?I#youGHIJKILHre not wantin) any SAS out%ut #rom a !ata ste%, how wou ! you co!e the !ata statement to %revent SAS #rom %ro!ucin) a set& ans? !ata Bnu BE 14?What is the one statement to set the criteria o# !ata that can be co!e! in any ste%& ans?set 1+?'ave you ever in7e! SAS co!e& I# so, !escribe the in7 an! any re8uire! statements use! to either %rocess the co!e or the ste% itse #. ans?use macro 1-?'ow wou ! you inc u!e common or reuse co!e to be %rocesse! a on) with your statements& ans?usin) #ormat 1.?When oo7in) #or !ata containe! in a character strin) o# 1+0 bytes, which #unction is the best to ocate that !ata9 scan, in!e", or in!e"c& ans?scan 1/?I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& ans?in in%ut statement use on y those variab es name which u want. 11?5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variab es, a on) with severa numeric variab es. ans?%roc sort !ataO8E by stateE runE simi ar y other statements

20?'ow wou ! you !e ete !u% icate observations& ans?usin) !u%7ey 21?'ow wou ! you co!e a mer)e that wi 7ee% on y the observations that have matches #rom both sets. ans?usnin) mer)e an! !u%7ey 22?'ow wou ! you co!e a mer)e that wi write the matches o# both to one !ata set, the non<matches #rom the e#t<most !ata set to a secon! !ata set, an! the non<matches o# the ri)ht<most !ata set to a thir! !ata set. ans?mer)e , !u%7ey an! no!u%7ey 2(?What is the :ro)ram $ata =ector >:$=?& What are its #unctions& ans?memory that sas creates whi e runnin) the sas %ro)ram in com%i ation sta)e is ca e! :$=, 24?$oes SAS GHIJKPQTrans ateGHIJKILH >com%i e? or !oes it GHIJKPQInter%retGHIJKILH& 3"% ain. ans?com%i e with creatin) :$= 2+?At com%i e time when a SAS !ata set is rea!, what items are create!& ans?variab es 2-?,ame statements that are reco)niAe! at com%i e time on y& ans?!ata 2.?I!enti#y statements whose % acement in the $ATA ste% is critica . ans?runE 2/?,ame statements that #unction at both com%i e an! e"ecution time. ans?runE 21?,ame statements that are e"ecution on y. ans?%rocE (0?In the # ow o# $ATA ste% %rocessin), what is the #irst action in a ty%ica $ATA Ste%& ans?creatin) the name o# !ataset. (1?What is BnB& ans?new ine

41.

San

:oste! /C4C200/ at (9(2 am | Permalink

I have mentione! the correct answer #or some X. $avi! an! A]ay has a rea!y mentione! the correct answer #or the other Xs. 4?I# rea!in) a variab e en)th #i e with #i"e! in%ut, how wou ! you %revent SAS #rom rea!in) the ne"t recor! i# the ast variab e !i!nGHIJKILHt have a va ue& 2se MISSO=3; whi e the #i e is rea! I,6I43 !ata ines MISSO=3;E +?What is the !i##erence between an in#ormat an! a #ormat& ,ame three in#ormats or #ormats. 6ormat is use! to %rint the out%ut in the !esire! #ormat e.)., !ate1. comma1. $$MMNN10. In#ormat is use! with the in%ut #i e which he %s to rea! the !ata in the !esire! #ormat to use it insi!e the

%ro)ram #or va uation I,6O;MATs can be use! with the I,:2T>? #unction, an! 6O;MAT with the :2T>? #unction. /?What is the %ur%ose o# the trai in) 0& The 00& 'ow wou ! you use them& SAS %rovi!es two ine<ho ! s%eci#iers. The trai in) at si)n >0? ho !s the in%ut recor! #or the e"ecution o# the ne"t I,:2T statement. The !oub e trai in) at si)n >00? ho !s the in%ut recor! #or the e"ecution o# the ne"t I,:2T statement, even across iterations o# the $ATA ste%. in%ut ,ame W20. 0E or in%ut ,ame W20. 00E 1?2n!er what circumstances wou ! you co!e a S3435T construct instea! o# I6 statements& When you have a on) series o# mutua y e"c usive con!itions an! the com%arison is numeric, usin) a S3435T )rou% is s i)ht y more e##icient than usin) a series o# I6<T'3, or I6<T'3,C34S3 statements because 5:2 time is re!uce!. S3435T )rou%s a so ma7e the %ro)ram easier to rea! an! !ebu). 10?What statement !o you co!e to te SAS that it is to write to an e"terna #i e& 2sin) 6I43 statement we can write the !ata #rom the e"terna #i e. I,6I43 #or rea!in) the !ata #rom the e"terna #i e 11?What statement !o you co!e to write the recor! to the #i e& 2sin) :2T statement or O2T:2T statement 1/?I# you have a !ata set that contains 100 variab es, but you nee! on y #ive o# those, what is the co!e to #orce SAS to use on y those variab e& 4ist In%ut 11?5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variab es, a on) with severa numeric variab es. %roc sort !ataO8E by state $istrict 5ountyE runE (1?What is BnB& ,o o# times the !ata ste% e"ecute!.

42.

sai-a-u

:oste! 1C/C200/ at (9+. am | Permalink

hi, i have 100 observations #rom that i want to create + !atasets i7e a1,a2,a(,a4,a+.3ach !ata set shou ! contain 20 observation each.6or e".a1 wou ! contain 1 to 20 obs an! a2 wou ! contain 21<40 i7e thatGHIJKST !ata a1 a2 a(4 a4 a+E set """E i# 1 e BnB e 20 then ou%ut a1E i# 21 e BnB e 40 then ou%ut a2E i# 41 e BnB e -0 then ou%ut a(E i# -1 e BnB e /0 then ou%ut a4E

i# /1 e BnB e 100 then ou%ut a+E runE

'OST A COMMENT
Click here to cancel reply.
Top of Form

Nour emai is never %ub ishe! nor share!. ;e8uire! #ie !s are mar7e! /
,ame /

3mai /

Website

5omment

Post Comment

152

152

Bottom of Form


A!s by ^oo) e

A0(i#n C'As 0 SAS 12


^ oba SAS .0 Au!it S%ecia ists 6ree 8uote9 ca Z44./4+./-1..++4
www.a i)nc%a.com

SAS Courses 3 Institutes


6in! To% SAS Institutes in In!ia. ^et In#o on 5ourses,A!mission,6ees.
www.Shi7sha.comCSAS<5ourses

eob Interview Xuestion Artic es

5a Interview Xuestions an! Answers

XT: Interview Xuestions an! Answers 5ZZ Interview Xuestions an! Answers :': Interview Xuestions an! Answers DM4 Interview Xuestions an! Answers eavaScri%t Interview Xuestions an! Answers As%.,et Interview Xuestions an! Answers e233 Interview Xuestions an! Answers ABA: Interview Xuestions an! Answers :er Interview Xuestions an! Answers eava Interview Xuestions an! Answers

;esources
Techno o)y Xuestion an! Answer Website 'ow to !ance aroun! the sa ary<e"%ectation 8uestion 10 mista7es mana)ers ma7e !urin) ]ob interviews I$ Ma7er Stu%i! interview 8uestions 'ow to Answer These Tric7y Interview Xuestions Seven ti%s #or writin) an on ine %ro#i e #or 4in7e!In, MyS%ace or 6aceboo7 =i!eo survei ance In7 cartri!)es 4a%to% com%uters A##or!ab e i#e insurance In7 cartri!)es

Tutoria s
AeAD Tutoria s $ea in) with your ]ob ^ettin) a ]ob eavaScri%t tutoria s eob interview ti%s #rom Nahoof 'oteobs MySX4 tutoria s ;etirin) #rom your ]ob ;uby on ;ai s tutoria s Sa ary )ui!e #or IT ]obs Se #<em% oyment TechInterviews )ui!es in :$6

2n!erstan!in) %ointers DM4 Tutoria s D24 tutoria s

;SS 6ee!s
A %osts A comments

:owere! by WordPress.Bui t on the Thematic Theme Framework.

via)ra on ine cia is #or sa e cia is 20m) cia is on ine

estm

atchesf

ori

nterview q

uestions o

nB

IS

AS

(x)more i

mprovedv

ersionf

roms

asw

ithr

espectt

oB

It

oo sa

ndw

ithm

an!a

dvancedf

eat"res#$

"mp t

ot

ext %

Vous aimerez peut-être aussi