Question49:ThefollowingSASprogramissubmitted:
datawork.sets;
dountil(prodgt6);
prod+1;
end;
run;
WhatisthevalueofthevariablePRODintheoutputdataset?
1.6
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:2
Becauseofprod+1statement,SAScompilerwillassumearetainprod0;statement.
Firstloop=>prod=1=>(1gt6)=>false,loopcontinues
Secondloop=>prod=2=>(2gt6)=>false,loopcontinues
.....
lastloop=>prod=7=>(7gt6)=>true,dountilloopexitsandpdvwritesprodvalueof7tooutputdataset.
Syntax
DOUNTIL(expression);
You can access to full explanation to question and answer from this page.