COBOL Business Document

The data types that you can apply depend on the data class. In turn, the possible data classes depend on the structure type of the Business Document. For more information, see Business Document structure, Business Documents, and Axway Mapping Services DML Reference Guide

COBOL Business Documents

COBOL (Common Business Oriented Language) was the first widely-used high-level programming language for business applications. Many payroll, accounting, and other business application programs written in COBOL over the past 35 years are still in use, and it is possible that there are more existing lines of programming code in COBOL than in any other programming language. While the language has been updated over the years, it is generally perceived as out-of-date and COBOL programs are generally viewed as legacy applications.

Data class Data type Default

Boolean

PIC 9 [0,1]

1

Date & Time

Date [YYYYMMDD]

8 (indicates YYYYMMDD format)

Date [YYMMDD]

6 (indicatesYYMMDD format)

Date [CYYMMDD]

7 (indicates CYYMMDD format)

Date [Packed, YYMMDD]

6 (indicates YYMMDD format)

Date [Packed, CYYMMDD]

7 (indicates CYYMMDD format)

Date [Packed,
YYYYMMDD]

8 (indicates
YYYYMMDD format)

Integer

PIC S9 (p)

18

PIC S9 [EBCDIC sign] (p)

18

PIC 9 (p)

18

PIC 9 [Packed] (p)

18

PIC S9 [Packed] (p)

18

Integer[9 999+/-](p)

18

Integer[+/-9 999](p)

18

Real number

Float [+/-0999.99] (p,s)

18,6

Float [0999.99+/-] (p,s)

18,6

PIC S9 v9 (p,s)

18,6

PIC S9 v9 [EBCDIC
sign] (p,s)

18,6

PIC 9 v9 [Packed] (p,s)

18,6

PIC S9 v9 [Packed] (p,s)

18,6

PIC 9 v9 (p,s)

18,6

String

PIC X (len)

255

PIC X [BL left] (len)

(BL = Blank left: space characters
are added to the left)

255

PIC X [LV right] (len)

(LV= Low Value: "\0" characters
are added to the right)

255

For more information on COBOL Business Documents, see Define COBOL Business Documents.

Related topics

Business Document types

Define COBOL Business Documents

Business Document structure

Business Documents

Related Links