Remember to use DISP=(MOD,...) for the output DD and also remember that EACH 
REPRO starts over again at record 1, so first few and last REPRO's would look 
like:

REPRO INFILE(A) OUTFILE(B) COUNT(932963)
REPRO INFILE(A) OUTFILE(B) SKIP(933147) COUNT(605868) /* COUNT IS 1539016 - 
933148 */
ETC.
REPRO INDD(A) OUTDD(B) SKIP(22176052) /* NO COUNT, COPY TO EOF */
 
HTH

Peter

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Jesse 1 Robinson
Sent: Tuesday, June 25, 2019 4:07 PM
To: [email protected]
Subject: Copying portions of a huge data set

EXTERNAL EMAIL

We have a file that contains one month's worth of syslog/operlog data. 
Unfortunately a user's job output has infiltrated this file at random points by 
inappropriate use of MSGCLASS. I want to copy the good data (log stuff) to 
another file and leave the errant user stuff behind. It seems simple, 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:

0000000001 - log
0000932964 - job
0000933148 - log
0001539016 - job
...
0022175585 - job
0022176053 - EOD log

The output file should contain just the 'log' data. Suggestions?
--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

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

Reply via email to