Questions tagged [fcmp]

FCMP is the SAS function compilation language, allowing users to write functions and subroutines that can be used in SAS data steps, DS2 packages, and certain proc steps.

PROC FCMP allows you to compile SAS user-written functions and subroutines for use in the SAS data step, and certain SAS procs (such as modelling procs). FCMP is a language that is still under substantial development, and has significant feature improvements with every iteration of the SAS language.

21 questions
0
votes
1 answer

How to correct this sas function in order to have the jaccard distance?

I created a SAS function using fcmp to calculate the jaccard distance between two strings. I do not want to use macros, as I'm going to use it through a large dataset for multiples variables. the substrings I have are missing others. proc fcmp…
sarah99
  • 5
  • 2
0
votes
0 answers

Proc FCMP Python example from the documentation does not work

I'm trying to follow the documentation for using Python in Proc FCMP (in SAS 9.4). The following code is their example (link) of a basic Python function in Proc FCMP: proc fcmp; declare object py(python); submit into py; def PyProduct(var1, var2): …
Dacromir
  • 186
  • 2
  • 11
0
votes
1 answer

How to assign output from SOLVE function in PROC FCMP (SAS) to global variable/table?

I'm trying to use PROC FCMP with the function SOLVE to solve non-linear equations and insert solutions into the table automatically. For instance proc fcmp; /* define the function */ function inversesqrt(x); return(1/sqrt(x)); …
0
votes
2 answers

Trouble with reading datasets with read_array in proc fcmp

I'm trying to read dataset that has 4030 observations and 23 variables. I'm doing that in proc fcmp, using read_array (...) statement. Most of the variables have character type, but when I'm trying to read the code: proc fcmp; array a[&Numobs.,…
Vesnič
  • 365
  • 5
  • 17
0
votes
2 answers

What is wrong with this SAS code?

I copy the code from a paper that i found on internet. proc fcmp outlib=work.funcs.Test; function whatAmI(); return(42); endsub; quit; options cmplib=work.funcs; data _null_; rci = whatAmI(); put rci=; /* should be 42…
Bruno
  • 1
  • 2
-1
votes
1 answer

Set notification in loop until user click

here is my code of notification: private void APP_FOREGROUND_showNotificationMessage(Context context, String title, String message, Intent intent) { intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); PendingIntent pendingIntent =…
Harish Rawal
  • 226
  • 2
  • 15
1
2