Macros for SAS Application Developers
https://github.com/sasjs/core
ms_createfile.sas File Reference

Creates a file on SASjs Drive. More...

Go to the source code of this file.

Detailed Description

Creates a file on SASjs Drive. To use the file as a Stored Program, it must have a ".sas" extension.

Example:

filename stpcode temp;
data _null_;
  file stpcode;
  put '%put hello world;';
run;
%ms_createfile(/some/stored/program.sas, inref=stpcode)
Parameters
[in]drivelocThe full path to the file in SASjs Drive
[in]inref=(0) The fileref containing the file to create.
[in]mdebug=(0) Set to 1 to enable DEBUG messages

SAS Macros

Definition in file ms_createfile.sas.