home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / vmsnet / pdp11 / 991 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.2 KB  |  40 lines

  1. Newsgroups: vmsnet.pdp-11
  2. Path: sparky!uunet!noc.near.net!mv!world!mbg
  3. From: mbg@world.std.com (Megan B Gentry)
  4. Subject: Re: File Rename routine from FORTRAN
  5. Message-ID: <C181yK.Iwr@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <1993Jan19.172526.204@ipact.com>
  8. Date: Thu, 21 Jan 1993 20:51:54 GMT
  9. Lines: 29
  10.  
  11. lakia@ipact.com writes:
  12.  
  13. >Hey NET-
  14. >    Anyone got a subroutine out there
  15. >that will rename a file from FORTRAN.  I 
  16. >was trying to get the FCS .RENAM routine
  17. >and MACRO.  However, my MACRO has gotten
  18. >rusty and I can't find the one I wrote
  19. >years ago.  I would appreciate an E-MAIL
  20. >copy if you can send me one.
  21.  
  22. From the fact that you mention .RENAM, it appears you are using
  23. RT-11.  If so, simply use the routine provided in the system
  24. library, IRENAM.
  25.  
  26.     i = IRENAM(chan, dblk)
  27.  
  28. where 'chan' is the channel to use and 'dblk' is a 8-word block
  29. containing the original file name in Radix-50 (first four words)
  30. and the new file name in Radix-50 (second four words).
  31.  
  32. value of 'i' on return:
  33.  
  34.     0    normal return
  35.     1    specified channel is already open
  36.     2    Specified file (original) was not found
  37.     3    A file by the new name already exists and
  38.         is protected
  39.  
  40.