Mohammad, remember Help is your friend! To create an index tag, you must use the table exclusive. But, you normally create index tags only ONCE, there is no need to create an index tag oer and over! If you need a temporarily index, you don't use the TAG option, you just index to a temp file, and delete the temp file afterwards.
>hi all,
>
>
>i try as under , igot error message file must open excl
>
>SET SAFETY off
>SET EXCLUSIVE off
>SELECT 1
>USE main1
>*use main1 in 0
>INDEX ON flag tag FLAG
>
>thanks