tag:blogger.com,1999:blog-38091418.post116665044814065072..comments2024-03-29T03:10:25.485-04:00Comments on SAS Base Certification: Base SAS 15Vikas Gadduhttp://www.blogger.com/profile/11712556748971188468noreply@blogger.comBlogger62125tag:blogger.com,1999:blog-38091418.post-2803456197968009102018-06-18T21:54:43.704-04:002018-06-18T21:54:43.704-04:00fk off you idiotfk off you idiotAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-53678536709802178942018-02-14T12:04:28.412-05:002018-02-14T12:04:28.412-05:00Exactly.
Just to clarify, before reaching the end ...Exactly.<br />Just to clarify, before reaching the end of record, the pointer is on position 10 and grabs the last 2 of Jose's age of 22, then moves to the next observation and for position 11 it picks up the 'S' from Sue, making the record '2S'. SAS flags the error and stops processing because '2S' is not numeric.Anonymoushttps://www.blogger.com/profile/16287425115245025928noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-46153771328048726672017-10-18T22:31:36.099-04:002017-10-18T22:31:36.099-04:00Very nice post.really I apperciate your blog.Thank...Very nice post.really I apperciate your blog.Thanks for sharing.keep sharing more blogs.<br /><br /><a href="https://thaimoviesblog.wordpress.com/" rel="nofollow">ทองดีฟันขาว</a><br />vaiyborahttps://www.blogger.com/profile/05095754542895387700noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-16009208179200244352017-10-05T21:42:30.540-04:002017-10-05T21:42:30.540-04:00To Nayan,
I'm getting the same answer when I...To Nayan, <br /><br />I'm getting the same answer when I run the code and just reading from columns 10-11 of the second input line. <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-58338488073818703482017-09-17T09:25:58.892-04:002017-09-17T09:25:58.892-04:00Absolutely this one would be '2'. They sh...Absolutely this one would be '2'. They should modify the question.sayanihttps://www.blogger.com/profile/06518016851993207547noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-33782959174458396092017-07-01T00:23:43.001-04:002017-07-01T00:23:43.001-04:00The only useful explanation. Thanks so much!The only useful explanation. Thanks so much!Anonymoushttps://www.blogger.com/profile/12263390947381583856noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-51268137451418733652017-06-20T21:54:22.851-04:002017-06-20T21:54:22.851-04:00THANKS!!! A GOOD EXPERIENCE.
gclub
gclub casino on...THANKS!!! A GOOD EXPERIENCE.<br /><a href="http://www.gtzmn.com" rel="nofollow">gclub</a><br /><a href="https://www.gclub-casino.com" rel="nofollow">gclub casino online</a><br />Anonymoushttps://www.blogger.com/profile/16117016437619093322noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-39588184937497494942016-12-30T06:43:38.190-05:002016-12-30T06:43:38.190-05:00Answer B Answer B Amitnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-74700177363407751192016-04-19T04:30:37.053-04:002016-04-19T04:30:37.053-04:00Nope, the answer is "C".
The SAS ...Nope, the answer is "C".<br /><br /> The SAS System <br /> <br /> Obs NAME AGE ID <br /> <br /> 1 RUTH . 22 <br /> 2 SUE 40 . Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-24703878709644381892016-02-26T18:30:44.141-05:002016-02-26T18:30:44.141-05:00I initially thought "how could this be anythi...I initially thought "how could this be anything but D?" Then I ran the code (it's B - 22). Without trailing @-signs, each input statement progresses the PDV down one record. Therefore, the PDV reads in Ruth for employee_name. The condition that employee_name = Ruth holds, thus the input statement for idnum occurs. But there was no trailing @ to hold the input to the same record, so the PDV goes down to the next line to read in idnum = 22. The else statement doesn't happen so there is nothing read into age. It reaches the end of the data step, and by default outputs the observation: 'Ruth 22 .'. (The PDV order is name-id-age).<br /><br />To check this, take out the if/then statements and just run the data step with three input statements in a row - Ruth 22 30. Each input starts on the next record.<br /><br />This was under the assumption that the data was poorly copied here, and that age does start at column 7 and idnum at column 10. Otherwise, it would give 2 for idnum.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-59118109954368563982016-01-23T11:02:41.421-05:002016-01-23T11:02:41.421-05:00yes,agree with Yogeshyes,agree with YogeshAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-82142908856301543142015-12-15T14:19:19.284-05:002015-12-15T14:19:19.284-05:00data test;
input employee_name $ 1-4;
if employee_...data test;<br />input employee_name $ 1-4;<br />if employee_name = 'Ruth' then input idnum 10-11;<br />else input age 7-8;<br />datalines;<br />Ruth 39 11<br />Jose 32 22<br />Sue 30 33<br />John 40 44<br />;<br />run;<br /><br />the value of idnum is 2 where employee_name is 'Ruth';Nayanhttps://www.blogger.com/profile/04938995860809055600noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-79330911289565598532015-12-15T14:17:01.722-05:002015-12-15T14:17:01.722-05:00This comment has been removed by the author.Nayanhttps://www.blogger.com/profile/04938995860809055600noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-67004244967861476162015-11-03T22:16:56.017-05:002015-11-03T22:16:56.017-05:00Please try program in SAS before you post answers ...Please try program in SAS before you post answers here.... B is right answerAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-24591967024832547122015-08-06T22:01:28.408-04:002015-08-06T22:01:28.408-04:00True. The column numbering is incorrect.
But B is...True. The column numbering is incorrect. <br />But B is correct answer. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-81462986917337571442015-07-10T17:10:02.787-04:002015-07-10T17:10:02.787-04:00nice1nice1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-15635716657534724062015-04-29T11:58:49.270-04:002015-04-29T11:58:49.270-04:00BBH. C.https://www.blogger.com/profile/14171988747529610311noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-19342578352052769372015-02-11T18:23:20.236-05:002015-02-11T18:23:20.236-05:00gm;;;;
Dgm;;;;<br /><br />DAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-8942385241790649592014-02-18T04:41:30.882-05:002014-02-18T04:41:30.882-05:00DDAnonymoushttps://www.blogger.com/profile/00977501549894050714noreply@blogger.comtag:blogger.com,1999:blog-38091418.post-86848291549834496152013-12-03T12:02:10.588-05:002013-12-03T12:02:10.588-05:00You can't really see it but the datalines are:...You can't really see it but the datalines are:<br />Ruth<2spaces>39<1space>11<br />Jose<2spaces>32<1space>22<br />Sue<2spaces>30<1space>33<br />John<2spaces>40<1space>44<br /><br />I did this to match the column inputs.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-47410230331314180542013-12-03T11:59:35.886-05:002013-12-03T11:59:35.886-05:00data test;
infile datalines;
input employee_name $...data test;<br />infile datalines;<br />input employee_name $ 1-4;<br />if employee_name = 'Ruth' then input idnum 10-11;<br />else input age 7-8;<br />datalines;<br />Ruth 39 11<br />Jose 32 22<br />Sue 30 33<br />John 40 44<br />run;<br /><br />The answer is B.<br />No trailing @ after the first input, so the idnum/age value is read from the line below. Ruth has Jose's idnum of 22 (one line down) (missing age), because the if/then is true. If we keep going, the next name read in is Sue with Johns age (because the if/then is false) of 40 (missing idnum).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-78479628997958283442013-11-25T17:16:58.875-05:002013-11-25T17:16:58.875-05:00it's c god you guys are dumbit's c god you guys are dumbAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-32255837176614645852013-08-01T15:26:34.891-04:002013-08-01T15:26:34.891-04:00i agree!i agree!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-12904455260046188952013-05-04T14:49:47.202-04:002013-05-04T14:49:47.202-04:00Thank you, this is the only explanation that made ...Thank you, this is the only explanation that made sense.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38091418.post-6680174586361275902012-07-15T18:57:30.004-04:002012-07-15T18:57:30.004-04:00C is correct, align the raw data as per ruler,
--...C is correct, align the raw data as per ruler, <br />--------10-------20-------30<br />Ruth 39 11<br />Jose 32 22<br />Sue 30 33<br />John 40 44prknoreply@blogger.com