RE: [U2] [UV] Forcing Subroutine to be Re-read

2006-05-04 Thread Gyle Iverson
>Does anyone know of a way that I can force the background job to reread the
subroutine?

Hello, Scott.

There is no method to do this without making changes to the subroutine
caller. 

If you use the CALL form of:

Foo = "Foo"
.
.
Call @Foo(stuff)

Reassigning Foo = "Foo" abandons a previously cached image of Foo and loads
the latest version of Foo.

One can do this reassignment preceding every call (careful, this could
negatively impact performance) or periodically test a lock or read a
specific field from a file record to control the reassignment.

Best regards,
Gyle
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] Forcing Subroutine to be Re-read

2006-05-03 Thread Mats Carlid

Are You calling them indirectly ?

I.e. like :

subr = "nameOfSubroutine"

call @subr( args )

This technique will 'force' the subs 'in memory'
whereas

call nameOfSubroutine(args)

should start a search for the subroutine.

How this search is done and especially if it will
force a fresh copy I don't know but it
could be worth to try.

-- mats.



[EMAIL PROTECTED] wrote:


Hi all,

UV9.6.1.14
HPUX 11

I have a background processor that calls a number of subroutines.  Everytime I 
make a change to any of the subroutines, I have to shutdown the job and restart 
it because the subroutine is still in memory.  Does anyone know of a way that I 
can force the background job to reread the subroutine?

Thanks in advance,

Scott
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Forcing Subroutine to be Re-read

2006-05-02 Thread u2
I don't know of any way to force another process to refresh it's
subroutine cache (maybe someone else has the answer to that) but it's a
good idea sometimes for a background process to periodically restart
itself, i.e, for a program named WATCHER running as a phantom:
0001 MAX.TIME=3600
0002 LAST.TIME=TIME()
0003 LOOP
0004   GOSUB DO.SOMETHING.USEFULL:
0005 UNTIL TIME()-LAST.TIME > MAX.TIME DO REPEAT
0006 CHAIN "WATCHER"
WATCHER does it's stuff for an hour, and then restarts itself via chain.
This clears the subroutine cache as well as allowing it to reload a new
version of itself.
You could also have the program check a flag, or the timestamp on a
program, and restart itself (or shut itself down cleanly) based on other
events.


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Tuesday, May 02, 2006 2:03 PM
> To: u2-Users
> Subject: [U2] [UV] Forcing Subroutine to be Re-read
> 
> 
> Hi all,
> 
> UV9.6.1.14
> HPUX 11
> 
> I have a background processor that calls a number of 
> subroutines.  Everytime I make a change to any of the 
> subroutines, I have to shutdown the job and restart it 
> because the subroutine is still in memory.  Does anyone know 
> of a way that I can force the background job to reread the subroutine?
> 
> Thanks in advance,
> 
> Scott
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.5.1/328 - Release 
> Date: 5/1/2006
>  
> 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/328 - Release Date: 5/1/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Forcing Subroutine to be Re-read

2006-05-02 Thread Allen E. Elwood
I think NEWPCODE only works for the session that is executing NEWPCODE, so
it would have to be inside of the calling program.  You'd have to have it
poll a flag, and if the flag changed, then NEWPCODE and de-set the flag.

hth,
Allen

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Trevor Fulton
Sent: Tuesday, May 02, 2006 11:42
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV] Forcing Subroutine to be Re-read


NEWPCODE on Unidata does this, I do not know if the same command is
available in Universe.

Trevor.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 02 May 2006 19:03
To: u2-Users
Subject: [U2] [UV] Forcing Subroutine to be Re-read

Hi all,

UV9.6.1.14
HPUX 11

I have a background processor that calls a number of subroutines.
Everytime I make a change to any of the subroutines, I have to shutdown
the job and restart it because the subroutine is still in memory.  Does
anyone know of a way that I can force the background job to reread the
subroutine?

Thanks in advance,

Scott
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


This e-mail is for the use of the intended recipient(s) only. If you have
received this e-mail in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not use, disclose
or distribute this e-mail without the author's prior permission. We have
taken precautions to minimize the risk of transmitting software viruses, but
we advise you to carry out your own virus checks on any attachment to this
message. We cannot accept liability for any loss or damage caused by
software viruses.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Forcing Subroutine to be Re-read

2006-05-02 Thread Trevor Fulton
NEWPCODE on Unidata does this, I do not know if the same command is
available in Universe.

Trevor. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 02 May 2006 19:03
To: u2-Users
Subject: [U2] [UV] Forcing Subroutine to be Re-read

Hi all,

UV9.6.1.14
HPUX 11

I have a background processor that calls a number of subroutines.
Everytime I make a change to any of the subroutines, I have to shutdown
the job and restart it because the subroutine is still in memory.  Does
anyone know of a way that I can force the background job to reread the
subroutine?

Thanks in advance,

Scott
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


This e-mail is for the use of the intended recipient(s) only. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not use, disclose or 
distribute this e-mail without the author's prior permission. We have taken 
precautions to minimize the risk of transmitting software viruses, but we 
advise you to carry out your own virus checks on any attachment to this 
message. We cannot accept liability for any loss or damage caused by software 
viruses.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] [UV] Forcing Subroutine to be Re-read

2006-05-02 Thread iggchamp
Hi all,

UV9.6.1.14
HPUX 11

I have a background processor that calls a number of subroutines.  Everytime I 
make a change to any of the subroutines, I have to shutdown the job and restart 
it because the subroutine is still in memory.  Does anyone know of a way that I 
can force the background job to reread the subroutine?

Thanks in advance,

Scott
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/