I can only think of the really low-tech way that I do it (because I do the
exact same thing you do)
When running a routine from another place (like calling from another program or
from a menu system), I would do this:
SET VAR vFromProgram = 'Overnightrun'
RUN whatever.rmd
CLEAR VAR vFromProgram
Then whatever.rmd would do
SET VAR vFromProgram TEXT
IF vFromProgram IS NULL (or '= Overnight') THEN
do whatever
ENDIF
Karen
-----Original Message-----
From: mike.ramsour <[email protected]>
To: rbase-l <[email protected]>
Sent: Fri, Aug 17, 2018 9:19 am
Subject: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted
Good morning:
Is there a way to determine the operatingcondition that R:BASE programs are
running in? I didn't see a CVALfunction that would match what I'm thinking of.
For example, I have a set of 300+ programsthat run daily in a set sequence over
a 3-hour time period. For variousreasons any of these programs may need to be
run individually from theR>.
For example at the R>: RUNSuchAndSuch.RMD
There are situations where it wouldhelpful to be able to determine whether the
program was launched separatelywith 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 placethat would let me test for this situation?
If not I might be contacting the DreamTeam 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.