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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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