Total records in input file...= 708
if we split this by seven= each of the output file will have 101 records except the 7th which will have 102.
Now let me tell you all very clearly the exact req:
req is (from above example) to get every 101th record. Kind of sampling...
I used the sample and STARTREC option available with ICETOOL.
Please see the logic followed:
1. getting total count of rec in input file using COUNT option and writing it to say a temporary file '&&T1'
2. Dividing the count obtained in &&T1 by 7 and populating the result in other temporary file &&L1.
3. Creating a card where will get the below mentioned:
STARTREC=(VALUE IN &&L1 +1),SAMPLE=(Value in &&l1).
I know its too confusing ...
try this u will get it....