Changing the bidirectional format of a file

Each bidirectional file in the workspace can have a bidirectional format property that is associated with it. This property has two possible values: Default for logical or visual files or Smart logical for files that are created by using the smart logical algorithm.

About this task

You can use the Change file format window for the following purposes:
  • Convert smart logical and logical data to visual layout, which might be necessary for local syntax checking, as local compilers do not support LRM marks correctly.
    Limitations:
    • Local syntax check is deprecated. This action is available only on Windows.
    • Local syntax checking does not support shift-out-shift-in (SOSI) sources. The importer that is used to do the local syntax check supports only UTF-8 encoding. Translating CP-930 and other SOSI sources into UTF-8 alters the column locations for some characters, and this alteration results in unexpected errors.
  • Convert files in visual layout to smart logical layout for editing with the z Systems® LPEX editor.
  • Convert BMS files that are created by previous versions of the Developer for z/OS® product to smart logical layout used by SFM, BMS, and other tools.
  • Convert logical files to smart logical layout for correctly uploading them to the remote system.

Procedure

To view and change the bidirectional format of a file, do these steps:

  1. Select a file in the Navigator and then select Change Bidi Format from the menu.
    Note: This action is available for local files only. You cannot do this action for remote files.
  2. To change the bidirectional format property of the file, select Change format property only.
  3. To convert the file content to the required layout, select Change file format.
  4. To define current and target bidirectional layouts, select settings from the Source attributes and Target attributes areas.
    For each of these attribute sets, you can choose the following settings:
    Option Description
    Visual When this option is selected, the file uses visual layout. When it is clear, the file uses logical layout.
    RTL When this option is selected, the file uses right-to-left file orientation. When it is clear, the file uses left-to-right orientation.
    Symmetric Swap When this option is selected, certain characters such as ( > [ { are interchanged with ) < ] } to preserve the logical meaning of the presented text.
    Note: This option is enabled for Visual RTL files only.
    Numeric Swap When this option is selected, Arabic (European) digit shapes are interchanged with Hindi digit shapes. This option toggles the file between Arabic (European) and Hindi numbers. If the file includes Arabic numbers and you select this check box, Arabic numbers are converted to Hindi. If the file includes Hindi numbers they are converted to Arabic.
    Note: This option is enabled for Visual RTL files only.
    When the source and target settings for a particular attribute are the same, but conversion is requested, the file layout is toggled from smart logical to logical or from logical to smart logical.

What to do next