to anyone who can assist.
currently, i have a number of user (self) defined functions i use in the
course of my analyses.
i run splus in BATCH mode and simply include these functions at the start
of my splus code in the input file.
however, what i would like to do is have these functions in a separate
file (ie, separate to the input file for BATCH mode) which are
read by the input file on execution.
for example,
in my directory i might have data.dat, analysis.txt and userFunctions.txt
i would then type
Splus BATCH analysis.txt analysisOutput.txt
input file output file
what i want is that there is a statement in analysis.txt which causes
the functions in userFunctions.txt to be read.
in other words, i simply want the splus code for the functions i define
to be in a separate file, yet accessible to other code that is executing.
this makes handling the code much tidier.
is there a simple way of doing this ?? for example, using some sort of
read statement or something like this ??
thanks kindly
andrew
Dr AST Czarn
|