Mainframe interview question.

All sort of Mainframes Interview Questions.
Post Reply
Mini Nair
New Member
Posts: 6
Joined: Sun Jan 03, 2016 11:46 am

Mainframe interview question.

Post 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,
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Mainframe interview question.

Post 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)?
Post Reply

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

Register

Sign in

Return to “Interview Questions.”