Your child is having vomiting or retching (gagging) that goes on for hours, or even days. During this time, your child may also have headaches or stomach pain. Then it goes away for weeks or months at a time. Your child may have a rare problem called cyclic vomiting syndrome (CVS). CVS is sometimes known as abdominal migraine.