DATA Step, Macro, Functions and more

user defined function

Reply
Frequent Contributor
Posts: 90

user defined function

I am reviewing other person's code. He used a self-defined function. How can I get this functions's detailed information, for example, the funciton's code? Thanks

Super User
Posts: 19,873

Re: user defined function

Posted in reply to Niugg2010

Check the code, if it's defined within the program. Otherwise you're going to have access to the same catalogs or wherever they stored the code for said function.  

 

Look for a PROC FCMP in the code.

Frequent Contributor
Posts: 90

Re: user defined function

[ Edited ]

The function has been stored. How can i open the stored function, or to show its content in log.

Super User
Posts: 19,873
Respected Advisor
Posts: 4,935

Re: user defined function

Posted in reply to Niugg2010

You can also ask proc fcmp to print the code:

 

proc fcmp;
listfunc functionName;
run;
PG
Ask a Question
Discussion stats
  • 4 replies
  • 204 views
  • 2 likes
  • 3 in conversation