A petition for a writ of prohibition, predicated upon the ground that the indictment was found without reasonable or probable cause or that the defendant had been committed on an information without reasonable or probable cause, or that the court abused its discretion in utilizing the procedure set out in subdivision (b) of Section 995a, must be filed in the appellate court within 15 days after a motion made under Section 995 to set aside the indictment on the ground that the defendant has been indicted without reasonable or probable cause or that the defendant had been committed on an information without reasonable or probable cause, has been denied by the trial court. A copy of such petition shall be served upon the district attorney of the county in which the indictment is returned or the information is filed. The alternative writ shall not issue until five days after the service of notice upon the district attorney and until he has had an opportunity to appear before the appellate court and to indicate to the court the particulars in which the evidence is sufficient to sustain the indictment or commitment.
Ca. Pen. Code § 999a