Macros for SAS Application Developers 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.


filename stpcode temp;
data _null_;
  file stpcode;
  put '%put hello world;';
%ms_createfile(/some/stored/, inref=stpcode)
[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