《周书·列传·卷三十六》
永安末年，任为司徒府参军事，改任记室，迁任大司马从事中郎。
永安末，除司徒府参军事，转记室，迁大司马从事中郎。
In the final years of Yong'an, he served in the office of the commander and was transferred to serve as royal librarian. He was later transferred to work as an aide for the grand marshal.
<s>[INST] Translate the following Classical Chinese text into modern Chinese: 永安末，除司徒府参军事，转记室，迁大司马从事中郎。 [/INST] 永安末年，任为司徒府参军事，改任记室，迁任大司马从事中郎。</s>
Translate the following Classical Chinese text into modern Chinese: 永安末，除司徒府参军事，转记室，迁大司马从事中郎。
user
永安末年，任为司徒府参军事，改任记室，迁任大司马从事中郎。
assistant