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