Bill Haskett | 1 Jan 02:44 2006
Picon

[U2] [UV] Sharing a network directory

Since everyone has been so kind recently I thought I'd share a solution that
may help others.

I like to use a "shared" directory on another machine on the network, for a
wide variety of reasons.  UV and UD can easily access a local directory (a
directory on the same machine as U2) but accessing a network "shared"
directory is a little more difficult.

I haven't figured out how to do it on UD yet but in UV here's how it's done:

1)  In UniAdmin select "Configuration Editor" and change the "ALLOWNFS"
parameter to "1".  This is the "critical" piece and escaped me for days
until someone suggested it.  :-)

2)  Get to TCL in UV and execute the following:

   DOS /C"net use Z: \\Server\Share Passwd /user:Server\U2Admin"

    "U2Admin" is the Windows user who's logged in.

3)  Create an "F" item in the VOC that looks like:

        U2TEMP
   0001 F
   0002 Z:\Temp
   0003 D_VOC

This will allow UV to access shared network resources without UV/NET.  Hope
this helps somebody.  :-)

(Continue reading)

Bruce Nichol | 1 Jan 04:22 2006
Picon

Re: [U2] [UV] Sharing a network directory

Gosh, Bill,

Wish I was capable of speaking coherently, let alone typing, at quarter to 
6 on New Year's Eve....
Consider me "gobsmacked"

At 17:44 31/12/05 -0800, you wrote:

>Since everyone has been so kind recently I thought I'd share a solution that
>may help others.
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.1.371 / Virus Database: 267.14.9/217 - Release Date: 30/12/05

Regards,

Bruce Nichol
Talon Computer Services
ALBURY        NSW     2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is! 
(Continue reading)

colin.alfke | 1 Jan 04:47 2006
Picon

RE: [U2] [UV] Sharing a network directory

Bill;

It's much the same in UniData - but you don't need to "allownfs".

I have VOC items like

SHAREDDIR
001 DIR
002 \\servername\sharename
003 D_VOC

and even

REMOTEFILE
001 F
002 \\servername\sharename\directory\file
003 \\servername\sharename\directory\d_file
<file://\\servername\sharename\directory\d_file>

Note: this will not respect any locking on the remote system.

I use the unc path because I often forget to delete the drive mappings and
they get "lost". If your login user doesn't have access then you can still do
it the same way as you do for UniVerse.

hth and Happy New Year
Colin Alfke
Calgary, Canada

________________________________
(Continue reading)

Ray Wurlod | 1 Jan 23:20 2006

RE: [U2] [UV] Sharing a network directory

Don't forget that there's a requirement to run uvregen and to restart UniVerse before any change to
uvconfig will take effect.
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Bill Haskett | 2 Jan 00:16 2006
Picon

[U2] [UD] Is a file opened?

How can I tell if a file is open in UniData (in ECLTYPE P)?  I've tried the
UNASSIGNED() function and this doesn't work under certain conditions.

For instance, in some code I want to open a file if it already isn't opened.
Normally I'd do the following:

COMMON FileVariable  (or COMMON /FILES/ FileVariable)
IF UNASSIGNED(FileVariable) THEN
   OPEN 'FileName' TO FileVariable ELSE DoSomethingElse
END

or, in other mvDbms I might: IF NOT(ASSIGNED(FileVariable))...

Although this works fine in UV and all other mvDbms products it doesn't work
in UniData.  It appears it's because defining a variable as COMMON actually
assigns it a value (zero or empty depending on UDT.OPTIONS 15).

Of course, when I alter the critical line above to:

IF UNASSIGNED(FileVariable) OR FileVariable = 0 THEN ...

then if the variable has actually been assigned the program aborts with the
message: "...Illegal use of the file, select, cursor, BCI, Socket, HTTP,
XML, SCTX ,MQS, SOAP or database variable.".

Is there a function I can use in UniData, anywhere in any program, to test
if a file has been opened in common?

As always, thanks.

(Continue reading)

Kevin King | 2 Jan 00:55 2006

RE: [U2] [UD] Is a file opened?

Unidata named common is all initialized to zero, so you can create the
file buffer variable in common with a state variable like OPENED and
set OPENED to  <at> TRUE when the files are opened.  Then in the future,
check to see if OPENED =  <at> TRUE to see if the buffer variable is valid.

-K
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Wendy Smoak | 2 Jan 01:35 2006
Picon

Re: [U2] [UD] Is a file opened?

On 1/1/06, Bill Haskett <wphaskett <at> advantos.net> wrote:
> How can I tell if a file is open in UniData (in ECLTYPE P)?  I've tried the
> UNASSIGNED() function and this doesn't work under certain conditions.

Without looking it up, I think I've used 'FILEINFO' for this.

--
Wendy
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Results | 2 Jan 01:55 2006

Re: [U2] [UD] Is a file opened?

Bill,
    I just create a dynamic array and add the file names as I open. If 
I   LOCATE(OpenFileList...   I know if my file is open or not.

    - Chuck

Bill Haskett wrote:

>How can I tell if a file is open in UniData (in ECLTYPE P)?  I've tried the
>UNASSIGNED() function and this doesn't work under certain conditions.
>For instance, in some code I want to open a file if it already isn't opened.
>Normally I'd do the following:
>COMMON FileVariable  (or COMMON /FILES/ FileVariable)
>IF UNASSIGNED(FileVariable) THEN
>   OPEN 'FileName' TO FileVariable ELSE DoSomethingElse
>END
>  
>
--

-- 

	- Charles Barouch
	Results <at> KeyAlly.com
	(718) 762-3884 x 1
	P. O. Box 540957, 
	Linden Hill, NY 11354-0957
	www.KeyAlly.com
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
(Continue reading)

David Jordan | 2 Jan 02:29 2006
Picon

RE: [U2] [UD] Is a file opened?

Universe has the FILEINFO(FV,0) = 1 function that I use to check File
variables that have been opened in common.  I don' t know if this is
available in Unidata

Regards

David Jordan
Managing Consultant

david <at> dacono.com.au

DACONO Holdings Pty Ltd
www.dacono.com.au

PO Box 909
Lane Cove
NSW 2066
Australia
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Jeff Powell | 2 Jan 03:51 2006

RE: [U2] Need to create PS/PDF document with background image.

PDFTK ( http://www.accesspdf.com/pdftk  ) is great for adding a
"watermark" image.

It is a compiled Java toolkit that runs from the command line.

-Jeff

 On Fri, 2005-12-30 at 13:48 -0500, Glen Batchelor wrote:

>   I use html2ps (Perl) which allows you to include EPS in-line as original
> Postscript objects. You can make the page, as well as other HTML elements,
> background an EPS image. My forms are all HTML, so updating the formats and
> data is easy.
> 
> -------------------------------------------
> Glen Batchelor
> IT Director
> All-Spec Industries
> phone: (910) 332-0424
> fax: (910) 763-5664
> e-mail: webmaster <at> allspec.com
> -------------------------------------------
> www.allspec.com
> -------------------------------------------
> 
> > -----Original Message-----
> > From: owner-u2-users <at> listserver.u2ug.org [mailto:owner-u2-
> > users <at> listserver.u2ug.org] On Behalf Of Metherall, Arthur
> > Sent: Friday, December 30, 2005 12:53 PM
> > To: u2-users <at> listserver.u2ug.org
(Continue reading)


Gmane