IBM VS COBOL II Clauses
|
Corresponding S370Fxxx
Formats and Informats
|
---|---|
PIC S9(X) PACKED-DECIMAL
|
S370FPDw.
|
PIC 9(X) PACKED-DECIMAL
|
S370FPDUw.
|
PIC S9(W) DISPLAY
|
S370FZDw.
|
PIC 9(W) DISPLAY
|
S370FZDUw.
|
PIC S9(W) DISPLAY SIGN
LEADING
|
S370FZDLw.
|
PIC S9(W) DISPLAY SIGN
LEADING SEPARATE
|
S370FZDSw.
|
PIC S9(W) DISPLAY SIGN
TRAILING SEPARATE
|
S370FZDTw.
|
ceil((x+1)/2)
.
For PIC 9(X) PACKED-DECIMAL, W is ceil(x/2)
.
For example, PIC S9(5) PACKED-DECIMAL represents five digits. If a
sign is included, six nibbles are needed. ceil((5+1)/2)
has
a length of three bytes, and the value of W is 3.
offset value (in hex) inst label directive +000000 00001C 2 PEX1 DC PL3'1' +000003 00001D 3 PEX2 DC PL3'-1' +000006 F0F0C1 4 ZEX1 DC ZL3'1' +000009 F0F0D1 5 ZEX2 DC ZL3'1'
Format
|
Data Type Representation
|
Corresponding Informat
|
Comments
|
---|---|---|---|
PD
|
Packed decimal
|
PD
|
Local signed packed
decimal
|
PK
|
Packed decimal
|
PK
|
Unsigned packed decimal;
not specific to your operating environment
|
ZD
|
Zoned decimal
|
ZD
|
Local zoned decimal
|
none
|
Zoned decimal
|
ZDB
|
Translates EBCDIC blank
(x'40') to EBCDIC zero (x'F0'), and then corresponds to the informat
as zoned decimal
|
none
|
Zoned decimal
|
ZDV
|
Zoned decimal representation
other than IBM
|
S370FPD
|
Packed decimal
|
S370FPD
|
Last nibble C (positive)
or D (negative)
|
S370FPDU
|
Packed decimal
|
S370FPDU
|
Last nibble always F
(positive)
|
S370FZD
|
Zoned decimal
|
S370FZD
|
Last byte contains sign
in upper nibble: C (positive) or D (negative)
|
S370FZDU
|
Zoned decimal
|
S370FZDU
|
Unsigned; sign nibble
always F
|
S370FZDL
|
Zoned decimal
|
S370FZDL
|
Sign nibble in first
byte in informat; separate leading sign byte of x'C0' (positive) or
x'D0' (negative) in format
|
S370FZDS
|
Zoned decimal
|
S370FZDS
|
Leading sign of –
(x'60') or + (x'4E')
|
S370FZDT
|
Zoned decimal
|
S370FZDT
|
Trailing sign of –
(x'60') or + (x'4E')
|
PDJULI
|
Packed decimal
|
PDJULI
|
Julian date in packed
representation - IBM computation
|
PDJULG
|
Packed decimal
|
PDJULG
|
Julian date in packed
representation - Gregorian computation
|
none
|
Packed decimal
|
RMFDUR
|
Input layout is: mmsstttF
|
none
|
Packed decimal
|
SHRSTAMP
|
Input layout is: yyyydddFhhmmssth,
where yyyydddF is the packed
Julian date; yyyy is a 0-based
year from 1900
|
none
|
Packed decimal
|
SMFSTAMP
|
Input layout is: xxxxxxxxyyyydddF,
where yyyydddF is the packed
Julian date; yyyy is a 0-based
year from 1900
|
none
|
Packed decimal
|
PDTIME
|
Input layout is: 0hhmmssF
|
none
|
Packed decimal
|
RMFSTAMP
|
Input layout is: 0hhmmssFyyyydddF,
where yyyydddF is the packed
Julian date; yyyy is a 0-based year from 1900
|