Creating a Guideline from a CSV Layout

Requires EDISIM 6.6 or later

CSV File Format

For an example, please see Test1.csv in EDISIM’s Samples directory:

Notice the headers in the top row. The first row must contain the exact field names shown in Test1.csv.

Each line in the CSV file can contain these columns (case insensitive and in any order).

Lev

The Lev column shows the level, or hierarchy, of items. Number from the outer level as 0 to the most inner level, which will be a field containing data.

Example (levels are shown in red):

 

 

 

Level 99 is a code value for the field immediately above. These 99 rows are code values A, B, and C for ITEMTYPE:

ID

The ID of the item; maximum 20 characters for a record and 128 characters for fields; no spaces or other special characters except underscores.

Name

The Description of the item:

Desc

The Purpose of the item.

Usage

The Usage of the item. Possible values are:

M    (mandatory)

O    (optional)

N    (not used)

They appear in the U/A column

Repeat

How many times this item can repeat in the current location.

Type

Data type for fields. See DataTypes.pdf in EDISIM’s Documentation directory. Only fields that actually contain data should have a type. Do not use Type for records or complex fields.

MinLen

Minimum length for data in this field.

Only fields containing data have MinLengths. Do not use them with records or complex fields.

MaxLen

Maximum length for data in this field.

Only fields containing data have MaxLengths. Do not use them with records or complex fields.

If each field has a MinLen and MaxLen that is the same, the guideline will be assumed to be for fixed-length data.

If one or more has a different MinLen from its MaxLen, then the guideline will be assumed to be delimited.

Note1

Contents of a level 1 note.

Note2

Contents of a level 2 note.

You can have columns for any level of note up to Note99.

CSV File Checklist

Importing the CSV File

To import a comma-delimited file into Standards Editor for use as a delimited or fixed-length-field guideline:

  1. Open Standards Editor.

  2. Choose File > Import > Import CSV Layout and open.

  3. Select the CSV file and import it.
    There is a sample Test1.csv in EDISIM’s Samples directory.

  4. Choose File > Properties > User-Defined Standard and fill out the information as described in Splitting Flat Files with Document Splitter on page Splitting Flat Files with Document Splitter.

  5. Be sure that the record tags are not repeated as the first field in the records.