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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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