Re: Keep only the tail of the dataset
- From: John.Mckown@xxxxxxxxxxxxxxxxx (McKown, John)
- Date: 28 Jan 2008 06:23:53 -0800
-----Original Message-----
From: IBM Mainframe Discussion List
[mailto:IBM-MAIN@xxxxxxxxxxx] On Behalf Of Miklos Szigetvari
Sent: Monday, January 28, 2008 2:10 AM
To: IBM-MAIN@xxxxxxxxxxx
Subject: Keep only the tail of the dataset
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 )
--
Miklos Szigetvari
If you want a "wrap around" type log, then I think that the easiest way
to do so would be to have a preformatted BDAM or VSAM RRDS dataset. I'd
personally go with the RRDS. Have the first record be dedicated to
keeping the "next" record number to write. Also, have the maximum record
number in there. Now have your subroutine simply increment the record
number and wrap around from the max to 1 (skipping 0). You could either
update record 0 upon every write (high overhead) or only periodically. I
would also keep a timestamp in every record so that you could use SORT
to put the records in order. This is about as simple as I can think of
off-hand.
--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology
The information contained in this e-mail message may be privileged
and/or confidential. It is for intended addressee(s) only. If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense. If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.
- Follow-Ups:
- Re: Keep only the tail of the dataset
- From: Miklos Szigetvari
- Re: Keep only the tail of the dataset
- References:
- Keep only the tail of the dataset
- From: Miklos Szigetvari
- Keep only the tail of the dataset
- Prev by Date: Re: Q:Protect production tape from writing by testing system
- Next by Date: Re: z/VM delivery over the Internet.
- Previous by thread: Keep only the tail of the dataset
- Next by thread: Re: Keep only the tail of the dataset
- Index(es):
Relevant Pages
|