The output needs to be modified. Now I need to run select * statement, so fetch next needs to be modified. One possible solution in mind is to create a new type of varray and us it in fetch statement after INTO. But that is not working. Can any one please help for possible conversion?