Hello, Everyone,
I try to use _NUMERIC_ to change the output format of all numeric variables to avoid scientific notation. However, the code below doesn't work.
The result is:
Thanks for your help.
Just a few points to consider ...
If you are not going to use scientific notation, just how are you going to express 1345567 in only 4 characters?
_NUMERIC_ is still part of the software, however its meaning is mildly tricky when used in a DATA step. There, it means "all the numeric variables that have been defined so far". Since you put the FORMAT _NUMERIC_ statement before the SET statement, no numeric variables have been defined at that point. So the FORMAT statement has no impact. If you move it to after the SET statement, you will see a difference.
Please post code in a code box opened using the forum {i} menu icon.
if we want to test some code it is much easier for us to copy it from the code box instead of having to completely retype code posted as a picture. If your example code runs more than a very few lines I doubt many of the users here will bother to retype it to test.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.