This is very confusing - your original post was
"when i copy the same code to a scripted calculation view and assifn the final result to var-out and preview the data. it returns zero rows."
Now you say
"The procedure that i had created doesnt have any input or output parameters."
What exactly were you assigning to var_out since the procedure is not going to return any results? I'm with Raj on this one - your issue or scenario is not laid out clearly enough for us to assist.
Regards,
Justin