A series of SKIP and COUNT in an IDCAMS REPRO may help you.
Just be aware of your SKIPs and COUNTs so you do not over-lap your extracts.
The STEPLAST concatenates all the sample records together.
Example...
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUD DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILEA DD DISP=SHR,DSN=INPUT.DATASET.HERE
//FILEB DD DSN=OUTPUT.DATASET.#1,
// DISP=(NEW,CATLG,DELETE),
// ...
//SYSIN DD *
REPRO -
INFILE(FILEA) SKIP(100) COUNT(2000) OUTFILE(FILEB)
/*
//*-------
//STEP020 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUD DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILEA DD DISP=SHR,DSN=INPUT.DATASET.HERE
//FILEB DD DSN=OUTPUT.DATASET.#2,
// DISP=(NEW,CATLG,DELETE),
// ...
//SYSIN DD *
REPRO -
INFILE(FILEA) SKIP(2100) COUNT(1000) OUTFILE(FILEB)
/*
//*-------
//STEP030 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUD DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILEA DD DISP=SHR,DSN=INPUT.DATASET.HERE
//FILEB DD DSN=OUTPUT.DATASET.#3,
// DISP=(NEW,CATLG,DELETE),
// ...
//SYSIN DD *
REPRO -
INFILE(FILEA) SKIP(3100) COUNT(2000) OUTFILE(FILEB)
/*
//*---
//*...ETC.
//*---
//STEPLAST EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUD DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILEA DD DISP=SHR,DSN=OUTPUT.DATASET.#1 F/STEP010
// DD DISP=SHR,DSN=OUTPUT.DATASET.#2 F/STEP020
// DD DISP=SHR,DSN=OUTPUT.DATASET.#3 F/STEP030
// ... F/
//FILEB DD DSN=OUTPUT.DATASET.SAMPLE,
// DISP=(NEW,CATLG,DELETE),
// ...
//SYSIN DD *
REPRO -
INFILE(FILEA) OUTFILE(FILEB)
/*
//