Page 1 of 1

Tape File copy using FileAid in Batch

PostPosted: Tue Nov 24, 2015 10:51 am
by Analyst_Kumar
Hi,

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'
/*


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')

Re: Tape File copy using FileAid in Batch

PostPosted: Tue Nov 24, 2015 6:09 pm
by Robert Sample
The File Aid Batch Reference Manual has an entire chapter on record and member selection. While it would be easy to quote that manual, it will be better for you in the long run if you go find this manual (if your site is licensed for File Aid, your site has the manuals available somewhere -- hardcopy, internal web site, or by downloading from the vendor's web site) and read the chapter for yourself. We are here to help you with issues, not to read the manual for you.