DATA Step, Macro, Functions and more

which one is the right answer?

Accepted Solution Solved
Reply
Contributor K_S
Contributor
Posts: 25
Accepted Solution

which one is the right answer?

Which one of these is correct?

 

Macro character functions:

a).Can be used to manipulate character strings in macro variable values.

b).Have the same basic syntax as the corresponding DATA step functions and yield similar results.

c).All of the above

d).None of the above


Accepted Solutions
Solution
‎03-10-2017 10:00 AM
Super User
Posts: 5,498

Re: which one is the right answer?

C

 

Do you know any of the macro character functions?  %UPCASE similar to UPCASE.  %SUBSTR similar to SUBSTR.

View solution in original post


All Replies
Solution
‎03-10-2017 10:00 AM
Super User
Posts: 5,498

Re: which one is the right answer?

C

 

Do you know any of the macro character functions?  %UPCASE similar to UPCASE.  %SUBSTR similar to SUBSTR.

Super User
Posts: 7,762

Re: which one is the right answer?

Study the documentation of the macro character functions and data step character functions, so you find the corresponding ones.

Then compare the macro functions with the data step functions, and you'll find the answer yourselves. If the answer you find is different from the answer given in the quiz, and you can't find out why, come back here and ask for the reason.

Doing things like that (studying documentation) is fun for me; if it's not for you, you should seriously consider work in another field far removed from programming and SAS (basically, computing as such)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 126 views
  • 3 likes
  • 3 in conversation