Gas Pains?

So I have been feeling fine all day and then all of a sudden after dinner I got a sharp pain under my left rib.

Now it has moved to my upper middle stomach, the pain is a throbbing type.

I do not feel sick but I have a lot of gas.

Is the pain gas related? Or could it be something else?

I just really want it to go away.
I have had the same thing for years and suspect you have Gas and Spasm Pain
I found that Gas-X thin strips under the tongue gave me almost instant relief. I
feel it is trapped gas, sometimes eating a banana gave me quick relief by moving
the bubble around by the movement of eating. Taking Cal-Mag before bed helps the
spasms. I found my problem was due to Wheat & Gluten