Router-CIM Automation Suite

RCIM_2018_Header


RCIM_2018_Header


Previous topic Next topic  

RCIM_2018_Header


Previous topic Next topic  

"F" Switch Parameters

The "F" switch requires one or more parameters to determine what type of numeric formatting to perform.  The parameter(s) is delimited by a "#" followed by each required single character parameter.  An example:

N#4#4;F#ZL=SEQNO

The Z indicates 'leading zeros' and the L indicates 'fixed left'.

An alternate method of numeric formatting is provided using header codes.  Each individual header code can contain one parameter.  The parameter would be the character string representing the desired selection.  When using header codes ALL numbers are affected.  However, if an individual item has the "F" switch, the "F" switch will over ride the header code.  An example header code is:

UNSIGNED=$HEADER.6

This header code will make ALL numeric values UNSIGNED (no + or - signs).

The following table describes the available parameters for the "F" switch.

PARAMETER

HEADER CODE

DESCRIPTION

-

SIGNREV

An entry with this switch will output its numeric value with the sign reversed to NC code.

+

PLUS/ON

An entry with this switch will output positive numeric values with a '+' at beginning of the number.

D

DECIMAL/OFF

An entry with this switch will output its numeric value with the decimal point removed.

O

ROUND/OFF

An entry with this switch will output its numeric value with no rounding applied.

J

LEFTJUST

An entry with this switch will output its numeric value left justified.

L

FIXED/LEFT

An entry with this switch will output its numeric value with the number to the left of the decimal point a fixed number of places.

N

N/A

An entry with this switch will output its numeric value with a single leading zero (0) added to it.

R

FIXED/RIGHT

An entry with this switch will output its numeric value with the number to the right of the decimal point a fixed number of places.

S

N/A

An entry with this switch will output its numeric value with a single trailing zero (0) added to it.

T

TRAILING/ZEROS

An entry with this switch will output its numeric value with trailing zeros added to it.  Note that FIXED/RIGHT must also be on for this option to work.

Z

LEADING/ZEROS

An entry with this switch will outputs its numeric value with leading zeros added to it. Note that FIXED/LEFT must also be on for this option to work.

U

UNSIGNED

A code using this switch will have its sign stripped off and be output as an unsigned value.