Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

1.

image text in transcribedimage text in transcribed
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=Alice

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Analysis

Authors: Stephen Abbott

1st Edition

6610189684, 9786610189687

More Books

Students also viewed these Mathematics questions

Question

1. Information that is currently accessible (recognition).

Answered: 1 week ago