COAS to be appointed before PM leaves for Ankara