According to
http://www.jbase.com/knowledgebase/manuals/3.0/30manpages/man/jql2_CONVERSION.MC.htm,
we should be able to convert from Decimal to Roman Numerals (I did a
search on the google groups for roman numerals and didn't get any
hits).
When testing the conversion, 8 is reported as IIX and not as VII, and
18 is reported as XIIX and not XVIII.
We did the test on HP-UX 11.11 running 3.4.10 - ROS emulation, Redhat
9 running 3.4.7 - emulation not set, and Redhat Enterprise 5.3 running
4.1.5.19 - emulation not set.
MAK
001 A= "VIII"
002 CRT A
003 CRT ICONV(A,"MCRD")
004 A= "IIX"
005 CRT A
006 CRT ICONV(A,"MCRD")
007 CRT "************"
008
009 FOR I = 1 TO 22
010
011 * CRT OCONV(I,'MCDR')
012 X= OCONV(I,'MCDR')
013 CRT X
014 CRT ICONV(X,'MCRD')
015
016 NEXT I
017 STOP
Using MCRD VIII and IIX both give the same results, but my
understanding is that you're only allowed to subtract one value and
not 2
Here's the 4.1 jdiag:
jsh williamt /gmname/live/GMN -->jdiag
jdiag - jBASE diagnostic '$Revision: 1.13 $'
System Information
==================
System : Linux spider 2.6.24.#1 SMP Wed Jan 30
15:14:04 PST 2008 x86_64
OS Release : Red Hat Enterprise Linux Server release
5.3 (Tikanga)
UNIX User : williamt (uid 513, euid 513)
Tty name : /dev/pts/0
Time : Tue Jun 9 14:43:18 2009
Environment
===========
JBCPORTNO : Not Set
JBCRELEASEDIR : '/usr/jbc'
JBCGLOBALDIR : '/usr/jbc'
WARNING: JBCDATADIR is not set, Default '/usr/jbc/jbase_data'
WARNING: JBCDATADIR directory '/usr/jbc/jbase_data' not valid, error 2
WARNING: JBCDATADIR is subdirectory of JBCGLOBALDIR
HOME : '/home/williamt'
JEDIFILEPATH : '.'
JEDIFILENAME_MD : '/gmname/live/GMN/MD'
MD file is (DICT) : '/gmname/live/GMN/MD]D'
JEDIFILENAME_SYSTEM : '/gmname/live/GLOBALS/SYSTEM'
RELEASE Information : Major 4.1 , Minor 5.19 , Patch 5722
(Change 57964)
Spooler dir (JBCSPOOLERDIR) : '/usr/jspooler'
WARNING: Cannot access Spooler directory '/usr/jspooler', error 2
JBCEMULATE : Not Set
WARNING: Your execute path (PATH) does not contain '/home/williamt/
bin'
Object path (JBCOBJECTLIST) : '/gmname/live/GLOBALS/lib'
Compiler : gcc gcc (GCC) 4.1.2 20080704 (Red Hat
4.1.2-44)
jBASE Compiler Run-time : '/usr/jbc/config/system.properties'
jcompile.ccjbc : 'gcc'
jcompile.ccjbc.options : '-w -fexceptions -m32'
jcompile.cc : 'gcc'
jcompile.cc.options : '-w -fexceptions -m32'
jcompile.cpp.options : '-w -fexceptions -m32'
jcompile.ccslib : 'gcc'
jcompile.ccslib.options : '-shared -m32'
jcompile.ccexe : 'gcc'
jcompile.ccexe.options : '-w -fexceptions -m32'
Program dir (JBCDEV_BIN) : '/gmname/live/GLOBALS/bin'
Subroutine dir (JBCDEV_LIB) : '/gmname/live/GLOBALS/lib'
Max open files : 1024
jsh williamt /gmname/live/GMN -->
William
--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---