using getopts

Is there a restriction on levels of using 'getopts' ? I have several scripts, each of which requires an option as the first parameter [DPT].
If I call one prg separately it works fine, but when one prg calls another prg and passes the option on the called prg, then the called prg
seems not to process 'getopts'! Can somebody explain/help.

it depends weather the passed parameter is handled in called program or not.. please post the programs that will help us to provide better ans

vidyadhar85:
thx for your help, but I have already made changes, i.e. only the first prg uses options and passes the validated arg to the next prg. Not the best solution but it works and had unmovable deadline.

if you post the program then only we can find the exact error