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,
Mainframe interview question.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Mainframe interview question.
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)?
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute