s-news
[Top] [All Lists]

Puttng parameters into a batch file.

To: S-News <s-news@lists.biostat.wustl.edu>
Subject: Puttng parameters into a batch file.
From: Thom Burnett <Thom.Burnett@cognigencorp.com>
Date: Fri, 22 Oct 2004 11:48:54 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Does anyone put parameters into the call of a BATCH file.
This is for SPlus 6.2. We need a solution for Unix but anything that works on a PC and has even a chance of being adapted would be a help. I've contacted Insightful and they suggested setting environmental variables before calling the BATCH and then reading the environment from within the BATCH file.
There are some concerns with that. Do you know of any other method?

A simple example might be a BATCH file that calculates (or maps) a state's population and needs the name of a the particular state we want to work on this run.

This doesn't work, but something like this is what's wanted.
splus BATCH findStatePopulation.q state='MAINE'

<Prev in Thread] Current Thread [Next in Thread>
  • Puttng parameters into a batch file., Thom Burnett <=