11.07.2015 Views

MultiValue Basic Quick Reference - InterSystems Documentation

MultiValue Basic Quick Reference - InterSystems Documentation

MultiValue Basic Quick Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong><strong>Reference</strong>Version 2013.124 April 2013<strong>InterSystems</strong> Corporation 1 Memorial Drive Cambridge MA 02142 www.intersystems.com


<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>Caché Version 2013.1 24 April 2013Copyright © 2013 <strong>InterSystems</strong> CorporationAll rights reserved.This book was assembled and formatted in Adobe Page Description Format (PDF) using tools and information from the following sources:Oracle Corporation, RenderX, Inc., Adobe Systems, and the World Wide Web Consortium at www.w3c.org. The primary documentdevelopment tools were special-purpose XML-processing applications built by <strong>InterSystems</strong> using Caché and Java., , , ,Caché WEBLINK, and Distributed Cache Protocol are registered trademarks of <strong>InterSystems</strong> Corporation., ,<strong>InterSystems</strong> Jalapeño Technology, Enterprise Cache Protocol, ECP, and <strong>InterSystems</strong> Zen are trademarks of <strong>InterSystems</strong> Corporation.All other brand or product names used herein are trademarks or registered trademarks of their respective companies or organizations.This document contains trade secret and confidential information which is the property of <strong>InterSystems</strong> Corporation, One Memorial Drive,Cambridge, MA 02142, or its affiliates, and is furnished for the sole purpose of the operation and maintenance of the products of <strong>InterSystems</strong>Corporation. No part of this publication is to be used for any other purpose, and this publication is not to be reproduced, copied, disclosed,transmitted, stored in a retrieval system or translated into any human or computer language, in any form, by any means, in whole or in part,without the express prior written consent of <strong>InterSystems</strong> Corporation.The copying, use and disposition of this document and the software programs described herein is prohibited except to the limited extentset forth in the standard software license agreement(s) of <strong>InterSystems</strong> Corporation covering such programs and related documentation.<strong>InterSystems</strong> Corporation makes no representations and warranties concerning such software programs other than those set forth in suchstandard software license agreement(s). In addition, the liability of <strong>InterSystems</strong> Corporation for any losses or damages relating to or arisingout of the use of such software programs is limited in the manner set forth in such standard software license agreement(s).THE FOREGOING IS A GENERAL SUMMARY OF THE RESTRICTIONS AND LIMITATIONS IMPOSED BY INTERSYSTEMSCORPORATION ON THE USE OF, AND LIABILITY ARISING FROM, ITS COMPUTER SOFTWARE. FOR COMPLETE INFORMATIONREFERENCE SHOULD BE MADE TO THE STANDARD SOFTWARE LICENSE AGREEMENT(S) OF INTERSYSTEMS CORPORATION,COPIES OF WHICH WILL BE MADE AVAILABLE UPON REQUEST.<strong>InterSystems</strong> Corporation disclaims responsibility for errors which may appear in this document, and it reserves the right, in its sole discretionand without notice, to make substitutions and modifications in the products and practices described in this document.For Support questions about any <strong>InterSystems</strong> products, contact:<strong>InterSystems</strong> Worldwide Customer SupportTel: +1 617 621-0700Fax: +1 617 374-9391Email: support@<strong>InterSystems</strong>.com


Table of Contents1 Caché MV<strong>Basic</strong> Supported Features ................................................................................................ 11.1 <strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved Words ................................................ 21.2 Conversion Codes ..................................................................................................................... 181.3 Compiler Directives .................................................................................................................. 201.4 System Variables (@ Variables) ............................................................................................... 211.5 String Extraction Operators ...................................................................................................... 23<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>iii


List of TablesTable 1–1: Reserved Words By Initial Letter .......................................................................................... 1Table 1–2: Other Items ............................................................................................................................ 1Table 1–3: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words A... ............................................................................... 2Table 1–4: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words B... ............................................................................... 3Table 1–5: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words C... ............................................................................... 3Table 1–6: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words D... ............................................................................... 5Table 1–7: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words E... ............................................................................... 5Table 1–8: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words F... ................................................................................ 6Table 1–9: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words G... ............................................................................... 7Table 1–10: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words H... ............................................................................. 8Table 1–11: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words I... ............................................................................... 8Table 1–12: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words K... ............................................................................. 9Table 1–13: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words L... ............................................................................. 9Table 1–14: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words M... .......................................................................... 10Table 1–15: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words N .............................................................................. 11Table 1–16: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words O... ........................................................................... 11Table 1–17: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words P... ............................................................................ 12Table 1–18: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words Q .............................................................................. 12Table 1–19: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words R... ........................................................................... 12Table 1–20: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words S ............................................................................... 14Table 1–21: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words T... ............................................................................ 16Table 1–22: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words U... ........................................................................... 17Table 1–23: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words W... ........................................................................... 18Table 1–24: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words X... ........................................................................... 18Table 1–25: <strong>MultiValue</strong> <strong>Basic</strong> Conversion Codes ................................................................................. 19Table 1–26: <strong>MultiValue</strong> <strong>Basic</strong> - Compiler Directives ............................................................................ 20Table 1–27: <strong>MultiValue</strong> <strong>Basic</strong> - @-Variables ........................................................................................ 21Table 1–28: <strong>MultiValue</strong> <strong>Basic</strong> - String Extraction ................................................................................. 23iv<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


1Caché MV<strong>Basic</strong> Supported FeaturesThe tables in this document list the features of UniVerse <strong>Basic</strong> and their status in Caché MV<strong>Basic</strong>. There are two possibilities:• Present – This feature is implemented in Caché MV<strong>Basic</strong>.• Caché Alternative Exists – The feature is not supported, but much of this functionality is available in other ways inCaché.Rows with neither column checked indicate that the development is still underway. If the word “reserved” appears in acolumn, it indicates that the term is a reserved word, but is not a statement or function in <strong>MultiValue</strong> <strong>Basic</strong>.For a quick reference to specific items, use one of the following links:Table 1–1: Reserved Words By Initial LetterA..B..C..D..E..F..G..H..I..J..K..L..M..N..O..P..Q..R..S..T..U..V..W..X..Y..Z..Table 1–2: Other ItemsCompiler Directives@-VariablesString ExtractionConversion CodesFor full details, please refer to the Caché MV<strong>Basic</strong> Language <strong>Reference</strong> documentation.<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 1


Caché MV<strong>Basic</strong> Supported Features1.1 <strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and ReservedWordsTable 1–3: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words A...Syntax ItemABORTEABORTMABORTABS()ABSS()acceptConnection()ACCESS()ACOS()addAuthenticationRule()addCertificate()addRequestParameter()ADDS()ALLALPHA()amInitialize()amReceiveMsg()amReceiveRequest()amSendMsg()amSendRequest()amSendResponse()amTerminate()analyzeCertificate()ANDS()ANDARGASCII()ASIN()ASSIGNASSIGNED()PresentXXXXX-XX---XXX--------XXXXXXXCaché Alternative Exists-----X-XXX---XXXXXXXX-------2 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemATAN()AUTHORIZATIONAUXMAPTable 1–4: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words B...Syntax ItemBCONVERTBEFOREBEGINBITAND()BITNOT()BITOR()BITRESET()BITSET()BITTEST()BITXOR()BREAKBSCANBYTE()BYTELEN()BYTETYPE()BYTable 1–5: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words C...Syntax ItemCALCULATE()CALLINGCALLCAPTURINGCASECATS()CATCENTURY.PIVOT()CHAINCHANGE()CHAR()PresentX--Present-XXXXXXXXXXXXX-XPresentXXXXXXX-XXXCaché Alternative Exists-XXCaché Alternative ExistsX-------------X-Caché Alternative Exists-------X---<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 3


Caché Alternative ExistsPresentSyntax Item--CHARLEN()-XCHARS()-XCHECKSUM()-XCLEARCOMMON-XCLEARDATA-XCLEARFILE-XCLEARINPUT--CLEARPROMPTS-XCLEARSELECT-XCLEAR-XCLOSESEQX-closeSocket()X-CloseXMLData()-XCLOSE-XCOL1()-XCOL2()-XCOMMIT-XCOMMON--COMPARE()-XCOM-XCONTINUE-XCONVERT()-XCONVERT-XCOS()-XCOSH()-XCOUNT()-XCOUNTS()X-createCertification()X-createCertRequest()X-createSecureRequest()X-createSecurityContext()-XCREATE-XCRT4 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>Caché MV<strong>Basic</strong> Supported Features


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsTable 1–6: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words D...Syntax ItemDATADATE()DBTOXML()DCOUNT()DEBUGDECLAREDEFFUNDELETE()DELETELISTDELETEUDELETEDELDESCRINFO()DIAGNOSTICSDIGEST()DIMENSIONDIMDIR()DISPLAYDISPLAYWIDTH()DIV()DIVS()DOWNCASE()DODQUOTE()DROUND()DTX()Table 1–7: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words E...Syntax ItemEBCDIC()ECHOELSEENCODE()PresentXX-XX-XXXXXX---XX-X-XXXXX-XPresentXXX-Caché Alternative Exists--X--X-------X-------------Caché Alternative Exists----<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 5


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemENCRYPT()ENDENTEREOF(arg)EQS()EQUATEEQUEQEREPLACE()ERRMSGERROREXCHANGE()EXECUTEEXECEXITEXP()EXTRACT()Table 1–8: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words F...Syntax ItemFADD()FDIV()FFIX()FFLT()FIELD()FIELDS()FIELDSTORE()FILEINFO()FILELOCKFILEUNLOCKFINDFINDSTRFIX()FLUSHFMT()Present-XXXXXXXXXX-XreservedXXXPresentXX--XXXXXXXXXXXCaché Alternative ExistsSee class %SYSTEM.Encryption------------reserved---Caché Alternative Exists---------------6 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemFMTDP()FMTS()FMTSDP()FMUL()FOLD()FOLDDP()FOOTINGFORMLISTFORFROMFSUB()FUNCTIONTable 1–9: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words G...Syntax ItemGARBAGECOLLECTGCIgenerateKey()GES()GET(arg)GETgetCipherSuite()GETENV()getHTTPDefault()GETLISTGETLOCALE()GETPTR()GETPU()GETQUEUE()GETREADU()GETREM()getSocketErrorMessage()getSocketInformation()getSocketOptions()GETUSERGROUP()Present-X-XX-XXXXXXPresent---XX--X-X-XX--X----Caché Alternative Exists------------Caché Alternative ExistsXXX---X-X-X-----XXX-<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 7


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemGETUSERID()GETUSERNAME()GETXGEGOSUBGOTOGOGROUP()GROUPSTOREGTS()GTTable 1–10: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words H...Syntax ItemHASH()HEADINGEHEADINGNHEADINGHUSHPresent---XXXXX-XXPresent---XXCaché Alternative Exists-----------Caché Alternative Exists-----Table 1–11: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words I...Syntax ItemICHECK()ICONV()ICONVS()IFS()IFILPROMPT()ININ()INCLUDEINDEX()INDEXS()INDICES()initSecureServerSocket()Present-XXXX-X--XXX-Caché Alternative ExistsX-----------X8 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax IteminitServerSocket()INMAT()INPUTCLEARINPUTDISPINPUTDPINPUTERRINPUTIFINPUTNULLINPUTTRAPINPUTINPUTERRINSERT()INSINT()ISMB()ISNULL()ISNULLS()ISMV()ISNVS()ISOLATIONITYPE()Table 1–12: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words K...Syntax ItemKEYEDITKEYEXITKEYIN()KEYTRAPKEYPresent-XX--XX--XXXXX-----reservedXPresent--X-XCaché Alternative ExistsX------------------reserved-Caché Alternative Exists-----Table 1–13: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words L...Syntax ItemLEFT()LEN()LENDP()PresentXX-Caché Alternative Exists---<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 9


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemLENS()LENSDP()LES()LETLEVELLELISTUSER()LITERALLYLITLN()loadSecurityContext()LOCALEINFO()LOCATELOCKEDLOCKLOOPLOWER()LPTRLTS()LTTable 1–14: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words M...Syntax ItemMATBUILDMATCHESMATCHFIELD()MATCHMATPARSEMATREADLMATREADUMATREADMATWRITEUMATWRITEMATMAXIMUM()PresentX-XXreservedX-XXX--XXXXXreservedXXPresentXX-XXXXXXXXXCaché Alternative Exists----reserved-----XX-----reserved--Caché Alternative Exists------------10 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemMBLEN()MESSAGEMINIMUM()MOD()MODS()MTUMULS()Table 1–15: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words NSyntax ItemNAPNEG()NEGS()NES()NEXTNENO.ISOLATIONNOBUFNOTS()NOT()NULLNUM()NUMS()Table 1–16: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words O...Syntax ItemOCONV()OCONVS()OFFONOPENOPENCHECKOPENDEVOPENPATHopenSecureSocket()OPENSEQPresent-reservedXXXreservedXPresentXXXXXX-XXXXXXPresentXXXXX--X-XCaché Alternative Exists-reserved---reserved-Caché Alternative Exists-------------Caché Alternative Exists-----X--X-<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 11


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemopenSocket()ORS()OROUTTable 1–17: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words P...Syntax ItemPAGEPASSLISTPCDRIVERPERFORMPRECISIONPrepareXML()PRINTPRINTERPRINTERIOPRINTERRPROCREADPROCWRITEPROGRAMPROGPROMPTprotocolLogging()PWR()Table 1–18: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words QSyntax ItemQUOTE()Present-XXXPresentXX-XX-XX--XXXXX-XPresentXCaché Alternative ExistsX---Caché Alternative Exists--X--X--X------X-Caché Alternative Exists-Table 1–19: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words R...Syntax ItemRAISE()RANDOMIZEREAD.COMMITTEDREAD.UNCOMMITTEDREADBLKPresentXX--XCaché Alternative Exists-----12 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemREADLISTREADLREADNEXTREADSEQreadSocket()READTREADUREADVLREADVUREADVReadXMLData()READREAL()RECIORECORDLOCKED()RECORDLOCKLRECORDLOCKUReleaseXML()RELEASEREMREM()REMOVEREMOVE()REPEATABLE.READREPEATREPLACE()RESETRETURNINGRETURNREUSE()REVREMOVEREWINDRIGHT()RND()PresentXXXX--XXXX-X--XXX-XXXXX-XXXXXXX-XXCaché Alternative Exists----X-----X--X---X----------------<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 13


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemROLLBACKRPC.CALL()RPC.CONNECT()RPC.DISCONNECT()RQMRTNLISTTable 1–20: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words SSyntax ItemSADD()saveSecurityContext()SCMP()SDIV()SEEK(arg)SEEKSELECTESELECTINDEXSELECTINFO()SELECTNSELECTVSELECTSENDSENTENCE()SEQ()SEQS()SEQSUMSERIALIZABLEsetAuthenticationDepth()setCipherSuite()setClientAuthentication()setHTTPDefault()SETLOCALE()setPrivateKey()setRandomSeed()SETREMPresentX---XXPresentX-XXXXXXXXXX-XXX---------XCaché Alternative Exists-XXX--Caché Alternative Exists-X--------------X-XXXXXXX-14 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemsetSocketOptions()SETTINGSETSETENV()showSecurityContext()SIGNATURE()SIN()SINH()SLEEPSMUL()SOAP functionsSORT()SOUNDEX()SPACE()SPACES()SPLICE()SPOOLER()SQLALLOCENVSQLALLOCONNECTSQLALLOCSTMTSQLBINDCOLSQLCANCELSQLCOLATTRIBUTESSQLCONNECTSQLDESCRIBECOLSQLDISCONNECTSQLERRORSQLEXECDIRECTSQLEXECUTESQLFETCHSQLFREECONNECTSQLFREEENVSQLFREESTMTSQLGETCURSORNAMEPresent-X----XXXX-XXXXXX-----------------Caché Alternative ExistsX---XX----X------See the developer materials on Caché SQLSee above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.See above.<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 15


Caché MV<strong>Basic</strong> Supported FeaturesSyntax ItemSQLNUMRESULTCOLSSQLPREPARESQLROWCOUNTSQLSETCONNECT-OPTIONSQLSETCURSORNAMESQLSETPARAMSQRT()SQUOTE()SSELECTNSSELECTVSSELECTSSUB()STARTSTATUS()STATUSSTEPSTOPESTOPMSTOPSTORAGESTR()STRS()submitRequest()SUBROUTINESUBR()SUBS()SUBSTRINGS()SUM()SUMMATION()SWAPSWAP()Table 1–21: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words T...Syntax ItemTABSTOPPresent------XXXXXXXXXXXXX-XX-XXXXXXX-Present-Caché Alternative ExistsSee above.See above.See above.See above.See above.See above.-------------X--X--------Caché Alternative Exists-16 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


<strong>MultiValue</strong> <strong>Basic</strong> Commands, Functions, and Reserved WordsSyntax ItemTAN()TANH()TERMINFO()THENTIME()TIMEDATE()TIMEOUTTOTPARM()TPRINTTRANS()TRANSACTIONTRIM()TRIMB()TRIMBS()TRIMF()TRIMFS()TRIMS()TTYCTLTTYGETTTYSETTable 1–22: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words U...Syntax ItemUNASSIGNED()UNICHAR()UNICHARS()UNISEQ()UNISEQS()UNITUNLOCKUNTILUPCASE()UPRINTUSINGPresentXX-XXX-X--XXXXXXXX---PresentXXXXXXXXX-XCaché Alternative Exists------------------XXXCaché Alternative Exists---------X-<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 17


Caché MV<strong>Basic</strong> Supported FeaturesTable 1–23: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words W...Syntax ItemWEOFSEQFWEOFSEQWEOFWHILEWORDSIZEWORKWRITEWRITEBLKWRITELISTWRITESEQFWRITESEQWRITETWRITEUWRITEVUWRITEVWRITETable 1–24: <strong>MultiValue</strong> <strong>Basic</strong> - Reserved Words X...Syntax ItemXDOM functionsXLATE()XMAP functionsXML functionsXTD()Present-X-X--XXXX-XXXXPresent-X--XCaché Alternative Exists----XX---------Caché Alternative ExistsX-XX-1.2 Conversion CodesThe <strong>MultiValue</strong> conversion codes listed in the following table can be used in various ways, including the following:• The MV<strong>Basic</strong> ICONV, ICONVS, OCONV, and OCONVS functions.• The MV<strong>Basic</strong> FMT and FMTS functions.• Implicit formatting with the MV<strong>Basic</strong> DISPLAY, CRT, and PRINT statements.• The CMQL query language CONV (or CONVERSION) clause.• The VOC Attribute 7 value.For further details and program examples for individual conversion codes, refer to the ICONV and OCONV functions inthe Caché MV<strong>Basic</strong> Language <strong>Reference</strong>.18 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


Conversion CodesTable 1–25: <strong>MultiValue</strong> <strong>Basic</strong> Conversion CodesCode(s)ABBBXCDDIECSFGLMBMCAMC/AMCAXMCBMC/BMCDMCDXMCL, MCUMCM, MC/MMCNMC/NMCPMCTMCWMCWXMCXMCXAMCXDMCXWMDML, MRMMPresentOCONV--OCONVICONV/OCONVICONV/OCONV--ICONV/OCONVICONV/OCONV-ICONV/OCONVOCONVICONV/OCONVICONV/OCONVOCONVOCONVICONV/OCONVICONV/OCONV-ICONV/OCONVOCONVOCONVOCONV-ICONV/OCONVICONV/OCONVICONV/OCONVICONV/OCONVICONV/OCONVICONV/OCONVICONV/OCONV-DescriptionArithmetic and equality functionsBit conversion (binary)Bit conversion (hexadecimal)ConcatenationDate conversionInternal date conversionExtended character set conversionMathematical functionsGroup extractionLength functionBinary conversionMasked character alphabeticMasked character exclude alphabeticMasked character to ASCII conversionMasked character both alphabetic and numericMasked character exclude both alphabetic and numericDecimal to hexadecimal conversionDecimal to hexadecimal conversionMasked lowercase and uppercase conversionMasked multi- and single-byte conversionMasked character numericMasked character exclude numericMasked non-printable character conversionMasked initial capitals conversionMasked wide character conversionMasked wide character to ASCII conversionHexadecimal to decimal conversionCharacter to 8-bit hexadecimal conversionHexadecimal to decimal conversionCharacter to 16-bit (wide) hexadecimal conversionMasked decimal conversionMasked left, right conversionNLS monetary conversion<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 19


Caché MV<strong>Basic</strong> Supported FeaturesCode(s)MOMPMTMU0CMXMYNLNRPQRSS;val;zerovalTTTIUZVPresent--ICONV/OCONV-ICONV/OCONVOCONV--OCONV-OCONVOCONVOCONVOCONV--OCONVOCONVDescriptionOctal conversionPacked decimal conversionTime conversionHexadecimal Unicode character conversionHexadecimal conversionASCII conversionNLS Arabic numeral conversionRoman numeral conversionPattern-matchingExponential conversionRange functionSoundex conversionSubstitution for non-zero values and zero valuesText extractionFile translationInternational time conversionUser exit to entrypoint . The specified entrypoint mustbe a hexadecimal number.Dynamic array element extraction1.3 Compiler DirectivesTable 1–26: <strong>MultiValue</strong> <strong>Basic</strong> - Compiler DirectivesSyntax Item#INCLUDE#PRAGMA$CHAIN$COPYRIGHT$DEFINE$EJECT$IFDEF$IFNDEF$INCLUDEPresentXX-XX-XXXCaché Alternative Exists--------20 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>


System Variables (@ Variables)Syntax Item$INSERT$MAP$PAGE$UNDEFINEPresentX--XCaché Alternative Exists-X--For details, refer to “Compiler Directives” in the Caché MV<strong>Basic</strong> Language <strong>Reference</strong>.1.4 System Variables (@ Variables)Table 1–27: <strong>MultiValue</strong> <strong>Basic</strong> - @-VariablesSyntax Item@ABORT.CODE@ACCOUNT@AM@ANS@AUTHORIZATION@COMMAND.STACK@COMMAND@CRTHIGH@CRTWIDE@DATA@DATA.PENDING@DATE@DAY@FALSE@FILE.NAME@FILENAME@FM@HDBC@HSTMT@ID@IM@ISOLATION@LEVELPresent-XXXXXXXXXXXXXXXX--XX-XCaché Alternative Exists-----------------------<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 21


Caché Alternative ExistsPresentSyntax Item-X@LOGNAME-X@LPTRHIGH-X@LPTRWIDE-X@MONTH--@MV-X@NB-X@ND-X@NI-X@NS--@NULL.STR--@NULL-X@NV--@OPTION-X@PARASENTENCE-X@PATH-X@RECCOUNT-X@RECORD--@SCHEMA-X@SELECTED-X@SENTENCE-X@SM-X@STDFIL-X@SVM-X@SYS.BELL-X@SYSTEM.RETURN.CODE-X@SYSTEM.SET-X@TERM.TYPE-X@TIME-X@TM--@TRANSACTION.ID--@TRANSACTION.LEVEL-X@TRANSACTION-X@TRUE-X@TTY22 <strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong>Caché MV<strong>Basic</strong> Supported Features


String Extraction OperatorsSyntax Item@UDTNO@UID@USER.NO@USER.TYPE@USER.RETURN.CODE@USERNO@USERn@VM@WHO@YEAR4@YEARPresentXXXXXXXXXXXCaché Alternative Exists-----------For details, refer to “System Variables” in the Caché MV<strong>Basic</strong> Language <strong>Reference</strong>.1.5 String Extraction OperatorsTable 1–28: <strong>MultiValue</strong> <strong>Basic</strong> - String ExtractionSyntax Item[]PresentXXCaché Alternative Exists--For details, refer to “Operators” in the Caché MV<strong>Basic</strong> Language <strong>Reference</strong>.<strong>MultiValue</strong> <strong>Basic</strong> <strong>Quick</strong> <strong>Reference</strong> 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!