1) Please don't call your threads "Urgent". It isn't to anyone on this forum, and won't get you help any faster.
2) Most programming languages use the concept of blocks to define scope, and I assume KSH scripting is no different. The body of a loop generally defines a block. Variables defined within a block will not be availalbe outside the block.
If you need to use variables both inside and outside a loop, then simply declare those variables outside the loop.
I hope this helps
--Ian
|