SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
muyco_didie
Calcite | Level 5

Hi. I just started at a new company as an intern. I am currently preparing for my base 9 certification.

I just wanted to ask what is the difference between SAS 9.3 and SAS 9.4?

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @muyco_didie (and welcome to the SAS Support Communities!),

 

The "What's new" documentation (see links provided by Kurt Bremser) can be quite daunting, even for experienced SAS programmers. It contains many items that you are unlikely to use in your entire career.

 

Let me pick a few items (in arbitrary order) which I personally find useful to know:

  • The official return of the DELETE procedure
  • The existence of the new DS2 and FedSQL procedures*
  • PROC REPORT: NOWD option is now the default.
  • REGEXP option of the INVALUE statement of PROC FORMAT
  • System option LRECL: 32767 is the new default (was 256 before).
  • DO_OVER method of the SAS hash object
  • KEYRESET= option of the SET statement
  • DOSUBL function
  • RAND function: new INTEGER distribution (not in early 9.4 releases) and additional arguments for the UNIFORM distribution.

* Even if you don't use these procedures, you need to be more careful nowadays when searching keywords in the SAS documentation (online or offline): Often you get additional links for a Base SAS keyword to the DS2, FedSQL and other documentation and can be easily confused if you click the wrong link.

 

Good luck for your internship and the certification!

 

@LinusH wrote:
-0.1?

@LinusH: Not exactly, though. 😉

 

1    data _null_;
2    if 9.3-9.4 ne -0.1 then put 'Surprise!';
3    run;

Surprise!
NOTE: DATA statement used (Total process time):

 

View solution in original post

5 REPLIES 5
LinusH
Tourmaline | Level 20
-0.1?
Data never sleeps
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Exactly what I was going to post!

 

@muyco_didie:  There are a fair few differences between the two versions, however nothing major in terms of basic SAS use though.  

FreelanceReinh
Jade | Level 19

Hi @muyco_didie (and welcome to the SAS Support Communities!),

 

The "What's new" documentation (see links provided by Kurt Bremser) can be quite daunting, even for experienced SAS programmers. It contains many items that you are unlikely to use in your entire career.

 

Let me pick a few items (in arbitrary order) which I personally find useful to know:

  • The official return of the DELETE procedure
  • The existence of the new DS2 and FedSQL procedures*
  • PROC REPORT: NOWD option is now the default.
  • REGEXP option of the INVALUE statement of PROC FORMAT
  • System option LRECL: 32767 is the new default (was 256 before).
  • DO_OVER method of the SAS hash object
  • KEYRESET= option of the SET statement
  • DOSUBL function
  • RAND function: new INTEGER distribution (not in early 9.4 releases) and additional arguments for the UNIFORM distribution.

* Even if you don't use these procedures, you need to be more careful nowadays when searching keywords in the SAS documentation (online or offline): Often you get additional links for a Base SAS keyword to the DS2, FedSQL and other documentation and can be easily confused if you click the wrong link.

 

Good luck for your internship and the certification!

 

@LinusH wrote:
-0.1?

@LinusH: Not exactly, though. 😉

 

1    data _null_;
2    if 9.3-9.4 ne -0.1 then put 'Surprise!';
3    run;

Surprise!
NOTE: DATA statement used (Total process time):

 

LinusH
Tourmaline | Level 20

...sigh...this is tiny bit of SAS that I haven't really came to terms with, since:

32         data _null_;
33         a = 9.3 - 9.4;
34         if a ne 0.1 then put "WTF";
35         put a;
36         run;

WTF
-0.1

Really...but this a separate subject I guess

Data never sleeps

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 5 replies
  • 7473 views
  • 3 likes
  • 5 in conversation