Help using Base SAS procedures

Proc FCMP Overflow Error

Reply
Frequent Contributor
Posts: 99

Proc FCMP Overflow Error

Hi everyone,

                     I am getting an overflow error for the following code when I use power call.

                      Is there a    workaround to get the result.  

         

                    I appreciate all the help.

Amit

Code:

proc fcmp;

array A[1000,1000] / nosymbols;

  array p[1000,1000] / nosymbols;

    do i = 1 to 1000;

      do j = 1 to 1000;

         A[i, j] = RANUNI(12345);

  if A[i, j] le .9 then A[i, j] = 0;

  else A[i, j] = 1;

   end;

     end;

call POWER (A, 999, p);

rc = write_array('power', p);

run;

Error:

ERROR: An overflow occurred during execution in function 'POWER' in statement number 10 at

       line 8998 column 2.

Ask a Question
Discussion stats
  • 0 replies
  • 182 views
  • 0 likes
  • 1 in conversation