During the first months after the Declaration of Independence, Yani formed a battalion with himself as Commander and led it to victory against the British at Magelang.
Selama bulan-bulan pertama setelah Deklarasi Kemerdekaan, Yani membentuk batalion dengan dirinya sebagai Komandan dan memimpin kepada kemenangan melawan Inggris di Magelang.