The clerk or judge shall then either dismiss the request for assistance or create a docket for the matter, unless a docket has already been created under subsection (b) of section 39M, and refer the child and family to a probation officer for the preliminary inquiry required under section 39R. When a request for assistance is dismissed under this section, the court shall enter an order directing e