Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     here's a text function cheat sheet

Read-Only Read-Only Topic
Go
Search
Notify
Tools
here's a text function cheat sheet
 Login/Join
 
Expert
posted
here's a text function cheat sheet i just made for myself because i keep thinking i can channel the mind of the focwizard, and i keep screwing up...so i put it on a sticky. You might like to do the same.
ARGLEN(inlength, infield, outfield)
ASIS(argument)
BYTVAL(character, outfield) and HEXBYT(input, output)
CHKFMT(numchar, string, 'mask', outfield)
CTRAN(charlen, string, decimal, decvalue, outfield)
GETTOK(infield, inlen, token_number, 'delim', outlen, outfield)
LCWORD(length, string, outfield) same for UPCASE and LOCASE
LJUST(length, string, outfield) same for RJUST
OVRLAY(string1, stringlen, string2, sublen, position, outfield)
POSIT(parent, inlength, substring, sublength, outfield)
REVERSE(length,string,outfield) and then use LJUST on the outfield
SQUEEZ(length, string, outfield)
STRIP(length, string, char, outfield)
STRREP (inlength, instring, searchlength, searchstring, replength,  repstring, outlength, outstring)
SUBSTR(inlength, parent, start, end, sublength, outfield)
TRIM(trim_where, string, string_length, pattern, pattern_length, outfield)




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
If you use EditPlus as your text editor (it's my favourite Windoze program), I have an auto-complete file that can be installed and when you type the function name, EditPlus automatically completes the rest of the syntax - all you have to do is fill in the variables.

These are the functions currently defined, it's easy to add the missing ones.

ABS(argument)
ARGLEN(inlength, infield, outfield)
ASIS (argument)
ATODBL(infld, length, outfld)
AYM(indate, months, outfield)
AYMD(indate, days, outfield)
BAR (barlength, infield, maxvalue, 'char', outfield)
BITSON (bitnumber, infield, outfield)
BYTVAL(character, outfield)
CALLDOS (length, 'string ', returncode)
CHARGET (num, infield, outfield)
CHGDAT('oldformat', 'newformat', indate, outfield)
CHKFMT(numchar, infield, 'mask', outfield)
CHKPCK (inlength, infield, error, outfield)
CTRAN(inlen, infield, BYTVAL('from','I3'), BYTVAL('to','I3'), output)
CTRFLD(infield, inlength, outfield)
DADMY(indate, outfield)
DADYM(indate, outfield)
DAMDY(indate, outfield)
DAMYD(indate, outfield)
DATECVT(date, 'infmt', 'outfmt'])
DAYDM(indate, outfield)
DAYMD(indate, outfield)
DECODE fieldname (code1 result1 code2 result2...[ELSE default ]);
DECODE fieldname (ddname [ELSE default ]);
DMOD(dividend, divisor, outfield)
DMY(begin, end)
DOWK(indate, outfield)
DOWKL(indate, outfield)
DTDMY(number, outfield)
DTDYM(number, outfield)
DTMDY(number, outfield)
DTMYD(number, outfield)
DTYDM(number, outfield)
DTYMD(number, outfield)
EDIT(fieldname);
EDIT(fieldname, 'mask');
EXP(power, outfield)
EXPN(argument)
FGETENV(envnamelen, envname, outfieldlen, outfldformat)
FMOD(dividend, divisor, outfield)
FTOA(number, '(format)', outfield)
GETTOK(infield, inlen, toknum, delim, outlen, outfield)
GETUSER (outfield)
GREGDT(indate, outfield)
HEXBYT(input, output)
HHMMSS(outfield)
IMOD(dividend, divisor, outfield)
INT(argument)
ISALIVE(filename, handle)
ITONUM(sigbytes, infield, outfield)
ITOPACK(sigbytes, infield, outfield)
ITOZ(outlength, number, outfield)
JULDAT(indate, outfield)
LCWORD(inlength, infield, outfield)
LJUST(inlength, infield, outfield)
LOCASE(inlength, infield, outfield)
LOG(argument)
MAX(argument1, argument2, ...)
MDY(begin, end)
MIN(argument1, argument2, ...)
OVRLAY(base, baselen, substring, sublen, position, outfield)
PARAG(inlen, infield, delim, subsize, outfield)
PCKOUT(infield, outlength, outfield)
POSIT(parent, inlength, substring, sublength, outfield)
RANDNUM(outfield)
REVERSE(length, input, output)
RJUST(inlength, infield, outfield)
ROUND(infield, number, outfield)
SIMILAR(inlength1, string1, inlength2, string2, outfield)
SOUNDEX(inlength, infield, outfield)
SPACE(drive, freespace)
SPELLNUM(outlength, infield, outfield)
SQRT(argument)
SQUEEZ(length, string, outfield)
SUBSTR(inlength, parent, start, end, sublength, outfield)
TODAY(outfield)
TRIM('L'/'T'/'B', string, string_length, 'pattern', pattern_length, outfield)
TRIMV('L'/'T'/'B', string, slength_limit, pattern, plength_limit, outfield)
UFMT(infield, inlength, outfield)
UPCASE(length, input, output)
YM(fromdate, todate, outfield)
YMD(begin, end)


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
ooohhh sweet




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
I downloaded the "Using Functions" Manual to my desktop and placed a shortcut on my Taskbar. I can now electronically search for the function syntax and cut and paste examples.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
Expert
posted Hide Post
"cut and paste" - so old-school Smiler


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
With as many different reports we are asked to do daily Sweating, any thing that buys us extra time is fair game.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     here's a text function cheat sheet

Copyright © 1996-2020 Information Builders