Have you tried with the USS command: tail -n "//'my.dataset.to.read'" where n would be the number of lines Please let me know if you could do it.
"Van Dalsen, Herbie" <[EMAIL PROTECTED]> escribió: Hang on, I must be missing something... This is my output from the tail command in OMVS in tso, which I am sure can be used in BPXbatch. So If you mount your dataset in OMVS / USS as /var/tailin OMVS.TAILIN and a second one as /var/tailout OMVS.TAILOUT(empty) and issue the command tail /var/tailin > /var/tailout, won't you get the best results ? No messing around with other unix systems etc and code that someone needs to rewrite in 2 year's time? Regards Herbie ---------------------------------------------------------------------- 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 -tailtest-(EOF) # tail tailtest 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 [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html # ===> RUNNING ESC=¢ 1=Help 2=SubCmd 3=HlpRetrn 4=Top 5=Bottom 6=TSO 7=BackScr 8=Scroll 9=NextSess 10=Refresh 11=FwdRetr 12=Retrieve -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of McKown, John Sent: 28 Januarie 2008 04:59 nm To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Keep only the tail of the dataset > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin > Sent: Monday, January 28, 2008 10:49 AM > To: IBM-MAIN@BAMA.UA.EDU > Subject: Re: Keep only the tail of the dataset > [snip] > On Mon, 28 Jan 2008 09:34:19 -0600, McKown, John wrote: > > >2) Since the program does not know when it may terminate, it > is possible > >that the last OPEN would be just before the program is to terminate, > >thereby making the trace file have 0 records. > > > Have you a problem with that? What? Well, if I were expecting to see the last "n" records output, then I'd be pretty upset to get 0 when I knew that some were indeed output. > [snip] > This is identical to the behavior of FTP with the BINARY and ASCII > options respectively, and absent SITE RDW, both of which have their > uses. The wippo merely failed to perceive the need for an RDW option. > (is ASCII compatible with RDW?) > > -- gil Well, I consider it to be "weird". Personal opinion, I guess. The Dovetailed Technologies' "fromdsn" has an option to retain IBM compatable RDWs in the output, or not, as an option. Of course, that doesn't help if I want to output via JCL. So, somebody thought that keeping RDWs might be important. Of course, I don't know how that option would be architected in JCL. -- 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 [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html Elavon Financial Services Limited Registered in Ireland: Number 418442 Registered Office: Block E, 1st Floor, Cherrywood Business Park, Loughlinstown, Co. Dublin, Ireland Directors: Robert Abele (USA), John Collins, Terrance Dolan (USA), Pamela Joseph (USA), Declan Lynch, John McNally, Malcolm Towlson Elavon Financial Services Limited, trading as Elavon, is regulated by the Financial Regulator ---------------------------------------------------------------------- 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 Luis Miguel Martinez Chavez IT Specialist DB2 ZOS/LUW Solaris/Linux/AIX --------------------------------- ¡Capacidad ilimitada de almacenamiento en tu correo! No te preocupes más por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ ---------------------------------------------------------------------- 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