<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=FLAVA</id>
	<title>FLAVA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=FLAVA"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=FLAVA&amp;action=history"/>
	<updated>2026-04-28T22:14:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=FLAVA&amp;diff=2640&amp;oldid=prev</id>
		<title>IanMcGowan: Created page with &quot;A utility that attempts to figure out the flavour of the current Pick environment.  Designed for use when writing portable code.  TODO: 1) test!, 2) add probes for more flavor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=FLAVA&amp;diff=2640&amp;oldid=prev"/>
		<updated>2019-09-12T17:22:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A utility that attempts to figure out the flavour of the current Pick environment.  Designed for use when writing portable code.  TODO: 1) test!, 2) add probes for more flavor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A utility that attempts to figure out the flavour of the current Pick environment.  Designed for use when writing portable code.&lt;br /&gt;
&lt;br /&gt;
TODO: 1) test!, 2) add probes for more flavors, 3) some environments have different emulation modes - maybe return that as a &amp;quot;sub-flavor&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Contributions welcome!  Please free to edit this page, or submit pull-requests at https://github.com/ianmcgowan/SCI.BP/blob/master/FLAVA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
********************************************************************************&lt;br /&gt;
* Program: FLAVA&lt;br /&gt;
* Author : MCGOWJ01&lt;br /&gt;
* Created: 2019-09-11&lt;br /&gt;
* Updated: 2019-09-11&lt;br /&gt;
* Comment: Find DB flavo{u}r&lt;br /&gt;
********************************************************************************&lt;br /&gt;
*&lt;br /&gt;
* Probe for jBase, thanks to Andrew Cole &amp;lt;andrewcole50@gmail.com&amp;gt;&lt;br /&gt;
* SYSTEM(1021)&amp;lt;4&amp;gt;. When I run that on my system&lt;br /&gt;
* &amp;quot;Copyright (c) 2018 jBASE International. All rights reserved&amp;quot;.&lt;br /&gt;
*&lt;br /&gt;
X=SYSTEM(1021)&amp;lt;4&amp;gt;&lt;br /&gt;
IF INDEX(X,&amp;#039;jBASE&amp;#039;,1) THEN CRT &amp;#039;jBASE&amp;#039; ; STOP&lt;br /&gt;
*&lt;br /&gt;
* Probe for Unidata/Universe&lt;br /&gt;
* From: http://www.rsusers.com/cms/pages/wiki.wsp?page=112 (What&amp;#039;s the min ver for this?)&lt;br /&gt;
*&lt;br /&gt;
X=SYSTEM(9010)&lt;br /&gt;
IF INDEX(X,&amp;#039;UD&amp;#039;,1) THEN CRT &amp;#039;UD&amp;#039; ; STOP&lt;br /&gt;
IF INDEX(X,&amp;#039;UV&amp;#039;,1) THEN CRT &amp;#039;UV&amp;#039; ; STOP&lt;br /&gt;
*&lt;br /&gt;
* Probe for D3/Cache&lt;br /&gt;
* https://www3.rocketsoftware.com/rocketd3/support/documentation/d3nt/103/refman/index.htm&lt;br /&gt;
* crt system(100)&lt;br /&gt;
* D3UNIX:RS6000;AIX;pick0:prod0;2;3;000047311000;6.0.0.m0;27 May 2001&lt;br /&gt;
*&lt;br /&gt;
X=SYSTEM(100)&lt;br /&gt;
IF INDEX(X,&amp;#039;D3&amp;#039;,1) THEN CRT &amp;#039;D3&amp;#039; ; STOP&lt;br /&gt;
IF INDEX(X,&amp;#039;CACHE&amp;#039;,1) THEN CRT &amp;#039;CACHE&amp;#039; ; STOP&lt;br /&gt;
*&lt;br /&gt;
* Probe for OpenQM - this is pretty weak sauce, do this last&lt;br /&gt;
*&lt;br /&gt;
X=SYSTEM(1012)&lt;br /&gt;
IF X # &amp;#039;&amp;#039; AND X # 0 THEN CRT &amp;#039;QM&amp;#039; ; STOP&lt;br /&gt;
*&lt;br /&gt;
* No matches, let&amp;#039;s display all possible values&lt;br /&gt;
*&lt;br /&gt;
CRT &amp;#039;No match, does anything in this list look good?&amp;#039;&lt;br /&gt;
FOR F=1 TO 10000&lt;br /&gt;
  IF SYSTEM(F) # &amp;quot;&amp;quot; AND SYSTEM(F) # 0 THEN CRT F, SYSTEM(F)&lt;br /&gt;
NEXT F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>IanMcGowan</name></author>
	</entry>
</feed>