All the responses so far assume that field 2 of the VOC entry has the full file path, 
this isn't always the case.

Field 2 would just contain the file name if the file is local. And what about Q 
pointers?

I think you'd be better off writing a program that selects all the files in the VOC 
(F1 LIKE F... Q...) and then opens each file, after that you can call 
FILEINFO(filevar,FINFO$PATHNAME) to return the full path for each file. 

AdrianW

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Susan Lynch
Sent: Thursday, 1 July 2004 11:04
To: [EMAIL PROTECTED]
Subject: Re: [U2] How create list of uv files from VOC?


In response to:  "LeRoi Keiller" <[EMAIL PROTECTED]>
> Wondering if any of you programmers could tell me how to output the paths
of
> UniVerse files that are listed in the VOC - ie files of type F - to a text
> file?  (I wish to use the generated list from and for a unix script.)
>

It has been a while since I was on a UniVerse system, and I am currently on
a Windows system, but something like this should work (it just worked for me
on UniData on Windows, and these commands are similar on both U2 versions,
afaIk):

SSELECT VOC WITH F1 = "F" "DIR" BY F2 F2
SAVE-LIST FILEPATHS
COPY.LIST FILEPATHS
TO:(BP

or to some other directory file where you can then retrieve it in Unix.

Susan M. Lynch
F.W. Davison & Company, Inc.
CONFIDENTIALITY NOTICE:
This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to