Previous Page
|
Next Page
TRAILSGN
w
. Informat
Reads a trailing plus (+) or minus (–) sign.
Category:
Numeric
Syntax
Details
Example
Syntax
TRAILSGN
w
.
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
Copyright © SAS Institute Inc. All rights reserved.
Previous Page
|
Next Page
|
Top of Page