Mike,
Would (CVAL('CONNECTIONS')) help?
(CVAL('CONNECTIONS'))
Returns the number of users currently connected to the current
database or 0 if not connected. In the event of a non-graceful
disconnect R:BASE will not be able to decrement the connections
count. This can occur if the network session terminates unexpectedly,
or if the users operating system crashes. If this happens the count
will be inaccurate until all users disconnect from the database. This
works because the last session of R:BASE will be able to tell that NO
users are connected and will reset the count to zero. Unfortunately,
due to file system limitations, R:BASE is only able to tell if a
database is open by any users or not at all, and is not able to tell,
except by this count, how many users are connected
Very Best R:egards,
Razzak
At 10:19 AM 8/17/2018, [email protected] wrote:
Good morning:
Is there a way to determine the operating condition that R:BASE
programs are running in? I didn't see a CVAL function that would
match what I'm thinking of.
For example, I have a set of 300+ programs that run daily in a set
sequence over a 3-hour time period. For various reasons any of
these programs may need to be run individually from the R>.
For example at the R>: RUN SuchAndSuch.RMD
There are situations where it would helpful to be able to determine
whether the program was launched separately with the RUN command vs.
running in a sequence of programs.
Something like:
IF (CVAL("Standalone")) = 1 THEN
Do something
ELSE
Do something else
ENDIF
Is there something already in place that would let me test for this
situation?
If not I might be contacting the Dream Team soon.
Thanks for sharing any thoughts or suggestions.
Mike Ramsour
AK Steel Coshocton Works
Quality Department
Phone: 740-829-4340
Cell: 740-502-1659
Confidentiality Notice
This message is intended exclusively for the individual or entity to
which it is addressed and may contain privileged, proprietary, or
otherwise private information.
If you are not the named addressee, you are not authorized to read,
print, retain, copy or disseminate this message or any part of it.
If you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.