> but I can't seem to tweak a utility  > like REPRO (with SKIP and COUNT)
to do what I want. I've browsed the  file and identified by line number
where each good data starts/ends
 and where the bad data starts/ends, like this:

Skip,

You can use DFSORT's SUBSET operator to copy the records that you want.

RRN(q,r) or RRN(r,q) : Specifies relative record numbers q through r are to
be kept or removed. q can be less than, equal to, or greater than r. For
example, RRN(5,10) and RRN(10,5) both keep or remove the fifth through
tenth records. q and r must be specified as n or +n where n can be 1 to
99999999999999.

Here is the documentation and explanation of the parameters of SUBSET
operator along with examples

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.icea100/ice2ca_Operand_descriptions14.htm


Use the following DFSORT/ICETOOL JCL which will give you the desired
results

//STEP0100 EXEC PGM=ICETOOL
//TOOLMSG  DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//INP      DD DISP=SHR,DSN=Your syslog file
//OUT      DD DSN=Your output log file,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(X,Y),RLSE)
//TOOLIN   DD *
  SUBSET FROM(INP) TO(OUT) KEEP INPUT    -
         RRN(0000000001,0000932963)      -
         RRN(0000933148,0001539015)      -
         ...
         RRN(0022176053,*)

//*


Further if you have any questions please let me know

Thanks,
Kolusu
DFSORT Development
IBM Corporation


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to