batch file of dreport commands and global variables

Richard Veith Richard.Veith at SMRresearch.com
Fri Mar 18 14:12:51 PDT 2016


Hi,

   We run batch files consisting of 10 to 20 commands that begin with
"dreport " to execute various FilePro programs (processing tables).  A
number of these programs all need the same variable whose content changes
monthly.  Is it possible to somehow declare a global variable at the
beginning of the batch file and be able to use it in subsequent executions
of the dreport commands?

 

  I tried declaring the variable Global and defining its content in the
first program, and then declaring it Extern in later programs, but the later
programs do not get the variable's value.  It seems to be lost between
dreport executions.  I also tried CALLing a short program that defined the
variable and its content (again with the Global declaration) from each of
the programs that need it (with the Extern declaration), and that worked in
some cases, but for programs that run against a file of about 20 million
records, the processing would prematurely end with an out-of-memory error.

 

Thanks,

Rich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160318/c6962ff8/attachment.html>


More information about the Filepro-list mailing list