|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Appends a text file to a SASjs Stored Program, Viya SAS program, or SAS 9 Stored Process. More...
Go to the source code of this file.
Extracts the source code from a SASjs Stored Program, Viya SAS program (file in SAS Drive), or SAS 9 Stored Process, appends the contents of a provided text file, then deletes and recreates the target item with the combined content.
This is useful for dynamically modifying deployed programs, for example to add test-specific configuration or runtime settings.
Usage:
%* compile macros ; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; %* write some content to append; filename append temp; data _null_; file append; put "libname mylib '/some/path';"; run; %* append to existing program; %mx_append2pgm(/Public/app/common/settings, inref=append)
| [in] | loc | The full path to the Viya SAS program, SAS 9 Stored Process, or SASjs Stored Program in Drive or Metadata, WITHOUT the .sas extension (SASjs only) |
| [in] | inref= | (0) Fileref pointing to the content to be appended to the target program. |
| [in] | mdebug= | (0) Set to 1 to show debug messages in the log |
Definition in file mx_append2pgm.sas.