IBM Websphere Transformation Extender
Total Page:16
File Type:pdf, Size:1020Kb
IBM WebSphere Transformation Extender Functions and Expressions Ve r s i o n 8.1 Note Before using this information, be sure to read the general information in “Notices” on page 209. October 2006 This edition of this document applies to IBM WebSphere Transformation Extender Version 8.1; and to all subsequent releases and modifications until otherwise indicated in new editions. To send us your comments about this document, email [email protected]. We look forward to hearing from you. When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 2006. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Chapter 1. Expressions and evaluations . .1 Expressions . .1 Component rule expressions evaluate to true or false . .1 Map rule expressions evaluate to data . .1 Literals . .1 Data object names . .2 Object names in map rules . .2 Object names in component rules . .2 Card name . .3 Local type name . .3 Partition list . .3 Component path . .4 Indexed object names . .4 Component paths separated by a colon . .4 Component paths separated by IN . .5 Comment object name . .5 Shorthand notation . .6 Evaluating expressions . .6 Card order can influence the order of evaluation sets . .7 Functions influence the number of evaluation sets . .8 Object names influence the number of evaluation sets . .9 Operators . .10 Arithmetic operators . .11 Text operators . .11 Logical operators . .11 Comparison operators . .11 Order of operator evaluation . .11 Operands . .12 Using functions in expressions . .12 Function arguments . .12 Input arguments . .13 Nested input arguments . .13 Output arguments . .14 Function arguments and evaluation . .14 Map names in expressions . .15 Evaluation of functional maps in an expression . .15 Expressions that evaluate to NONE . .16 When an operand evaluates to NONE . .16 When an input argument of a function evaluates to NONE . .16 When an input argument of a functional map evaluates to NONE . .17 When an input of an executable map evaluates to NONE . .17 Impact of track setting on order of output . .17 Evaluated expressions assigned to output items . .18 NONE assigned to an output number . .18 Automatic item format conversions . .18 Numeric precision . .19 Chapter 2. Using functions . .21 Functions in a component rule . .21 Functions in a map rule . .21 Chapter 3. Syntax of a function . .23 Chapter 4. Function argument syntax . .25 © Copyright IBM Corp. 2006 iii Chapter 5. General functions . .27 CLONE . .27 DEFAULT . .27 ECHOIN . .28 HANDLEIN . .28 REFORMAT . .30 Chapter 6. Bit manipulation and testing functions . .31 SETOFF . .31 SETON . .31 TESTOFF . .32 TESTON . .33 Chapter 7. Conversion functions . .35 BASE64TOTEXT . .35 BCDTOHEX . .35 BCDTOINT . .36 BCDTOTEXT . .37 CONVERT . .38 DATETONUMBER . .38 DATETOTEXT . .39 FROMBASETEN . .40 FROMDATETIME . .41 FROMNUMBER . .41 HEXTEXTTOSTREAM . .42 INT . .43 NUMBERTODATE . .44 NUMBERTOTEXT . .44 PACK . .45 PACKAGE . .46 QUOTEDTOTEXT . .46 SERIESTOTEXT . .47 STREAMTOHEXTEXT . .48 SYMBOL . .49 TEXTTOBASE64 . .50 TEXTTOBCD . .50 TEXTTODATE . .51 TEXTTONUMBER . .52 TEXTTOQUOTED . .52 TEXTTOTIME . .53 TEXTTOTIME . .54 TOBASETEN . .54 TODATETIME . .55 TONUMBER . .56 UNPACK . .57 UNZONE . .58 ZONE . .59 Chapter 8. Date/time functions . .63 ADDDAYS . .63 ADDHOURS . .64 ADDMINUTES . .64 CURRENTDATE . .65 CURRENTDATETIME . .66 CURRENTTIME . ..