In NaOCN, the oxidation number of Na is +1. This is because the electronegativity of oxygen is greater than that of sodium, so the oxygen atoms in the molecule attract electrons away from the sodium atom. This results in the sodium atom having a positive charge.