NOF Output Screen Data Format

NOF Output screen data format is different from input screen data formats, and since NOF output does not go through screen formatting routines, the format is also different from the format of output sent to a station. These differences are as follows.

The following table lists examples of the COBOL equivalents for various attributes properties when part of NOF output. The Screen Example column shows the same output as it would appear in a Direction Out, No Persistence property on a screen, having gone through screen formatting routines. In the table, the character b denotes a space.

Attribute PropertiesNOF Input COBOL FormatNOF ExampleScreen Example
PrimitiveLengthDecimalScreen Edit Type   

String

5

  

PIC X(5)

ABCDE

ABCDE

Number

5

  

PIC 9(5)

12345

12345

Signed Number

5

 

-

PIC S9(5)

PIC X

1234N

b

12345-

Signed Number

5

 

DR

PIC S9(5)

PIC XX

1234E

bb

12345DR

Number

5

2

No Decimal-keyed

 

PIC 9(3)V9(2)

12345

12345

Signed Number

5

2

Decimal-keyed

+

PIC S9(3)V9(2)

PIC X

1234E

B

123.45+

Signed Number

5

2

Decimal-keyed

DR

PIC S9(3)V9(2)

PIC XX

1234E

bb

123.45DR

Signed Number

5 Suppress

zeros

 

DR

PIC S9(5)

PIC XX

0012C

bb

bb123DR

Number

5 Suppress

zeros

2

No Decimal-keyed

DR

PIC S9(3)v9(2)

00123

bb123

Signed Number

6 Separator Char Suppress

zeros

2

Decimal-keyed

+

PIC S9(4)V9(2)

PIC X

123456

b

1,234.56

+

Signed Number

5 Suppress

zeros

2

Decimal-keyed

DR

PIC S9(3)v9(2)

0012C

bb123DR

The final format output required by a NOF program varies depending upon your requirements. For this reason, formatting of the NOF output is the responsibility of your NOF program or terminal.