Hello, Mainframers!! Have you ever been asked to write a logic for reversing the file content, or any requirement to read the file in reverse order? In this post, I will try to explain how we can achieve the same using the SORT utility. Let's assume we have a dataset as mentioned below. Name: MFUSER.SORT.INPUT RECFM=FB, LRECL=40 Type: PS Input Dataset: It contains the list of Month names along with Unique Month ID in ascending order. File Edit Edit_Settings Menu Utilities Compilers Test Help ------------------------------------------------------------------------------- VIEW MFUSER.SORT.INPUT Columns 00001 00040 Command ===> Scroll ===> CSR =COLS> ----+----1----+----2----+----3----+----4 ****** ***************************** Top of Data ****************************** 000001 01 JANUARY ...