home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!cdclu1.genrad.com!dongray
- From: dongray@cdclu1.genrad.com
- Newsgroups: comp.os.vms
- Subject: Re: Submitting Jobs for Last Day of Month
- Message-ID: <9208280735.AA05501@genrad.com>
- Date: 28 Aug 92 07:35:51 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: The Internet
- Lines: 18
-
- OK, here's my offering for this month's obscure DCL tricks. :-)
-
- This should all be on one line...
-
- $ submit file.com /after="''f$cvtime(f$fao("1-!AS-!SL-1-0:0:0",
- f$extr(f$cvtime(,,"month")*3,3,"XXXFEBMARAPRMAYJUNJULAUGSEPOCTNOVDECJAN"),
- f$cvtime(,,"year")+f$cvtime(,,"month")/12),"absolute")'"
-
- I leave it as an exercise for the reader to make a more practical solution :-)
- ...and avoid the pathological case. (Try running it at 31-JUL-1992 23:59:59.99).
-
- --------------------------------------------------------------------------------
- Name : Derek Dongray, Systems Manager, GenRad Ltd.
- Phone : 061 486 1511 ext 166
- PSS : 234261600119::Dongray UKnet : Derek.Dongray@GenRad.co.uk
- InterNet : Dongray@cdclu1.GenRad.com CompuServe : 70374,2745
- Address : Monmouth House, Monmouth Road, Cheadle Hulme, Cheshire, SK8 7AY, UK.
-
-