The ops words were "I want to send this data to an external system for 
analysis." So I saw no need for head/tail capability on z/OS. Might be 
roundabout but works fine for me & may work fine for the op. Just another way 
to get the data out of JES2 to where it can be used.

Paul Gillis

> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Paul Gilmartin
> Sent: Saturday, 15 November 2014 1:07 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Tail of MVS SYSLOG
> 
> On Fri, 14 Nov 2014 23:05:25 +1100, Paul Gillis <pgil...@pc-link.com.au>
> wrote:
> 
> >I have used the @BRLOG rexx exec, freely supplied by IBM, to perform
> >post IPL analysis on the head of the active syslog. Redbook
> http://www.redbooks.ibm.com/redbooks/pdfs/sg247419.pdf points to
> ftp://www.redbooks.ibm.com/redbooks/SG247419 to  download SG277419.zip
> and @brlog.rex is in the ch06 directory. The Redbook chapter 6 says you can
> direct the output to a dataset or to a path name where you can head/tail the
> SYSLOG data.
> >
> Where I see:
> 
>     If the path name parameter is present, @BRLOG copies all SYSLOG data sets
> to
>     a temporary MVS data set and copies using OCOPY to the path that is
> specified.  ...
> 
> Kinda roundabout, isn't it?  Why not write directly to the path specified?
> Not indicative of a high degree of craftsmanship.
> 
>     ...Finally, using the TSO command, OEDIT allows the user to view it. 
> Copying
>     the path name does use a Carriage Return/Linefeed (CR/LF) to separate the
>     file records.
> 
> <CR><LF>!?  Ugh!  Not the z/OS Unix System Services convention.
> 
> I see no mention of "tail" in Chapter 6, much less of "tail -f" (presuming 
> that
> such dynamic updating was among the OP's objectives).  I doubt that "tail -f"
> would be effective.
> >
> >> -----Original Message-----
> >> From: Paul Gilmartin
> >> Sent: Friday, 14 November 2014 1:56 AM
> >>
> >> On Thu, 13 Nov 2014 08:39:13 -0600, Elardus Engelbrecht wrote:
> >>
> >> >To Lizette: The word 'tail' is an Unix term where you send the last
> >> >x lines to
> >> somewhere else. I believe there is also something like 'head' for
> >> send the first x lines to somewhere else. Generally useful with the pipe
> command.
> >> >
> >> The OP may be thinking of "tail -f fllename", where the "-f" option
> >> means to periodically (every few seconds) to extract ("stat()") the
> >> size of the file and send any characters not previously sent (in the
> >> fashion of SDSF "DOWN MAX &nn").  The OP may have wanted such
> dynamic updating.
> 
> -- gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to