Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Program a Task Once and Reuse Your Code Everywhere

Program a Task Once and Reuse Your Code Everywhere [Pg.12]

Program 1.1 Librefs That Commonly Appear at the Start of a SAS Program [Pg.12]

For a clinical trial you may have anywhere from a few dozen to a couple hundred different SAS programs, depending on the nature of the project. If you were to copy the LIBNAME statements above into 200 different programs, you might realize two things  [Pg.12]

You had to copy three common lines of SAS code into 200 different places. [Pg.12]

Another approach would be to wrap a SAS macro around the three LIBNAME statements and call it with a simple SAS macro call. First, set up a SAS macro. [Pg.13]




SEARCH



Code reuse

Reuse/reusing

Reusing

Reusing code

Tasks

© 2024 chempedia.info