Redirect LISTVOLUME to a text file (OpenInsight 32-bit)
At 22 FEB 2012 03:18:01PM cborne wrote:
Hello All!!
Objective: From AREV32:
Generate a text file with all file names currently in an AREV 1.16 volume. (volume has a different application of 'SYSPROG', and has dots in the file names).
I create a temporary volume 'TEMPVOL' in VOC, pointing to the folder location of the above volume. – and ATTACH it.
at TCL, LISTTABLES will not include the files, but LISTVOLUME TEMPVOL will display the list of files on screen, – no problem.
I attempt to redirect LISTVOLUME to a file, as:
PDISK C:\TEMP\PDISK\LISTVOL.TXT
then:
LISTVOLUME TEMPVOL (P)
the text file is created (null/empty), and I get:
[FS109] Open or Create Media error. The name "TEMPVOL" is an invalid volume directory label.
Question is: How do I redirect LISTVOLUME to a text file?
or another method for achieving my objective?
Thanks in advance. - I appreciate it. ~ Clay
At 23 FEB 2012 05:21AM Andrew McAuley wrote:
Easier to open the REVMEDIA map and read the rows and oswrite the result surely? Unless the attempt to open the REVMEDIA fails in which case what is the error?
World leaders in all things RevSoft
At 29 FEB 2012 07:51AM Aaron Kaplan wrote:
Just so I understand…you're saying that
LISTVOLUME TEMPVOL
works as expected.
LISTVOLUME TEMPVOL (P)
gives the FS109 error.
Though, Andrew is correct. If you just want the volume out in a text file, and the system is giving problems, just parse the REVMEDIA file.
SETFILE TEMPVOL SYSPROG REVMEDIA REVMEDIA_TEMPVOL
Each record is in the form TABLE_NAME*ACCOUNT_NAME
World leaders in all things RevSoft