[daip] Running a program inside another program

Nick Lee nlee at nrao.edu
Fri Jun 22 18:59:58 EDT 2007


Dear Aips Gurus,

I was wondering if there was a way to call procedures inside another 
procedure.  For instance, I have about 60 different procedures labeled 
something like NL0.207, NL1.207, etc.  Each one goes through about 100 
different images and prints the results of a few measurements to a 
file.  The reason I have it split up is that usually after I "run" 2 of 
these procedures, I'll get the message "BLEW CORE!" if I try to run 
another.  So, I have been manually sitting at my desk and going through 
a cycle of typing in:

restore 0
version 'LFITS'
run NL0.207
NL0

Then, after that procedure finishes, I'll repeat, except with NL1.207, 
on and on.

I was wondering if it was possible to write a procedure of the form:

PROC BigProcedure
restore 0
version 'LFITS'
run NL0.207
NL0
restore 0
version 'LFITS'
run NL1.207
NL1
.
.
.

And so on.  Is it possible to write something that could do this for me 
automatically, or am I doomed to sitting at my desk manually resetting 
the memory between procedures?

Thanks,
Nick Lee




More information about the Daip mailing list