Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

FormatArgsAsExp – PB Docs 2022 – PowerBuilder Library

FormatArgsAsExp – PB Docs 2022

FormatArgsAsExp

database parameter

Description

Controls whether PowerBuilder converts a DataWindow object
retrieval argument of decimal datatype to scientific (exponential)
notation if the argument exceeds 12 digits but has fewer than 16 digits.
If FormatArgsAsExp is set to Yes (the default), PowerBuilder performs
this conversion.

When to specify FormatArgsAsExp

You must specify a value for FormatArgsAsExp before connecting
to the database.

Applies to

ASE and SYC, SAP Adaptive Server Enterprise

ODBC interface

O90 Oracle9i

O10 Oracle 10g

ORA Oracle (for 11g and later)

Syntax

Parameter

Description

value

Specifies whether you want PowerBuilder to convert
a DataWindow or report retrieval argument of decimal datatype to
scientific (exponential) notation if the argument exceeds 12
digits but has fewer than 16 digits. Values
are:

  • Yes

    PowerBuilder converts a retrieval argument of
    decimal datatype to scientific notation if it exceeds 12
    digits but has fewer than 16 digits.

  • No

    (Default) PowerBuilder leaves the retrieval argument
    as a decimal and does not perform the default conversion
    to scientific notation if it exceeds 12 digits but has
    fewer than 16 digits.

Default value

FormatArgsAsExp=’No’

Usage

When to use

The setting of FormatArgsAsExp might affect the speed of data
retrieval in your DataWindow objects, especially if you are accessing
large databases.

If FormatArgsAsExp is set to Yes, PowerBuilder converts retrieval
arguments of type decimal to scientific notation if the argument exceeds
12 digits but has fewer than 16 digits. Some DBMS optimizers might
interpret the resulting scientific notation as a different datatype and
scan all rows in the table to find it. This can slow data retrieval if,
for example, you are accessing a DB2 database with many large
tables.

Setting FormatArgsAsExp to No tells PowerBuilder to leave the
retrieval argument as a decimal and not convert it to scientific
notation. This speeds data retrieval for large databases.

Retrieval argument size limited

The FormatArgsAsExp parameter is relevant only if a retrieval
argument of type decimal has fewer than 16 digits.

Examples

To tell PowerBuilder to convert a retrieval argument exceeding 12
digits but with fewer than 16 digits to scientific notation:

  • Database profile

    Check the Format Arguments in Scientific Notation check box on
    the Syntax page in the Database Profile Setup dialog box.

  • Application

    Type the following in code:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x