Pull to Par and interest rate sensitivity

If the bond is closer to the maturity, is effect of pull to par is higher than interest rate increase for the short term bond?

How do we book (calculate) profit or loss, even though bond yield has increased but the bond price also increase due to pull to par for the very shorter term maturity? Do we need to amortize the initial discount