Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increment variable, or set integer value using variable

Status
Not open for further replies.

joeb5110

Technical User
May 8, 2009
42
US
I'm stumped on what should be a simple script. I want to list out extensions in a pbx based on the user input.
It is easy enough for me to prompt and get the first and last extensions and assign them to variables. I can't
figure out how to loop the command from the first to last.
Commands can repeated using integer counts (i = 1000 upto 2000, for example), but how can I set the integer values
from the input? It seems the integer command can only accept numeric values (i.e. I can't say i = first upto last).
Maybe a "while" statement? While extn not xxxx?
This is simple in REXX, but most of the staff uses Procomm. I've beaten my brains out and have to punt on this one.
 
I came up with a solution. It's inelegant, but it might be technically correct, i.e. the right way.
Even if not, it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top