I have been tasked with porting some old (circa 1986) VAX VMS FORTRAN code to c++ and have run into a bit of a stumbling block. The following two lines of code are part of a computed goto.
WRITE(2'N) (Y (I), I = 1, 5)
READ(2'N, ERR = 48) (Y (I), I = 1, 5)
My problem is the unit designator "2'N" , if that is indeed what it is. "N" is an integer variable passed in to the subroutine. I've done quite a bit of googleing for this pattern and reading what VMS documentation I could find, but have been unable to locate any info with respect to this pattern with the apostrophe. I understand the implied do loop that follows the write and read statements, but I don't understand 'where' this is writing to and reading from. Browsing the rest of the FORTRAN code doesn't reveal a unit=2 open statement that could be associated with this call, so it seems likely it's not a disk file, but I'm not certain. I'm hoping someone here can reach back into their memory and help me out.