On Mon, 28 Jan 2008 09:10:01 +0100, Miklos Szigetvari
<[EMAIL PROTECTED]> wrote:

>    Hi
>
>    Searching for a method to keep/access only the tail of a dataset.
> An application writes internal traces , several million  lines. I would
>like to keep only the last part of the trace.
>Any simple method to achive this ?
>(Currently I can think to pipe under USS , and write a small program to
>wrap around )
>
>--

If you know how many records, you can use IDCAMS REPRO with SKIP(nnn).
If you don't know how many records, you would have to determine that first
and could generate the JCL with REXX for example.   There are many ways 
to find the number of records but the quickest may be to use the ICETOOL 
or SYNCTOOL "COUNT" function.

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to