typeset: not found

I am trying to run a script in Solaris 10 in which it it giving error
typeset: not found (I am trying to use typeset -i )
where the shell is $ echo $SHELL
/usr/bin/sh

But when i do bash it is running fine. can any one tell me how i can use the same with out doing bash.

Thanks in advance.

You have to enter the full path to the typeset command.

Put following line at the start of your script ( in the begning ):
#! /usr/bin/bash

Wrong, typeset is builtin command of bash.

Regards