A SAS programmer is building a scoring pipeline in DS2. Which statement correctly defines a DS2 package method signature for a scoring function that takes two numeric inputs and returns a numeric prediction?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Here's the deal — a is correct because in DS2 (SAS's modern data programming language), a method signature uses the METHOD keyword followed by the method name and a parameter list where each parameter specifies direction (IN/OUT), type (DOUBLE for numeric), and name. B uses SAS macro function syntax, not DS2.
Full explanation below image
Full Explanation
A is correct because in DS2 (SAS's modern data programming language), a method signature uses the METHOD keyword followed by the method name and a parameter list where each parameter specifies direction (IN/OUT), type (DOUBLE for numeric), and name. B uses SAS macro function syntax, not DS2. C uses PROC step syntax, not DS2 method syntax. D is fabricated syntax that does not exist in DS2.