10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

System-defined FunctionsNameshift(c1,nshift)ResultTypeanycharacterdata typeDescriptionShifts the string nshift places to the rightif nshift > 0 and to the left if nshift < 0.If c1 is a fixed-length character string,the result is padded with blanks to thelength of c1. If c1 is a variable-lengthcharacter string, no padding occurs. Theresult format is the same as c1.size(c1) smallint Returns the declared size of c1 withoutremoving trailing blanks.squeeze(c1)trim(c1)uppercase(c1)charextract(c1,n)text orvarchartext orvarcharanycharacterdata typecharCompresses white space (any sequenceof blanks, null characters, newlines (linefeeds), carriage returns, horizontal tabs,and form feeds (vertical tabs)).This function trims white space from thebeginning and end of the string, andreplaces all other white space with singleblanks. This function is useful forcomparisons.The value for c1 must be a string ofvariable-length character string data type(not fixed-length character data type).The result is the same length as theargument.Returns c1 without trailing blanks. Theresult has the same length as c1.Converts all lowercase characters in c1 touppercase.Returns the nth byte of c1. If n is largerthan the length of the string, then theresult is a blank character.56 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!