PERFORM statement transfers control to a block of code that will be executed just once. This could either be a…