Help using Base SAS procedures

maximum line length of 254 characters in expression builder

Reply
N/A
Posts: 0

maximum line length of 254 characters in expression builder

Hi SAS,
Is there any hot fix or something wrong I am facing this issue in DI studio3.4

"The line exceeds the maximum line length of 254 characters in expression builder"

Thanks,
Trusted Advisor
Posts: 2,113

Re: maximum line length of 254 characters in expression builder

Yes, and no. Check this SAS note for ideas.

http://support.sas.com/kb/16/461.html

(I'm not a DI user, so I don't know it's specific constraints, but if it builds SAS code, the ideas referenced may work.)

Doc Muhlbaier
Duke
N/A
Posts: 0

Re: maximum line length of 254 characters in expression builder

I think you misunderstood my question :

I am not able to write more than 254 characters in Expression window provided in SAS DI 3.4? its impacting my work.

Thanks,
Respected Advisor
Posts: 3,887

Re: maximum line length of 254 characters in expression builder

I couldn't find another note than the one Duke already mentioned.

Did you read that?
"One workaround for this problem is to define the entire expression as a
macro earlier in your job definition, then invoke this macro in the
Expression Builder window."

Not that this is pretty but: You could assign the whole expression to a macro var in the pre-processing part of your job and then just call this macro var in the expression builder window (I think that's under advanced where you can write your own expression - click, click...)

You have always the possibility to open a support track with our friends from SAS Tech Support: http://support.sas.com/ctx/supportform/index.jsp

HTH
Patrick
Super User
Posts: 5,255

Re: maximum line length of 254 characters in expression builder

I have no problem adding long expressions, as long as I use carriage returns in my code.

/Linus
Data never sleeps
Respected Advisor
Posts: 3,887

Re: maximum line length of 254 characters in expression builder

I investigated a bit more:
DI doesn't let you save too long lines (>254) as such lines would get truncated in SAS batch processing.
Linus got it once more right: Just add line breaks and everything will work fine.

Patrick
Ask a Question
Discussion stats
  • 5 replies
  • 968 views
  • 0 likes
  • 4 in conversation