Write and run SAS programs in your web browser

Fix to SAS/Studio automatic code

Accepted Solution Solved
Reply
Super User
Super User
Posts: 5,975
Accepted Solution

Fix to SAS/Studio automatic code

[ Edited ]

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.


Accepted Solutions
Solution
‎08-16-2016 02:16 PM
Super User
Super User
Posts: 5,975

Re: Fix to SAS/Studio automatic code

[ Edited ]

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

View solution in original post


All Replies
Regular Contributor
Posts: 227

Re: Fix to SAS/Studio automatic code

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

Has my article or post helped? Please mark as Solution or Like the article!
Solution
‎08-16-2016 02:16 PM
Super User
Super User
Posts: 5,975

Re: Fix to SAS/Studio automatic code

[ Edited ]

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
Regular Contributor
Posts: 227

Re: Fix to SAS/Studio automatic code

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

Has my article or post helped? Please mark as Solution or Like the article!
Post a Question
Discussion Stats
  • 3 replies
  • 217 views
  • 1 like
  • 2 in conversation