home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19459 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!zl2tnm!toyunix!don
  2. Newsgroups: comp.os.vms
  3. Subject: Re: MOVE for Vms anywhere ?
  4. Message-ID: <4046351@zl2tnm.gen.nz>
  5. From: don@zl2tnm.gen.nz (Don Stokes)
  6. Date: 17 Dec 92 09:25:00 GMT
  7. Sender: news@zl2tnm.gen.nz (GNEWS Version 2.0 news poster.)
  8. References: <01GSCL9O0D9U8WW82Q@kopc.hhs.dk>
  9. Distribution: world
  10. Organization: The Wolery
  11. Lines: 29
  12.  
  13. ARNE@KOPC.HHS.DK (Arne Vajhxj) writes:
  14. >   MOVE:==@disk:[dir]MOVE.COM
  15. > where MOVE.COM contains:
  16. > $ if f$parse(p1,,,"DEVICE") .eqs. f$parse(p2,,,"DEVICE") 
  17. > $ then
  18. > $     rename 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
  19. > $ else
  20. > $     copy 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
  21. > $     delete 'p1'
  22. > $ endif
  23. > $ exit
  24. > There is still a few restrictions compared with a real DCL command:
  25. >   - qualifiers must be specified after the parameters
  26. >   - if the COPY/DELETE is used, then version numbers must be specified
  27.  
  28.   $ MOVE VERY-IMPORTANT.FILE; WHOOPS-I-MADE-A-MISTAKE.###
  29.   %DCL-W-PARMDEL, invalid parameter delimiter, check use of special characters
  30.   $ DIR VERY-IMPORTANT.FILE
  31.   %DIRECT-W-NOFILES, no files found
  32.  
  33. Guys, how about a bit of quality control in your examples... 8-)
  34.  
  35. --
  36. Don Stokes, ZL2TNM (DS555)                        don@zl2tnm.gen.nz (home)
  37. Network Manager, Computing Services Centre            don@vuw.ac.nz (work)
  38. Victoria University of Wellington, New Zealand              +64-4-495-5052
  39.