- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
INQUIRE(FILE=TRIM(LICFILE_LOC)//"\\"//TRIM(MName)//".lc", NUMBER=I, IOSTAT=iresult)
If (Logopen) WRITE(99,'(A,I4,I4)') TRIM(LICFILE_LOC)//"\\"//TRIM(MName)//".lc"//" is attached to unit ",I,Iresult
INQUIRE(UNIT=2, NAME=attachedfile, IOSTAT=iresult)
If (Logopen) WRITE(99,'(A,I4)') "UNIT 2 is attached to file "//TRIM(attachedfile),Iresult
Open (2,FILE=TRIM(LICFILE_LOC)//"\\"//TRIM(MName)//".lc",STATUS="OLD", &
ACTION="READ",SHARE="DENYWR",IOSTAT=I)
IF (logopen) WRITE(99,'(A,I4)') "Open "//TRIM(LICFILE_LOC)//"\\"//TRIM(MName)//".lc", I
F:\\AIPS Web\\Model Download Logs\\AWAPROPS.lc is attached to unit -1 0
UNIT 2 is attached to file 0
Open F:\\AIPS Web\\Model Download Logs\\AWAPROPS.lc 30
So file is not attached, unit number is not in use, but when I attempt to open the file, I get IOSTAT 30.
Only explanation is that someone else has the file open, I think.
Thanks,
David
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
F:\AIPS Web\Model Download Logs\AWAPROPS.lc is attached to unit -1 0
UNIT 2 is attached to file 0
UNIT 1 is attached to file \\model2.alcoa.com\Model_Log$\AWAPROPS.lc 0
Open F:\AIPS Web\Model Download Logs\AWAPROPS.lc 30
The file was attached through a share, but not by the direct name, so INQUIRE did not think the file is attached!
David

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page