TRAILSGNw. Informat

Reads a trailing plus (+) or minus (–) sign.

Category: Numeric

Syntax

TRAILSGNw.

Syntax Description

w

specifies the width of the input field.

Default 6
Range 1–32

Details

If the data contains a decimal point, the TRAILSGN informat honors the number of decimal places that are in the input data. If the data contains a comma, the TRAILSGN informat reads the value, ignoring the comma.

Example

input x trailsgn8.;
Data Line
Result
----+----1
1
1
1,000
1000
1+
1
1-
-1
1.2
1.2
1.2+
1.2
1.2-
-1.2