Question57:GiventheSASdatasetONE:

ONE

ObsDte

-------------

109JAN2005

212JAN2005

ThefollowingSASprogramissubmitted:

datatwo;

setone;

day=(insertexpressionhere);

formatdtedate9.;

run;

ThedatasetTWOiscreated:

TWO

ObsDteDay

109JAN20051

12JAN20054

WhichexpressionsuccessfullycompletedtheprogramandcreatedthevariableDAY?

1.day(dte)

2.Get all Questions and Answer from here

3.You need to have paid subscription to access all questions

4.Thanks for considering Python Certification Material

CorrectAnswer:2FindingtheDayoftheWeek

SAShasvariousfunctionsthatproducecalendardatesfromSASdatevalues.SASdatefunctionsenableyoutodosuchthingsasderivepartialdateinformationorusethecurrentdate

incalculations.Ifthefinalpaymentforatourisdue30daysbeforethetourleaves,thenthefinalpaymentdatecanbecalculatedusingsubtraction;however,TradewindsTravelis

closedonSundays.IfthepaymentisdueonaSunday,thenanadditionaldaymustbesubtractedtomakethepaymentdueonSaturday.TheWEEKDAYfunction,whichreturnsthedayof

You can access to full explanation to question and answer from this page.