Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Below are statements in a SAS data step. What will the values be for sub1 and sub2 after execution? string= & Bob & Carol
1.
Below are statements in a SAS data step. What will the values be for sub1 and sub2 after execution? string= "& Bob & Carol & Ted & Alice & Leonardo"; sub1= scan(string, 1); sub2= scan(string, -2); O sub1=1, sub2=& O sub1=2, sub2=Alice sub1=1, sub2=Alice O sub1=Bob, sub2=AliceBelow are statements in a SAS data step. What will the values be for sub1 and sub2 after execution? string= "& Bob & Carol & Ted & Alice & Leonardo"; sub1= index(string, "Bob"); sub2= scan(string, -2); O sub1=1, sub2=Alice O sub1=2, sub2=Alice O sub1=1, sub2=& sub1=3, sub2=AliceStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started