Figure 2-7illustrates the Pipe function process.

 

 

FCU

 

Application/Utility Program

.

 

 

 

 

 

start

 

 

 

 

 

 

 

 

create a named pipe

open pipe(‘r’ mode)

 

 

 

 

 

open pipe(‘w’ mode)

waiting receive data entries

 

 

 

 

 

 

 

 

 

 

waiting send data entries

 

 

 

 

 

receive data OK

 

 

 

send data OK

 

 

 

 

 

read data

 

 

 

write data

 

 

 

 

 

 

 

 

 

 

 

 

close pipe

 

 

 

 

 

 

close pipe

 

 

 

 

 

 

 

end

 

 

 

 

 

 

Figure 2-7

Pipe Function Process Outline

Padding (PAD) Option

The padding option can be used for FXmto with variable-length source datasets and for FXotm with fixed-length target datasets. When the padding option is specified for FXmto, FCU adds padding to each source data record, so that the length of the each record equals the maximum record length. When padding is specified for FXotm, FCU adds padding to each source data entity, so that the length of the each target record equals the record length defined for the target dataset. FCU transfers the data entities with padding to the target file/dataset. FCU cannot extract padding from files or datasets. Sections FXmto Operations and FXmto with Multiple Volume Datasets describe FXmto and FXotm operations with padding.

The type of padding added by FCU depends on whether code conversion was also requested:

Padding with code conversion (text files). When padding and code conversion are both specified, FCU adds spaces to the short data entities as needed.

Padding without code conversion (binary data files). When padding is specified but code conversion is not, FCU adds 0x00 to the short data entities as needed.

About Cross-OS File Exchange Operations

2-13

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

Page 31
Image 31
Hitachi MK-96RD647-01 manual Padding PAD Option, Pipe Function Process Outline