I wanted to get `DESC_TXT` for two scenarios:

When `STEP_NAM` = `GCP` - i wanted the Second occurrence of `DESC_TXT` which is `TR/VR/NF` (3rd Row)

When `STEP_NAM` = `CA` - i wanted the FIRST occurrence of `DESC_TXT` which is `QS/SC/S` (4th Row)

`TR_NUM RN_REF_CD DESC_TXT TRN_DTTM STEP_NAM
22938243 20180106-0220 null 1/6/2018 19:35 CF
22954518 20180106-0220 IT/SI/WS 1/8/2018 18:32 GCP
22957994 20180106-0220 TR/VR/NF 1/9/2018 10:05 GCP
22958126 20180106-0220 QS/SC/S 1/9/2018 10:08 CA
22958125 20180106-0220 QS/SC/S 1/9/2018 10:08 CA
22958135 20180106-0220 QS/SC/S 1/9/2018 10:08 GCP
22958136 20180106-0220 QS/SC/S 1/9/2018 10:08 GCP
22958140 20180106-0220 QS/SC/S 1/9/2018 10:08 SBP
22959829 20180106-0220 QS/SC/S 1/9/2018 11:14 SBP
22959827 20180106-0220 QS/SC/S 1/9/2018 11:14 SBP
22959828 20180106-0220 QS/SC/S 1/9/2018 11:14 SBP
22959830 20180106-0220 QS/SC/S 1/9/2018 11:14 SBP
22959873 20180106-0220 QS/SC/S 1/9/2018 11:15 OIP
22959936 20180106-0220 QS/SC/S 1/9/2018 11:17 SBP
22959945 20180106-0220 QS/SC/S 1/9/2018 11:17 OIP
22959956 20180106-0220 QS/SC/S 1/9/2018 11:18 SBP
22959955 20180106-0220 QS/SC/S 1/9/2018 11:18 SBP
22959953 20180106-0220 QS/SC/S 1/9/2018 11:18 SBP
22959954 20180106-0220 QS/SC/S 1/9/2018 11:18 SBP
22960468 20180106-0220 null 1/9/2018 11:39 ERA
22964031 20180106-0220 null 1/9/2018 14:59 SBP
22964032 20180106-0220 null 1/9/2018 14:59 SBP
22964033 20180106-0220 null 1/9/2018 14:59 SBP
22964029 20180106-0220 null 1/9/2018 14:59 OSI
22964030 20180106-0220 null 1/9/2018 14:59 SBP`

The Dataset is ordered by ~TRN\_DTTM`

The Final output would be - something like this:

`RN_REF_CD DESC_TXT1 DESC_TXT2  

20180106-0220 TR/VR/NF QS/SC/S`

and wanted this to repeat for each `RN_REF_CD`.