SAS Tutorial | If-Then / Else Statements

  Рет қаралды 4,688

SAS Users

SAS Users

Күн бұрын

Пікірлер: 7
@AndrewNgundue
@AndrewNgundue 10 ай бұрын
Awesome, session Brittany.
@babajara2725
@babajara2725 Жыл бұрын
Thank you Brittany. Exactly what I was looking for.
@AV-nf8xd
@AV-nf8xd Жыл бұрын
Awesome !
@SASUsers
@SASUsers Жыл бұрын
We're glad you enjoyed it 😀
@devdubey5574
@devdubey5574 2 жыл бұрын
Hi Brittany if someone supplies a name of dataset ( which is existing in sas environment) in the conditional expression of if statement then what will be interpreted by sas?
@SASUsers
@SASUsers 2 жыл бұрын
Dev, thank you for your inquiry! We are checking on this for you!
@SASUsers
@SASUsers 2 жыл бұрын
Hi Dev! Unless you were using the EXIST function, it would be rare to use the NAME of a SAS data set in a regular DATA step IF condition. Typically, you are using the NAME of a dataset within a SAS Macro program in order to conditionally execute code, using a SAS Macro %IF condition, as shown in this Tech Support note: 2.sas.com/60583PLfn . Unless you are using a pre-defined library, you would, of course, need a LIBNAME statement for the SAS library and you'd need to refer to the dataset correctly with the 2-level name in your code. If the dataset was in the WORK library, the SASUSER or SASHELP libraries, then you would not need to use a LIBNAME statement. We can't post code or screen shots in this feedback area and using the NAME of a data set inside a Macro program %IF condition falls outside the scope of this video topic. You should be able to use the code posted in the Tech Support note to experiment with the concept of using a dataset NAME conditionally. === ===
SAS Tutorial | LIBNAME 101
9:28
SAS Users
Рет қаралды 12 М.
A Beginners Guide to Using Arrays and DO Loops
20:23
SAS Users
Рет қаралды 18 М.
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
If Else Statements in Python // Python RIGHT NOW!! // EP 4
14:19
NetworkChuck
Рет қаралды 437 М.
Introduction to SAS (using SAS OnDemand for Academics)
1:12:50
librarianwomack
Рет қаралды 4 М.
SAS Tutorial | 3 Steps to Build a SAS Macro Program
14:24
SAS Users
Рет қаралды 23 М.
SAS Tutorial | 5 Ways to Make Your SAS Code Run Faster
17:58
SAS Users
Рет қаралды 10 М.
If Then Else Statement In SAS
11:27
Analytics School
Рет қаралды 5 М.
Using Macro Code If-Then and Do Loops in SAS | Data Tutorial | Macros
11:38