DateModifiedViewsCategory

This group of values are integer unsigned data type. They can be from 1 to 8 bytes with maximum range from 0 to 18446744073709551615. Unsigned integers don't reserve a bit for a sign and they occupy entire storage with value bits. The summary of unsigned BINARY data type can be found in COBOL Data Types article.

Storage Description

BINARY 1 (1 byte)

Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Bit valueBit valueBit valueBit valueBit valueBit valueBit valueBit value

BINARY 2 (2 bytes)

Bit 15Bit 14Bit 13...Bit 3Bit 2Bit 1Bit 0
Bit valueBit valueBit value...Bit valueBit valueBit valueBit value

BINARY 4 (4 bytes)

Bit 31Bit 30Bit 29...Bit 3Bit 2Bit 1Bit 0
Bit valueBit valueBit value...Bit valueBit valueBit valueBit value

BINARY 8 (8 bytes)

Bit 63Bit 62Bit 61...Bit 3Bit 2Bit 1Bit 0
Bit valueBit valueBit value...Bit valueBit valueBit valueBit value

Sample 1

255 value

Byte 1
1111 1111

Explanation

Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
1286432168421

255 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1

Sample 2

35,791 value

kuY%ta25F
Byte 2Byte 1
1000 10111100 1111

Explanation

Bit 15Bit 14Bit 13Bit 12Bit 11Bit 10Bit 9Bit 8Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
327680002048051225612864008421

35791 = 32768 + 2048 + 512 + 256 + 128 + 64 + 8 + 4 + 2 + 1

COBOL Representation Samples

01 VAR-BINARY PIC 9(5) USAGE COMP.
01 VAR-BINARY PIC 9(05) USAGE COMP.
01 VAR-BINARY PIC 9(5) COMP.
01 VAR-BINARY PIC 9(5) USAGE COMP.

Resources

  • ebcdic-parser tool for converting of mainframe EBCDIC data into Unicode ASCII delimited text

Comments

comments powered by Disqus