Exiting an Oracle stored procedure

I have a very large Oracle Stored procedure. I wold like to be able to test it in sections. Is there a way deliberately exit an Oracle stored procedure and avoiding any type of rollback? So for example if I just want to test the first 1/3 of the stored procedure, and then exit the stored procedure committing any changes, is there a way to do that? If so, how do I do it?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
You can use Return keyword.

Exit or exit when keyword -  if you want to exit from the loop.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You have to see the logic of the SP, often, you have to commit, I believe the default behavior if you return, the transaction will not be committed, it will be rolled back.

Take and test it in a test environment.

The complexity might be that going a third of the way and committing you jeopardize the integrity of the data.

Look through the code, it will indicate where you can potentially return, look for the commit directive. It might not be a third of the way, but it will indicate where a determination is made and where the first cutoff is.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.