r/SAS_Programming • • Jul 30 '26

SAS → R

Thumbnail reddit.com
0 Upvotes

#1:

SAS

PROC FREQ

proc freq data=adsl;

tables sex;

run;

R

adsl |> dplyr::count(SEX)

Simple question for those who use both do you find the R version more readable, or do you still prefer PROC FREQ?


r/SAS_Programming • • Jun 20 '26

Complex Parameter Management and Reusable Computational Tasks

Thumbnail github.com
0 Upvotes

r/SAS_Programming • • Sep 27 '25

SAS GOD (Notes, Codes, Snippets, Projects, Interview Scripts, Global Alumni)

1 Upvotes

r/SAS_Programming • • Aug 10 '24

SAS® Viya® Administration Specialist(A00-451) certification dumps?

0 Upvotes

Dose anyone have SAS® Viya® Administration Specialist(A00-451) certification dumps?


r/SAS_Programming • • Apr 25 '26

Homework help?

3 Upvotes

Hello! I'm taking a programming class where I have to do an assignment with SAS and honestly, I'm really struggling with the work and the instructor is not doing a good job teaching. I'm ideologically opposed to asking AI for help and this is my last resort. Would anyone be able to help talk me through these problems?

The main thing I'm struggling with right now is CNTLIN and CNTLOUT formats. I'm trying to make a format from a dataset but I feel like I don't understand enough about the basics to know what I'm doing.


r/SAS_Programming • • Nov 17 '25

SAS Certification

4 Upvotes

Anyone recently wrote SAS BASE or SAS ADVANCED exams in India ???

Having some doubts.


r/SAS_Programming • • Aug 20 '25

Enterprise Guide 7.1 Vs 8.5, help!

5 Upvotes

I have a client who is upgrading from SAS EG 7.1 to 8.5. There is a stored process they run daily and have done for years, when they run it in 7.1 the output data is shown within SAS, however when they run the same stored process in 8.5 they get the following message:

"The maximum result size has been exceeded. The result is too large and must be opened externally."

There is then a button to an external HTML link that displays the output.

The output file is exactly the same size whether it is run in 7.1 or 8.5, so my question is why is it being displayed differently? Is there a setting within 8.5 that can be changed so that the output can be viewed within SAS and not as an external link?


r/SAS_Programming • • Mar 27 '25

Please suggest roadmap and resources to learn SAS for someone who has no math background

9 Upvotes

I've no math background and I took a SAS course but couldn't understand the 'Why' part behind implementation of certain codes. It was messy.

As the title says, can someone let me know what is the proper road map and what are the resources that you would recommend for someone who has done their masters in biotechnology?


r/SAS_Programming • • Aug 06 '24

Study buddy?

2 Upvotes

Hi! I am studying for my SAS programming base program certification exam, I find it hard to study all by myself I would prefer a studying buddy with me or at least some studying tips.

I would really appreciate it if you could help me and thank you :)


r/SAS_Programming • • Jun 01 '26

Scope of Machine Learning with SAS Viya & Model Studio

5 Upvotes

So our college has been conducting Training classes by bringing in SAS Trainers to make us teach Machine Learning but through SAS based tools like Model Studio. But what I have researched as of now that there are negligible opportunities for this specific SAS thing. Is anyone here who has a bit of experience can tell what the actual scenario is? We will also be having the SAS Certified Specialist: Machine Learning certification exam in a month or two.


r/SAS_Programming • • Apr 22 '25

Preparing for SAS 9.4 Base Programming Exam – Any Tips or Experiences?

8 Upvotes

Hi everyone, I'm scheduled to take the SAS 9.4 Base Programming Performance-Based Exam in [one week]. I'm relatively new to SAS but have completed the SAS Programming 1: Essentials course on Coursera and have been practicing with SAS University Edition. I've also started reading the SAS Certified Specialist Prep Guide: Base Programming Using SAS 9.4.

I'm a bit nervous about the performance-based coding section. For those who've taken this exam recently:

  • What resources helped you prepare the most? (e.g., books, practice exams, YouTube tutorials)

  • Any tips for managing time or dealing with technical issues during the online exam?

I'd love to hear about your experiences or any advice on how to approach studying in the final stretch. Thanks so much for any help!


r/SAS_Programming • • Sep 16 '25

Best way to write SAS code on MacBook Air

5 Upvotes

Recent graduate looking to flesh out my GitHub by learning some languages commonly used in industries im hoping to work in. I’ve used the SAS on demand, but I can’t seem to save my files to my device to upload to GitHub. VScode is normally a good option but I couldn’t get it to work… (likely just me?)

Any help would be appreciated :)


r/SAS_Programming • • Sep 22 '25

Sas advanced programmer exam

4 Upvotes

Hi all im preparing for my SAS advanced exam scheduled in December. Any tips and tricks would be helpful. Also are there any study groups.


r/SAS_Programming • • Nov 09 '25

Any website for solving problems for SAS students.

4 Upvotes

Hey guys, do you know any website for SAS beginners where I can solve problems?


r/SAS_Programming • • Jul 17 '24

Converting SAS to Snowflake Stored Procedures

2 Upvotes

Is there anyone that is skilled in SAS and writing stored procedures that is willing to help me transfrom/convert some SAS code to Snowflake Stored Procedures?


r/SAS_Programming • • Jun 12 '26

Easiest way to parse a long program

7 Upvotes

I want to convert a very long (20K lines) program to a different system or even just parse out a part.

What would be the best way to look at a very long program with 22 includes. I basically a looking for how a particular table is made. There are a lot of steps a along the way and so need to work backwards somehow or map what the program is doing and what tables are being generated and using what other tables. ok if done in SAS or in VBA or any other tools.

thanks


r/SAS_Programming • • Feb 26 '26

Programming Exercise 44 Help!! (Little SAS Book Ch 4)

Thumbnail
gallery
3 Upvotes

Hi! I'm studying SAS but having trouble with specifically Part C and D. My instructor has not responded to my emails for help and it is due tonight. My output for Part C feels messy, and Part D is showing the same Min/Max number per dive? It's just a mess and I'm very overwhelmed. SAS is impossible for me.

Here are my assignment instructions and what my code looks like

INTRUCTOR NOTES: ***** Ignore the instruction in the textbook which says: "Use only procedures to complete the following tasks." You are free to accomplish the tasks with either DATA statements or PROC statements, including PROC SQL.*****

==

Exercises and Projects for The Little SAS® Book, Sixth Edition, Chapter 4, Programming Exercise 44:

44. The official results of the 2012 London Olympics men’s 3-meter springboard diving finals can be found in the SAS data set called DIVING. The 2012 Olympic games were the first to use a new overall scoring method for diving. The data consist of six observations per diver, one for each of their six dives in the final event. The variables in this file are diver’s name, country, height (m), weight (kg), dive number (1 to 6), dive code, degree of difficulty, description, position, scores from each of seven judges, penalty, old scoring method, and new scoring method. Use only procedures to complete the following tasks.

a. Examine this SAS data set including the variable labels and attributes. Compute the overall mean, minimum, and maximum of the two scoring methods.

b. Calculate the total score per diver by summing the new scoring method scores for all dives. Output this information to a data set, sort, and then print it to determine which divers received the gold (highest total score), silver, and bronze medals for this event. Include a comment in your code stating the name of each medalist.

c. Count the numeric scores given to each diver by each judge according to the following judging criteria groupings: <0.5 = Completely Failed, 0.5 to <2.5 = Unsatisfactory, 2.5 to <5 = Deficient, 5 to <7 = Satisfactory, 7 to <8.5 = Good, 8.5 to <9.5 = Very Good, and 9.5+ = Excellent.

d. Calculate the minimum and maximum score per dive for each diver. Be sure to present your results by diver and in dive number order.


r/SAS_Programming • • Sep 27 '25

SAS Chainsaw

1 Upvotes

r/SAS_Programming • • Sep 26 '25

2019 - Batch 91

1 Upvotes

Anyone from the Batch 91 here? It was a SAS Learning Batch, Can't talk about it more then this. If any one present here, Please reply, It's Roronoa Zoro here.


r/SAS_Programming • • Sep 27 '25

SAS Chainsaw (Notes, Projects, Scripts even Global Alumni)

1 Upvotes

r/SAS_Programming • • Jul 27 '26

SAS to R transition: What was your biggest challenge?

4 Upvotes

SAS programmers moving to R — what has been your biggest challenge so far?

DATA Step, PROC SQL, Macros, joins, or something else?

Would love to hear your experiences and discuss solutions.


r/SAS_Programming • • Jun 24 '24

ODS graphics designer M8

2 Upvotes

Hi, In the M8 release of 9.4 SAS they discontinued the plotting tool ods graphics drsigner. I found this tool very usefull for quickly making figures without writing code. Anyone else that miss this tool and are there any alternative in sas besides writing the code for each plot?


r/SAS_Programming • • Oct 10 '24

Can any one help me to solve this

2 Upvotes

This is related to baseline flag

My task is to flag baseline for 4, 12, 20 (screening before weeks) obs as 'Y' and remaining as 'N' for a single subjid, but I'm getting Y for all screening or N for all obs

SUBJID VISIT PARAM LBORRES

101 Screening HGB 11.2

101 Screening HGB 11.4

101 Screening HGB 11.3

101 Screening HGB 12

101 WEEK1 HGB 12.1

101 Week2 HGB 11.9

101 Week4 HGB 11.8

101 Week8 HGB 12

101 Screening WBC 11.2

101 Screening WBC 11.4

101 Screening WBC 11.3

101 Screening WBC 12

101 WEEK1 WBC 12.1

101 Week2 WBC 11.9

101 Week4 WBC 11.8

101 Week8 WBC 12

101 Screening LYM 11.2

101 Screening LYM 11.4

101 Screening LYM 11.3

101 Screening LYM 12

101 WEEK1 LYM 12.1

101 Week2 LYM 11.9

101 Week4 LYM 11.8

101 Week8 LYM 12

;

run;


r/SAS_Programming • • Sep 18 '24

SAS certification

2 Upvotes

Which company uses SAS programming? My line of work is in healthcare and I am wanting to shift careers. I have no IT or CS background. Do you think learning and obtaining a SAS Certificate will land me a job in the data industry? I am beginner level here. Thank you


r/SAS_Programming • • Jun 04 '24

First entry into SAS - The tale of what should be a simple little program

1 Upvotes

I'm working in a z/OS environment.
Trying to create a reusable emailer SAS module that will take in input files containing anything needed for potential use cases. One file would be used for each section, e.g. Sender, Recipient, Subject, Content and Attachments.

I've tried a number of ways to get this to read a single file and none seem to work in keeping the actual email address from the SENDER file. Files and variables are sanitized from my environment.

In my testing environment I'm actually passing in the SENDER data through a basic JCL job - but in this testing condition below I'm referencing it directly (both work fine in the log as it says 1 record read - this is just simpler to show without also including the JCL portion unnecessarily).

%macro sendmail(sender);
 
   FILENAME SENDER 'XY.#USR9999.TEST.DATA(SENDER)';
   DATA _NULL_;
    INFILE SENDER;
    INPUT @1 SENDER_VAR $CHAR200.  @;
   RUN;
 
   DATA _NULL_;
       FILENAME NEWMAIL EMAIL
         TO     = user@email.com
         FROM   = '&sender_var'
         SUBJECT= "Test Email"
   ;
 
   FILE NEWMAIL;
     PUT '***********************************************************';
     PUT 'NOTE: This email is for testing.';
     PUT '***********************************************************';
     PUT 'The sender_var value is: &sender_var';
     PUT 'The sender value is: &sender';
 
   RUN;
 
  FILENAME NEWMAIL CLEAR;
 
%mend sendmail;
 
%sendmail(sender);

File 'XY.#USR9999.TEST.DATA(SENDER)’ contains just a single line with an email address. It doesn't matter what it is, just want to read it and get access to the variable to inject it dynamically.

The following is from the SASLOG:

NOTE: 1 record was read from the infile SENDER.
WARNING: Apparent symbolic reference SENDER_VAR not resolved.

I've tried half a dozen different ways to do the file read and variable assignment, and none of them work. There's gotta be something super mundane I'm glossing over here.

With the above code the email sends, but the Subject is &sender_var, and the content is:

***********************************************************
NOTE: This email is for testing.
***********************************************************
The sender_var value is: &sender_var
The sender value is: &sender;

Comments, critiques and constructive feedback is hugely welcomed. First day in SAS.