DATA Step, Macro, Functions and more

.

Reply
Occasional Contributor
Posts: 8

.

[ Edited ]

 

Thanks

Trusted Advisor
Posts: 3,214

Re: My variabel is not integer

of course are real numbers not integers, that are real number for (floating). Maybe the complex numbers are better. ...
Never mind you want to give a number as integer, rounded up/down? You could do that before/with the symput

No idea whether it makes logical sense as technical it will work.   

---->-- ja karman --<-----
Super Contributor
Posts: 275

Re: My variabel is not integer

Not sure what you want to do, but when you define a array, its subscript should be integer(not include 0), in your case, its  array ep{0:&max}, its include 0 and &max is not integer.

Occasional Contributor
Posts: 8

Re: My variabel is not integer

[ Edited ]

Thanks

Trusted Advisor
Posts: 3,214

Re: My variabel is not integer

I do not know the analytics design you copied. When the intention of that was only working wiht integers than feeding that with real numbers will be problematic from start. what is what you want to do? Does the code you are using having a fit with that?

---->-- ja karman --<-----
Super User
Posts: 19,805

Re: My variabel is not integer

[ Edited ]

The issue was identified - the code uses an array to process data but the parameter you pass into the array is not an integer and it generates an error. I'm going to make a possibly incorrect assumption that you don't understand the program you're using. I would highly suggest you try and understand the program you're using before using it.

 

I only skimmed your program but I wonder if you shouldn't be using &n instead of &max in your program. It's more common to use the count as an array dimension rather than max...but I have no idea what your code is doing Smiley Happy

Occasional Contributor
Posts: 8

Re: My variabel is not integer

[ Edited ]

 

Thanks

Trusted Advisor
Posts: 3,214

Re: My variabel is not integer

https://support.sas.com/rnd/app/examples/stat/GENMODZIP/roots.pdf  Is this helpfull number of roots vs BAP?

---->-- ja karman --<-----
Super User
Posts: 19,805

Re: My variabel is not integer

An array does not need integers, but the size of the array must be a whole number.
Ask a Question
Discussion stats
  • 8 replies
  • 368 views
  • 0 likes
  • 4 in conversation