Mainframe tip to cut first 10 lines, last 10 lines from 10000 lines dataset

I have a dataset with 10,000 lines. I want to cut the first 10 lines and last 10 lines and paste into another dataset.

When I cut the first 10 lines and then again the last 10 lines, only the last 10 lines are pasted into the new dataset.

Is there any way out other than doing a cut & paste twice?

The answer for the above question is YES:

  1. First cut 10 lines, and then issue CUT APPEND
  2. Then cut last 10 lines, and then issue CUT APPEND
  3. When you PASTE it, you get both
Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.