DATA Step, Macro, Functions and more

function

Reply
Contributor
Posts: 20

function

Three questions:

 

1. convert all consonants in the values for country and state variable to uppercase all vowels to lowercase

 

2. use the variable super to indicate winner, runner up, and non - contenders notes:  winner for river, runner up for fox, non contenders for other teams

 

3. assign variable conference for each team:

Bills belong to conference South

River belong to conference SW

 

Thx

 

 

 

 

SAS Moderator
Posts: 48

Re: function [how to improve your question]

Hello @elsalam,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message.  From there you can adjust the title and add more details to the body of the message.  Or, simply reply to this message with any additional information you can supply.

 

edit_post.png

SAS experts are eager to help -- help them by providing as much detail as you can.

 

This prewritten response was triggered for you by fellow SAS Support Communities member @KurtBremser

.
Super User
Posts: 22,850

Re: function

Homework? If you need help you need to provide more information, specifically, what are you trying to do, what do you have and what have you tried so far. 

 

 


@elsalam wrote:

Three questions:

 

1. convert all consonants in the values for country and state variable to uppercase all vowels to lowercase

 

2. use the variable super to indicate winner, runner up, and non - contenders notes:  winner for river, runner up for fox, non contenders for other teams

 

3. assign variable conference for each team:

Bills belong to conference South

River belong to conference SW

 

Thx

 

 

 

 


 

Ask a Question
Discussion stats
  • 2 replies
  • 89 views
  • 0 likes
  • 3 in conversation