You cannot do this in standard SQL: it is synchronous. You also cannot process the output parameters until the stored procedure is complete.
You will need to use a service broker to separate the calculation and INSERT request (Edit: As Remus) with an example)
Note, of course, that now you need more sophisticated error handling to eliminate any errors and rollbacks, because your INSERT will be untied, and you will not receive immediate feedback about any error.
Of course, why not make the calculation in the client first? aka, what is the problem you are really trying to solve ...
source share