Multi Format Information

Register the Multi Format Information when the Send file contains records of different formats.

You can register up to 20 keys and Format IDs, and register a Default Format ID.

There are two ways to register the information.

Field List

'Optional' in the chart below refers to whether or not the field is optional for registration on the HULFT Management Console. Optional parameters for batch registration may differ from optional fields on the HULFT Management Console.

For details on optional parameters for batch registration, refer to Registration and modification of management information.

Table 2.11 List of Multi Format Information Fields

Field Name

When Defaulted

Setting

Optional

Remarks

Screen

File

Multi Format ID

MFMTID

 

Alphanumeric characters and "_"

-

Within 50 bytes

Key Start Position

KEY-START

 

From 1 to 19997

-

 

Key Length

KEY-LEN

 

From 1 to 20

-

 

Default Format ID

DEFAULT-FMTID

 

Alphanumeric characters and "_"

Within 50 bytes

Comment

COMMENT

 

Alphanumeric characters, half-width Katakana

Within 60 bytes

Key Value

MFORMAT DEF
to DEFEND

 

Alphanumeric characters

-

Within 20 bytes

Format ID

 

Alphanumeric characters and "_"

-

Within 50 bytes

:

Optional

-

:

Mandatory

Specification of each field

The following explains the fields specified in the Multi Format Information. Strings within brackets () are the tags of parameter names to be defined in a definition card for the Management Information Batch Registration program (XRSYSINF).

Multi Format ID (MFMTID)

This field specifies the ID that identifies the registered multi format.

This Multi Format ID is linked with the Multi/Format ID (FMTID) in the Send Management Information.

Key Start Position (KEY-START)

This field specifies the key start position to be set per record.

The sum of the Key Start Position and the Key Length cannot exceed '19998.'

When the Key Start Position is greater than the length of the Format Information, the Key Value is not correctly applied.

Key Length (KEY-LEN)

This field specifies the length of the key to be set per record.

Default Format ID (DEFAULT-FMTID)

This field specifies the default Format ID when the key does not match the key of each record of the Send file.

If you specify the Default Format ID, when the key specified for each record of the Send file and the key specified for the Key Value (MFORMAT DEF to DEFEND) do not match, the format you specified for the Default Format ID is used. If you omit this field and the keys do not match, a conversion error occurs.

Comment (COMMENT)

This field specifies the comment on the Multi Format Information.

Key Value (MFORMAT DEF to DEFEND)

This field specifies the key to be set per record.

Specify an alphanumeric character string of the same length as the Key Length.

Specify either of the following values for the Field Type (FORMAT DEF to DEFEND) in the area for specifying the key value:

X:

Character

M:

Variable-length Characters

Format ID (MFORMAT DEF to DEFEND)

This field specifies the Format ID used when the keys match.

Specify the Format ID that is registered in the Format Information.

You must register as many Format IDs as the number set for the Key Value (MFORMAT DEF to DEFEND). HULFT determines the Format ID from the Key Value and applies the Format ID to the data.

Points to be noted when specifying

Case where the Key Value is not correctly applied

If the following Field Types are located before the position specified for the Key Start Position (KEY-START), the position of the data will be displaced due to the characteristics of the data, and the Key Value (MFORMAT DEF to DEFEND) cannot be applied correctly:

  • P (Signed Internal Decimal)

  • S (Signed External Decimal)

Starting position of format

When HULFT applies the Format Information that matches the Key Value (MFORMAT DEF to DEFEND), HULFT starts applying the information from the first byte in the record.