I want to get the first 3 records for each key from the below dataset. I have pasted only portion of it (LRECL=190, RECFM=FB).
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE9898
CENTRE9898
CENTRE9898
CENTRE9898
CENTR10980
CENTR10980
CENTR10980
CENTR10980
CENTR10980
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE9898
CENTRE9898
CENTRE9898
CENTRE9898
CENTR10980
CENTR10980
CENTR10980
CENTR10980
CENTR10980
Output:
CENTRE1000
CENTRE1000
CENTRE1000
CENTRE9898
CENTRE9898
CENTRE9898
CENTR10980
CENTR10980
CENTR10980
CENTRE1000
CENTRE1000
CENTRE9898
CENTRE9898
CENTRE9898
CENTR10980
CENTR10980
CENTR10980
I tried using below code with SYNCTOOL but unsuccessfully. I thought it is not supported in v1.2.3.1R.
//TOOLIN DD *
SELECT FROM(IN1) TO(OUT1) ON(1,10,CH) FIRST(3)
/*
SELECT FROM(IN1) TO(OUT1) ON(1,10,CH) FIRST(3)
/*
Please suggest.
Thanks.