|
Save SAS code used to generate CDISC dataset from specified
transformation model %savecode (modlib = library for models,
outprog = output SAS program);
| Where |
Is
Type... |
And
represents... |
| modlib |
C |
SAS library name containing the models stored
as SAS datasets. This is specified with a two level name in the
format:
LIBRARY.DATSET
In the event that only the library is specified, all the models in
that library will be selected for saving code. |
| outprog |
C (optional) |
Output SAS program name including full
path. If none is
specified, the default program name will be the model name with the
SAS file extension saved to the current folder location such as:
AE.SAS. If only the path is specified, the program default
name will be used based on the model name in the specified path. |
Details This tool generates the SAS program which
is used to then create the CDISC dataset defined through the
transformation models within Transdata. This is equivalent to
clicking on the "Save Code..." button on the main screen or the
model information screen. The difference is that the user can
generate many programs at once with greater efficiency by simply
specifying the SAS library name to the models and the output path.
It is therefore recommended that only a libname be specified for the
MODLIB parameter and only the path be specified for the OUTPROG parameter.
The default automation of the macro will then generate all the programs
for all the models in the specified library.
Example %savecode (modlib = modlib,
outprog = c:\temp);
%savecode (modlib = modlib._mod1,
outprog = c:\temp\ae.sas);
%savecode (modlib = modlib._mod1);
|