Using ALIGN in Operator Statements - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ Software
Product
Syncsort™ MFX > MFX
Version
3.1
Language
English
Content type
Programmer’s Guide
Product name
Syncsort™ MFX
Title
Syncsort™ MFX Programmers Guide
Copyright
2024
First publish date
2010
Last updated
2024-11-06
Published on
2024-11-06T17:38:26.716054

The ALIGN operator is used to align fields on boundaries.

  • B aligns the next position on a byte boundary, for example 1, 2, 3,... The next position is used when an asterisk (*) replaces p in a field_name statement. Uppercase (B) and lowercase (b) are both permissible.

    The following example uses ALIGN,B with other dictionary statements:

    Figure 1. Example of ALIGN,B in Dictionary Statements

MFX will print the following dictionary table:
Figure 2.  Sample Dictionary Table

  • D aligns the next position on a doubleword boundary, for example 1, 9, 17,... The next position is used when an asterisk (*) replaces p in a field definition statement. Uppercase (D) and lowercase (d) are both permissible.

    The following example uses ALIGN,D with other dictionary statements:

    Figure 3. Example of ALIGN,D in Dictionary Statements

    MFX will print the following dictionary table:

    Figure 4. Sample Dictionary Table

  • F aligns the next position on a fullword boundary, for example 1, 5, 9,... The next position is used when an asterisk (*) replaces p in a field_name statement. Uppercase (F) and lowercase (f) are both acceptable.

    The following example uses ALIGN,F with other dictionary statements:

    Figure 5. Example of ALIGN,F in Dictionary Statements

    MFX will print the following dictionary table:

    Figure 6. Sample Dictionary Table

  • H aligns the next position on a halfword boundary, for example 1, 3, 5,…The next position is used when an asterisk (*) replaces p in a field_name statement. Uppercase (H) and lowercase (h) are both permissible.

    The following example uses ALIGN,H with other dictionary statements:

    Figure 7. Example of ALIGN,H in Dictionary Statements

    MFX will print the following dictionary table:

    Figure 8. Sample Dictionary Table