I am using the following JCL to copy a TAPE file to DISK.
//STEP1 EXEC PGM=FILEAID,REGION=0M
//STEPLIB DD DSN=....
//DD01 DD DSN=INPUT-FILE,DISP=SHR
//DD01O DD DSN=OUTUT-FILE,DISP=OLD
//SYSIN DD *
$$DD01 COPY PADCHAR=X'00'
/*
//STEPLIB DD DSN=....
//DD01 DD DSN=INPUT-FILE,DISP=SHR
//DD01O DD DSN=OUTUT-FILE,DISP=OLD
//SYSIN DD *
$$DD01 COPY PADCHAR=X'00'
/*
Now the Question is, The Input file is very big file and I don't need full copy of the file.
I just need a small chunk of data, i.e., TODAY's data. In SORT, I can write the code as below. How to achieve the same using FILEAID in a single step.
SORT FIELDS=COPY
INCLUDE COND=(3,8,CH,EQ,C'20151117')
INCLUDE COND=(3,8,CH,EQ,C'20151117')