BookmarkSubscribeRSS Feed
MervynChan
Calcite | Level 5

35.png

There are total 1000 data. I can't show it all here, but the data below are basically the same. Please help, thanks.

36.png

10 REPLIES 10
MervynChan
Calcite | Level 5

32.png

 

mkeintz
PROC Star

Want help on this homework too?

 

Show us what you tried, and what the results (in both log and resulting data sets) are.

 

Help us help you help yourself.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
MervynChan
Calcite | Level 5

I am a beginner in SAS. But I can't find related notes for this question and I am quite confused in using SAS because I am not familiar with its programming language. I have stuck on this question for several days already. Please help!!!!!!!

Kurt_Bremser
Super User

I merged both your questions into one, and edited all the subject lines.

The fact that you used just "SAS" (although being asked for a descriptive subject line when posting) does not shine a positive light on your willingness to do work and use the tool that sits between your ears.

 

Provide example data in usable form, and show us what you already tried.

MervynChan
Calcite | Level 5

I tried those questions and finding related notes for a long time. But really don't know what functions need to be used for Question 1 and Question 2. Can you just provide the ways for me and I will try it myself.

Kurt_Bremser
Super User

Some hints for the first question:

data
  subset_a
  subset_b
;
if /* insert first condition here */ then output subset_a;
if /* insert second condition here */ then output subset_b;
run;
ChrisNZ
Tourmaline | Level 20

Do your homework. 

We can help you if needed. It's still your homework. 

I find this was to ask a question quite cheeky really. 😞

mkeintz
PROC Star

Want help on homework?

 

Show us what you tried, and what the results (in both log and resulting data sets) are.

 

Help us help you help yourself.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
MervynChan
Calcite | Level 5

I am a beginner in SAS. But I can't find related notes for this question and I am quite confused in using SAS because I am not familiar with its programming language. I have stuck on this question for several days already. Please help!!!!!!!!!!!

ballardw
Super User

Do you have a SAS data set at all? Not very clear from your question.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 10 replies
  • 1289 views
  • 1 like
  • 5 in conversation