home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vms / 14329 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.2 KB

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