This is called pleuritic pain.
It may simply be muscular but an exam by a Dr is mandatory to exclude infection or pulmonary embolism ( clot in the lung).
Thank you, XXXXX XXXXX was in too much pain to continue waiting for an answer, so I went to the VA hosp. (i am a disabled veteran). I didn't get too much out of them (typical), even after and exam, x-ray, and ekg!!! The doc said that it was a pulled muscle. Well, I hadn't been in such pain since my syatica episode a few years ago - that also hurt like hell.
This pain is still just as sharp and stabbing as ever - even with 5 cc's of morphine !!!, and another 4 cc's an hour later.
Well, thanks for trying anyway - God Bless