libname ABCDEFGH postgres server="Server_Address.com" port=5432 user=kevin password="P@ssW0rd" database=DBName schema=SchemaName; Data work.my_data_file; Result 1 = ABS(2.2); Result 2 = ABS(-2.3); run; proc print data=my_data_file; run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result 1 | 2.2 | 2.2 | Input was already positive; no change |
Result 2 | -2.3 | 2.3 | Input was negative, absolute value converted it to positive |
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.