How can we get SAS to update the code that SAS/Studio automatically pre-pends to the user code? I am getting annoyed with this note that always appears at the top of my program logs.
INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
22:1 RC
It is caused by this bit of code.
RC=TSLVL('GEOCODE','N');
_ERROR_=0;
IF (RC^=' ') THEN DO;
CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
END;
They could fix it by adding a LENGTH statement. Or moving the function call into the IF statement since they aren't using the RC variable for anything anyway.
Here is the responce I got from SAS Support.
Hello Tom, Thanks for reporting the problem with the INFO notes in the SAS log.
I will enter a defect on this so that it can be addressed.
Thanks again! SIncerely, Chevell
Hey Tom!
I've found a couple of these myself, particularly in SAS University Edition. I find that emailing SAS Support directly is the best way to get these added to the list. Alternatively, you can add your idea to SAS Ballot; being someone as active as you are here, I'm sure you're already aware of both these options, I just wanted to give you my thoughts based on experience.
Good luck and chat soon
Chris
Here is the responce I got from SAS Support.
Hello Tom, Thanks for reporting the problem with the INFO notes in the SAS log.
I will enter a defect on this so that it can be addressed.
Thanks again! SIncerely, Chevell
Well that's better than nothing 🙂 hope it gets resolved soon. In case you missed it, SAS has enabled us to download fixes just for SAS/Studio, without having to relicense all of SAS - so when the fix comes out, you'll get it right away. I think this is great news.
have a great weekend!
Chris
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.