Hitachi MK-96RD647-01 manual FXmto with Variable-Length Records Padding

Models: MK-96RD647-01

1 226
Download 226 pages 34.71 Kb
Page 38
Image 38

Source Dataset

 

Record length (max)

 

RL

Record 1: Data entity

 

 

1

 

RL

Record 2: Data entity 2

RL

Record 3: Data entity 3

 

Open-System Target File

Record length (max) – 4 bytes

Data entity 1

padding

Data entity 2

 

Data entity 3

padding

Figure 2-12 FXmto with Variable-Length Records: Padding

With delimiters. Figure 2-13shows an FXmto operation with delimiters (D) for a variable-length source dataset. FCU extracts and transfers the data entities to the open-system target file and adds the requested delimiter to the end of each data entity. The RL fields are not transferred. The resulting length of each data entity in a UNIX target file equals the original data entity length plus one byte for the delimiter. The resulting length of each data entity in a Windows 2000/2003/ Windows NT target file equals the original data entity length plus two bytes for the delimiter.

Note: If use FXmto with delimiters and without padding, you will be able to transfer the variable-length records back to the original dataset later using FXotm.

Source Dataset

 

Record length

 

RL

Record 1: Data entity 1

 

RL

Record 2: Data entity 2

RL

Record 3: Data entity 3

 

Open-System Target File

Data entity length + 1 or 2 bytes

Data entity 1

D

Data entity 2

D

Data entity 3

D

Figure 2-13 FXmto with Variable-Length Records: Delimiters

With padding and delimiters. Figure 2-14shows an FXmto operation with padding and delimiters (D). FXmto with padding and delimiters requires a variable-length source file and produces a fixed-length target file. FCU adds the appropriate delimiter to each data entity, adds the appropriate amount of ‘padding’ so that each record equals the maximum record length, and then extracts and transfers the data entities with padding and delimiters to the open-system target file. The RL fields are not transferred.

2-20

About Cross-OS File Exchange Operations

Hitachi USP V Cross-OS File Exchange User’s Guide

Page 38
Image 38
Hitachi MK-96RD647-01 manual FXmto with Variable-Length Records Padding, FXmto with Variable-Length Records Delimiters