61143031 sas interview questions

Upload: nageshlksap

Post on 04-Jun-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 61143031 SAS Interview Questions

    1/25

    Search Tech InterviewsTop of Form

    Search

    Bottom of Form

    SAS interview questionsBy admin| October 12, 2004

    1. What SAS statements wou! you co!e to rea! an e"terna raw !ata #ie to a $ATA ste%&

    2. 'ow !o you rea! in the variabes that you nee!&

    (. Are you #amiiar with s%ecia in%ut !eimiters& 'ow are they use!&

    4. I# rea!in) a variabe en)th #ie with #i"e! in%ut, how wou! you %revent SAS #rom rea!in) the ne"t recor!

    i# the ast variabe !i!n*t have a vaue&

    +. 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 traiin) & The & 'ow wou! you use them&

    . n!er what circumstances wou! you co!e a S335T construct instea! o# I6 statements&

    10. What statement !o you co!e to te SAS that it is to write to an e"terna #ie& What statement !o you co!e

    to write the recor! to the #ie&

    11. I# rea!in) an e"terna #ie to %ro!uce an e"terna #ie, what is the shortcut to write that recor! without

    co!in) every sin)e variabe 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 incu!e common or reuse co!e to be %rocesse! aon) 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 variabes, but you nee! ony #ive o# those, what is the co!e to #orce

    SAS to use ony those variabe&

    1/. 5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variabes, aon) with

    severa numeric variabes.

    1. 'ow wou! you !eete !u%icate observations&

    20. 'ow wou! you !eete observations with !u%icate 7eys&

    21. 'ow wou! you co!e a mer)e that wi 7ee% ony the observations that have matches #rom both sets.

    http://www.techinterviews.com/author/admin/http://www.techinterviews.com/author/admin/http://www.techinterviews.com/author/admin/
  • 8/13/2019 61143031 SAS Interview Questions

    2/25

    22. 'ow wou! you co!e a mer)e that wi write the matches o# both to one !ata set, the non

  • 8/13/2019 61143031 SAS Interview Questions

    3/25

    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. VinoSwarna

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

    What SAS statements wou! you co!e to rea! an e"terna raw !ata #ie to a $ATA ste%&

    Ans9

    $ata DDDE

    in#ie @yyy*E

    in%ut F..E

    runE

    'ow !o you rea! in the variabes that you nee!&Ans9 !ro% an! 7ee%.

    Are you #amiiar with s%ecia in%ut !eimiters& 'ow are they use!&

    Ans9 $S$ !mmissover %a!.

    I# rea!in) a variabe en)th #ie with #i"e! in%ut, how wou! you %revent SAS #rom rea!in) the ne"t recor! i#

    the ast variabe !i!nGHJKLHt have a vaue&

    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. !oar. !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 traiin) & The & 'ow wou! you use them&

    Ans9 ho! the vaue %ast the !ata ste%.

    ho! the vaue ti a in%ut statement or en! o# the ine

    http://www.ats.ucla.edu/stat/sas/modules/http://www.ats.ucla.edu/stat/sas/modules/
  • 8/13/2019 61143031 SAS Interview Questions

    4/25

    n!er what circumstances wou! you co!e a S335T construct instea! o# I6 statements&

    Ans9 i# there are many mutuay e"cusive con!itions

    What statement !o you co!e to te SAS that it is to write to an e"terna #ie& What statement !o you co!e to

    write the recor! to the #ie&

    Ans9 !ata nuset """E

    #ie @NNN*E

    %ut vv ii nnoo!!E

    runE

    I# rea!in) an e"terna #ie to %ro!uce an e"terna #ie, what is the shortcut to write that recor! without co!in)

    every sin)e variabe on the recor!&

    I# youGHJKLHre 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 incu!e common or reuse co!e to be %rocesse! aon) 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 variabes, but you nee! ony #ive o# those, what is the co!e to #orce

    SAS to use ony those variabe&

    5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variabes, aon) with

    severa numeric variabes.

    'ow wou! you !eete !u%icate observations&

    'ow wou! you !eete observations with !u%icate 7eys&

    'ow wou! you co!e a mer)e that wi 7ee% ony the observations that have matches #rom both sets.

    Ans9 !ata """mer)e yyy>in in"""? >in in?

    by aaaE

    i# in""" 1 an! inyyy 1E

    runE

    'ow wou! you co!e a mer)e that wi write the matches o# both to one !ata set, the non

  • 8/13/2019 61143031 SAS Interview Questions

    5/25

    ame statements that are e"ecution ony.

    In the #ow o# $ATA ste% %rocessin), what is the #irst action in a ty%ica $ATA Ste%&

    Ans9 set the variabes to missin).

    What is n&

    Ans9 SAS variabe 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 variabes, but you nee! ony #ive o# those, what is the co!e to #orce

    SAS to use ony those variabe&

    Ans9 use the !ata ste% o%tion OBS+

    5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variabes, aon) with

    severa numeric variabes.

    Ans9 :;O5 SO;T

    !ata out E

    BN 5ountry State $istrictE

    ;E

    'ow wou! you !eete !u%icate observations&

    Ans9 use :;O5 SO;T with the o%tion O$:

    'ow wou! you !eete observations with !u%icate 7eys&

    Ans9 use :;O5 SO;T with the o%tion O$:R3N

    6. Mo!an

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

    I# you have a !ata set that contains 100 variabes, but you nee! ony #ive o# those, what is the co!e to #orceSAS to use ony those variabe&

    Ans9 Sorry, my a%oo)ies #or the above answer #or this 8uestion. The correct answer is

    use R33: o%tion in the S3T statement o# the $ATA ste%

  • 8/13/2019 61143031 SAS Interview Questions

    6/25

    7. t!i"a#arajan

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

    'i A,

    1?5an you %ease te me the ist o# com%ie 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

  • 8/13/2019 61143031 SAS Interview Questions

    7/25

    10. kavit!a

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

    hi

    is the #oowin) co!e ri)ht #or #oowin) 8uestion&

    'ow wou! you co!e a mer)e that wi write the matches o# both to one !ata set, the non

  • 8/13/2019 61143031 SAS Interview Questions

    8/25

    12. kavit!a

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

    At com%ie 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! 1C1C200 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&$anikat(a

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

  • 8/13/2019 61143031 SAS Interview Questions

    9/25

    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&$anikat(a

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

    'ow !o you rea! in the variabes that you nee!&

    sin) 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

  • 8/13/2019 61143031 SAS Interview Questions

    10/25

    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%ie time when a SAS !ata set is rea!, what items are create!&

    Whie rea!in) a SAS !ata set the in%ut bu##er wi not be create!. It wi be create! ony when the e"terna

    !ata is rea!. So when a sas !ata set is rea!:$= an! the !escri%tor %ortion wi ony be create!.

    21. rao

    :oste! 4C1C200 at 94 %m |Permalink

    1? what is !i##erence between SAS=/.0 an! SAS=.0&

    2? u r creatin) Macro variabe 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&

  • 8/13/2019 61143031 SAS Interview Questions

    11/25

  • 8/13/2019 61143031 SAS Interview Questions

    12/25

    i# ina1 an! inb1 then out%ut oneE

    i# ina1 an! inb0 then out%ut twoE

    i# ina0 an! inb1 then out%ut threeE

    runE

    24. Monta,er

    :oste! +C(C200 at 90 am |Permalink

    I wou! i7e to estimate a Tobit mo!e on %ane !ata. :;O5 XIM is su%%ose! to be the a%%ro%riate

    %roce!ure. But !i! not #in! any !etais on how to te :;O5 XIM that I am usin) %ane !ata. 5ou! you

    min! he%in) me %ease&

    25. sanni!i

    :oste! +C14C200 at 904 %m |Permalink

    hi

    Yet A (

    Yet B 4

    Yet 5 VA Z VB

    Yet 5 V5

    What is the vaue o# Y:ut statement&

    :ease )ive me the answer.

    26. ravi

    :oste! +C21C200 at 11944 am |Permalink

    hi

    Yet A (

  • 8/13/2019 61143031 SAS Interview Questions

    13/25

    Yet B 4

    Yet 5 VA Z VB

    Yet 5 V5

    What is the vaue o# Y:ut statement&

    :ease )ive me the answer.c(Z4

    27. 'au(

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

    Aso #irstobs an! obs are !ataset contro o%tions. ot e"ecution time statements. This co!e wi never wor7.

    A more #easibe answer is to !o this9

    Y[sets u% a bo)us !atasourceE

    !ata "E

    !o i1 to 100E

    ""*Nour $ata*E

    en!E

    runE

    Y[accom%ishes the tas7E

    !ata a1 a2 a( a4 a+E

    set "E

    cntZ1E %ut cntEi# 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

  • 8/13/2019 61143031 SAS Interview Questions

    14/25

    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 cntE

    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 .% #orwar! me

    1.name statments that #unctions at both com%ie V e"ecution time &

    2.namestatments that are e"ecution ony &(.what is the !i##erence between var A1? &

    +.wat is the si)ni#icance o# the @O6* in " sum >O6 a1

  • 8/13/2019 61143031 SAS Interview Questions

    15/25

    2? u r creatin) Macro variabe where we have to store! it&

    ans9 it !e%en!s on you, i# u want to ma7e them as reusabe com%onents u can save them in one %ertucuar

    ocation an! u can ca them by usin) Yincu!e.

    (? what is !i##erence between SAS !ebu))in) an! Macro !ebu))in)&

    AS9 !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

  • 8/13/2019 61143031 SAS Interview Questions

    16/25

    33. %a!u

    :oste! C21C200 at /92- am |Permalink

    X9what is the !i##erence between !s! an! missover&

    X9with out !ata set name create !ata set & it is %ossibe&

    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! vaues in the current ine

    #or a the in%ut variabes.

    X9with out !ata set name create !ata set & it is %ossibe&

    !ata E

    35. A$A

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

    'ow !oes SAS han!e missin) vaues in9 assi)nment statements, #unctions, a mer)e, an u%!ate, sort or!er,

    #ormats, :;O5s&

    'ow many missin) vaues are avaiabe& When mi)ht you use them& 'ow !o you test #or missin) vaues&

    'ow are numeric an! character missin) vaues re%resente! internay&

  • 8/13/2019 61143031 SAS Interview Questions

    17/25

    36. A$A

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

    'ow !o you ma7e use o# #unctions&

    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&

    What is the si)ni#icance o# the @O6* in DSM>O6 a1a,b,c,!?E&

    There is a #ie! containin) a !ate. It nee!s to be !is%aye! in the #ormat !!monyy i# it*s be#ore 1+,

    !!monccyy i# it*s a#ter 1/+, an! as @$isco Nears* i# it*s between 1+ an! 1/+. 'ow wou! you accom%ish

    this in !ata ste% co!e& sin) ony :;O5 6O;MAT.

    In the #oowin) $ATA ste%, what is nee!e! #or @#raction* to %rint to the o)& !ata nuE "1C(E i# ".((((

    then %ut @#raction*E runE

    What is the !i##erence between cacuatin) the @mean* usin) the mean #unction an! :;O5 M3AS&

    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. What is the si)ni#icance o# the GHJKPQO6GHJKLH in DSM>O6 a1

  • 8/13/2019 61143031 SAS Interview Questions

    18/25

    In the #oowin) $ATA ste%, what is nee!e! #or GHJKPQ#ractionGHJKLH to %rint to the o)& !ata nuE

    "1C(E i# ".(((( then %ut GHJKPQ#ractionGHJKLHE 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 #ie to a $ATA ste%&

    Answer9 I6I3 statement is use! to rea! the e"terna raw !ata #ie to a $ata Ste%.

    2. 'ow !o you rea! in the variabes that you nee!&

    Answer9 ist the variabe names a#ter I:T statement.

    (. Are you #amiiar with s%ecia in%ut !eimiters& 'ow are they use!&

    Answer9 Nes, sin) I:T statement an! $Mo%tion an! $S$ o%tin to rea! !eimite! #ie.

    4. I# rea!in) a variabe en)th #ie with #i"e! in%ut, how wou! you %revent SAS #rom rea!in) the ne"t recor!

    i# the ast variabe !i!nGHJKLHt have a vaue&

    Answer9 sin) MISSO=3; o%tion in I6I3 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 variabe, an! 6ormat )ives SAS s%ecia

    instruction #or writin) a variabe.

    6or e"am%e9 $AT3w. w. w.!

    -. ame an! !escribe three SAS #unctions that you have use!, i# any&

    Answer9 $AN>!ate? To!ay>? SBST;>A;^,:OSITIO,?SM>?. 'ow wou! you co!e the criteria to restrict the out%ut to be %ro!uce!&

    Answer9 sin) W'3;3 statement

    /. What is the %ur%ose o# the traiin) & The & '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 traiin) is

    use! to ho! the ine o# the raw !ata #or subse8uent I:T statements, but reeases that ine when SAS

    returns to the to% o# $ATA ste%, the traiin) wi ho! the ine even when SAS starts bui! a new

    obsrvation.

    . n!er what circumstances wou! you co!e a S335T 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 #ie&

    Answer9 sin) nu statement11. What statement !o you co!e to write the recor! to the #ie&

    Answer9 sin) 6I3 an! :T statements

    12. I# rea!in) an e"terna #ie to %ro!uce an e"terna #ie, what is the shortcut to write that recor! without

    co!in) every sin)e variabe on the recor!&

    Answer9 sin) 3D:O;T %roce!ure

  • 8/13/2019 61143031 SAS Interview Questions

    19/25

    1(. I# youGHJKLHre 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

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

    Answer9 Where statement1+. '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 incu!e common or reuse co!e to be %rocesse! aon) 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 IOS5 &

    (.What is the roe o# n an! nu &

    40. aja"sin!a

    :oste! -C2C200/ at /9(- %m |Permalink

    1?What SAS statements wou! you co!e to rea! an e"terna raw !ata #ie to a $ATA ste%&

    ans?in#ie statement

    2?'ow !o you rea! in the variabes that you nee!&

    ans?use var

    i7e %roc %rint !ataerE

    varnumE

    runE(?Are you #amiiar with s%ecia in%ut !eimiters& 'ow are they use!&

    ans?yes . !m*,dE or !m* @Eetc

    4?I# rea!in) a variabe en)th #ie with #i"e! in%ut, how wou! you %revent SAS #rom rea!in) the ne"t recor!

    i# the ast variabe !i!nGHJKLHt have a vaue&

    ans?use s%eci#ic en)th or #ormat

    i7e in%ut num . char +.E

  • 8/13/2019 61143031 SAS Interview Questions

    20/25

    +?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 vaues whereas #ormat rea!s a !ata

    !i##ernty then what is actuay store! in the !ataset by a!!in) our own vaues.

    !ate, !!mmyy an! wor!!ate

    -?ame an! !escribe three SAS #unctions that you have use!, i# any&ans?asum>a,b,c?E

    so)>a?E

    !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 traiin) & The & 'ow wou! you use them&

    ans? is coumn %ointer to )et the s%eci#ic vaue whie is use! i# variabes are ess an! vaue are more

    an! u want to rea! each vaue

    in%ut @content9* a . b +.E

    in%ut a b c E

    ?n!er what circumstances wou! you co!e a S335T 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 #ie&

    ans?o!s or !ata#ie

    11?What statement !o you co!e to write the recor! to the #ie&

    ans?!!e

    12?I# rea!in) an e"terna #ie to %ro!uce an e"terna #ie, what is the shortcut to write that recor! without

    co!in) every sin)e variabe on the recor!&

    ans?!!e an! o!s

    1(?I#youGHJKLHre 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 nuE

    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 incu!e common or reuse co!e to be %rocesse! aon) 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 variabes, but you nee! ony #ive o# those, what is the co!e to

    #orce SAS to use ony those variabe&ans?in in%ut statement use ony those variabes name which u want.

    1?5o!e a :;O5 SO;T on a !ata set containin) State, $istrict an! 5ounty as the %rimary variabes, aon)

    with severa numeric variabes.

    ans?%roc sort !ata8E

    by stateE

    runE

    simiary other statements

  • 8/13/2019 61143031 SAS Interview Questions

    21/25

    20?'ow wou! you !eete !u%icate observations&

    ans?usin) !u%7ey

    21?'ow wou! you co!e a mer)e that wi 7ee% ony 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

  • 8/13/2019 61143031 SAS Interview Questions

    22/25

    %ro)ram #or vauation

    I6O;MATs can be use! with the I:T>? #unction, an! 6O;MAT with the :T>? #unction.

    /?What is the %ur%ose o# the traiin) & The & 'ow wou! you use them&

    SAS %rovi!es two ine? ho!s the in%ut recor! #or the e"ecution o# the ne"t I:T statement.The !oube traiin) at si)n >? ho!s the in%ut recor! #or the e"ecution o# the ne"t I:T statement, even

    across iterations o# the $ATA ste%.

    in%ut ame 20. E or in%ut ame 20. E

    ?n!er what circumstances wou! you co!e a S335T construct instea! o# I6 statements&

    When you have a on) series o# mutuay e"cusive con!itions an! the com%arison is numeric, usin) a

    S335T )rou% is si)hty more e##icient than usin) a series o# I6

  • 8/13/2019 61143031 SAS Interview Questions

    23/25

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

    runE

    'OST A COMMENT

    Click here to cancel reply. Top of Form

    Nour emai is never%ubishe! nor share!. ;e8uire! #ie!s are mar7e! /

    ame /

    3mai /

    Website

    5omment

    Post Comment 15 2

    152 0

    Bottom of Form

    A!s by ^oo)e

    A0(i#n C'As 0 SAS 1

    ^oba SAS 0 Au!it S%eciaists 6ree 8uote9 ca Z44./4+./-.++4

    www.ai)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

  • 8/13/2019 61143031 SAS Interview Questions

    24/25

    XT: Interview Xuestions an! Answers

    5ZZ Interview Xuestions an! Answers

    :': Interview Xuestions an! Answers

    DM Interview Xuestions an! Answers

    avaScri%t Interview Xuestions an! Answers

    As%.et Interview Xuestions an! Answers

    233 Interview Xuestions an! Answers

    ABA: Interview Xuestions an! Answers

    :er Interview Xuestions an! Answers

    ava Interview Xuestions an! Answers

    ;esources

    Technoo)y Xuestion an! Answer Website

    'ow to !ance aroun! the saary

  • 8/13/2019 61143031 SAS Interview Questions

    25/25

    n!erstan!in) %ointers

    DM Tutorias

    D tutorias

    ;SS 6ee!s

    A %osts

    A comments

    :owere! by WordPress.Buit on theThematic Theme Framework.

    via)ra onine

    ciais #or sae

    ciais 20m)

    ciais onine

    B estm atchesf or i nterview q uestions o n B

    I S AS

    (x)more i mprovedv ersionf roms asw ithr espectt

    oB It oosa ndw ithm an!a dvancedf

    eat"res#$ "mp t o t ext %

    http://www.techinterviews.com/understanding-pointershttp://www.techinterviews.com/xml-tutorialshttp://www.techinterviews.com/xul-tutorialshttp://www.techinterviews.com/feedhttp://www.techinterviews.com/comments/feedhttp://wordpress.org/http://themeshaper.com/thematic-for-wordpresshttp://themeshaper.com/thematic-for-wordpresshttp://www.hindujahospital.com/http://www.freakangels.com/http://tsoalr.com/http://www.beardsworth.co.uk/http://www.techmedianetwork.com/advertisers.htmlhttp://www.techinterviews.com/understanding-pointershttp://www.techinterviews.com/xml-tutorialshttp://www.techinterviews.com/xul-tutorialshttp://www.techinterviews.com/feedhttp://www.techinterviews.com/comments/feedhttp://wordpress.org/http://themeshaper.com/thematic-for-wordpresshttp://www.hindujahospital.com/http://www.freakangels.com/http://tsoalr.com/http://www.beardsworth.co.uk/