RE: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted
Razzak, You sneaky dog, this is very cool. I will start using this right away. Thanks, Paul Buckley -Original Message- From: rbase-l@googlegroups.com On Behalf Of A. Razzak Memon Sent: August 17, 2018 11:12 AM To: rbase-l@googlegroups.com Subject: Re: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted Mike, You may also use the "-Txxx" executable option to add an additional text label to an R:BASE instance, where xxx is a custom text (e.g. Development) or "RandomID". The label will allow you to identify the running the instance in the Task Manager, which is useful in your case with multiple instances of R:BASE running. Examples: C:\RBTI\RBGX\RBGX.EXE "-TSuchAndSuch" C:\RBTI\RBGXE\RBGXE.EXE "-TNewDataImport" C:\RBTI\RBGXE\RBGXE.EXE "-TLogEnvChanges" To use a random value, specify "-T RandomID" to use the operating system TickCount value, which returns the number of milliseconds elapsed since the system started. Example: C:\RBTI\RBGXE\RBGXE.EXE "-T RandomID" [] Very Best R:egards, Razzak At 10:19 AM 8/17/2018, mike.rams...@aksteel.com 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 rbase-l+unsubscr...@googlegroups.com. 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 rbase-l+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted
Mike, You may also use the "-Txxx" executable option to add an additional text label to an R:BASE instance, where xxx is a custom text (e.g. Development) or "RandomID". The label will allow you to identify the running the instance in the Task Manager, which is useful in your case with multiple instances of R:BASE running. Examples: C:\RBTI\RBGX\RBGX.EXE "-TSuchAndSuch" C:\RBTI\RBGXE\RBGXE.EXE "-TNewDataImport" C:\RBTI\RBGXE\RBGXE.EXE "-TLogEnvChanges" To use a random value, specify "-T RandomID" to use the operating system TickCount value, which returns the number of milliseconds elapsed since the system started. Example: C:\RBTI\RBGXE\RBGXE.EXE "-T RandomID" [] Very Best R:egards, Razzak At 10:19 AM 8/17/2018, mike.rams...@aksteel.com 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 rbase-l+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted
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, mike.rams...@aksteel.com 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 rbase-l+unsubscr...@googlegroups.com. 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 rbase-l+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [RBASE-L] - Determining operating condition -- Standalone vs. Scripted
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 To: rbase-l 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 rbase-l+unsubscr...@googlegroups.com. 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 rbase-l+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.