Help using Base SAS procedures

FCMP Procedure

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

FCMP Procedure

Hello,

I used FCMP procedure to create my first function under SAS.

proc fcmp  outlib=work.funcs.test ;

function study_day(date_fin, date_debut);

return (datdif(date_debut, date_fin, 'act/act'));

endsub;

should i create the table work.funcs?

thanks


Accepted Solutions
Solution
‎05-06-2015 08:23 AM
SAS Employee
Posts: 340

Re: FCMP Procedure

work.func is created by the proc fcmp when you run it. You don't need to create it.

View solution in original post


All Replies
Super User
Super User
Posts: 7,430

Re: FCMP Procedure

I would suggest you read the manual on compiled functions.  work.funcs.test is not a dataset, works.func is a catalog, test is a section in that catalog (from memory - i don't have the manual here).

Solution
‎05-06-2015 08:23 AM
SAS Employee
Posts: 340

Re: FCMP Procedure

work.func is created by the proc fcmp when you run it. You don't need to create it.

Occasional Contributor
Posts: 15

Re: FCMP Procedure

I must  use this option options cmplib=work.funcs;  after my function.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 259 views
  • 0 likes
  • 3 in conversation