BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello. In Crystal Reports, I have the ability to store commonly used calculation in a central repository. So for Example:
MyCalc = (a + b)/b

In my report I put this field in one of my columns
Field_1 Field_2 MyCalc(Field_1, Field_Z) ........

By doing this, I'm assured all my calcs throughout different reports are the same. If I need to change the calc, I change it in the repository and all the reports that use this calc are taken care of.

Can I do the same thing for my Proc Reports maybe storing the calculations in Metadata some where?
Thank you
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi, Patrick,
In the BI platform you generally store this kind of calculation in an Information Map. However, in BASE SAS, you would accomplish this reusability of code or calculation with a SAS macro variable or a SAS macro program. In upcoming releases of SAS, you would be able to design your own functions.

This however, is neither an ODS question or a reporting question -- but is more a SAS macro question. As such, your best bet for a complete response is SAS Tech Support.

cynthia

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 591 views
  • 0 likes
  • 2 in conversation