[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Newbie type question
On 3/7/07, Morrison Hodges <email@example.com> wrote:
This is a beginner's question, I'm sure, but I have not been able to do what
I want to do.
I have a lot of files generated by a separate custom program, all in the
form of *.rtdata. The * denotes the mnemonic for the patient's name. I want
to do some data studies on each file, and have started a .do file to do
that. The .do file name is rtanalysis, and a sample patient file is
smith.rtdata. I would like to type:
"do rtanalalysis smith"
and have the do file open the file "smith.rtdata" and do the analysis I have
written. Can anyone help? Thanks
In the call...
. do rtanalsysis smith
the "smith" part is an argument, and you can refer to arguments by
their indexed value, so wherever you would want to use the patients
name in the do-file you should use `1' in your do-file.
In the manuals I have to hand this is in [U] 19.6.1 (but they are an
old v6 set so this may have changed in newer versions).
"Every great advance in natural knowledge has involved the absolute
rejection of authority." - Thomas H. Huxley
Email - firstname.lastname@example.org / email@example.com
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
* For searches and help try: