Page 1 of 1

Mainframe interview question.

Posted: Sat Feb 11, 2023 10:36 pm
by Mini Nair
My question is Iam having seq file contains 100 rec, I need an output like last row comes to first and first goes to last for all 100 rec.

How to code this? Is there any sort option? Syntax plz,

Re: Mainframe interview question.

Posted: Sat Feb 11, 2023 11:26 pm
by Robert Sample
Your question is not at all clear. Are you wanting to reverse the sequence of records (not rows -- DB2 has rows but data sets do not), or are you just wanting to swap the first and last records of the data set, or are you wanting to swap the first and last bytes of each record (and if so, are you wanting to do this for each record)?