Gassy newborn

Has anyone had a gassy newborn, not need to burp gassy but needs to pass gas?

My baby is one week old and yesterday and today he has cried and screamed almost nonstop due to gas pains.

Is there anything I can do to help him with him only being a week old? I can't get a hold of his pediatrician :(