Version 4.5.2
 —  Terminal Emulation  —

Specifying a File Name

This document covers the following topics:

The format of a file is determined by its extension.


Downloading Data Using a Dialog Box

You can download data to a file, a printer or directly to Excel.

If you download data to a file and no file name has been associated with the work file number used in a Natural program, a dialog box prompts you for a file name at execution time. The Natural work file number is shown in brackets in the title bar.

Download Data

Start of instruction set To download data to a file

  1. Make sure that the download destination File is selected.

  2. In the File name text box, enter the name of the file in which the data are to be stored on the PC.

    If you do not specify a path, the file is stored in the current directory.

  3. Choose the desired file type from the Save as type drop-down list box.

  4. Specify the format that is to be used.

    If the Use DOS (OEM) download format check box is not marked, the ANSI character set is used. This character set is used by all Windows applications.

    If this check box is marked, the DOS character set is used. This character set is used by most MS-DOS applications.

  5. Choose the Download button.

    The data are downloaded to the specified file.

Start of instruction set To download data to a printer

  1. Leave the File name text box empty.

  2. Select the Printer option button.

    Download Data to Printer

  3. Optionally: choose the Setup button to select another printer or define another orientation (e.g. landscape).

  4. Mark the Interpret control characters check box, if  you want to download a Natural report containing control characters. Valid control characters are:

    Control Character Function
    1 New page
    blank Single blank line
    0 Double blank line
    - Triple blank line
  5. Choose the Download button.

    The data are downloaded to the specified printer.

Start of instruction set To download data directly to Excel

  1. Leave the File name text box empty.

  2. Select the Excel application option button.

    Download Data to Excel

  3. Choose the Download button.

    When download is complete, Excel is automatically started and the data are shown in an untitled Excel workbook.

  4. Save the downloaded data in Excel.

    Note:
    A format file (extension ncf) is not created in this case.

Top of page

Uploading Data Using a Dialog Box

If no file name has been associated with the work file number used in a Natural program, a dialog box prompts you for a file name at execution time. The Natural work file number is shown in brackets in the title bar.

Upload Data

Start of instruction set To upload data to a file

  1. In the Upload Data dialog box, select the file to be uploaded.

  2. Specify the upload format that is to be used.

    If the Use DOS (OEM) download format check box is not marked, the ANSI character set is used. This character set is used by all Windows applications.

    If this check box is marked, the DOS character set is used. This character set is used by most MS-DOS applications.

  3. Choose the Upload button.

Top of page

Specifying a File Name Using the SET Command

Natural programs download or upload data by referring to the number of a work file or printer file. This number must be an integer between 1 and 32. You can define up to 32 work files and up to 31 printer files.

A file name can be associated with several numbers for work files and printer files. The number of a work file or printer file, however, can only be associated with one file name.

Start of instruction set To associate a file name with the number of a work file or printer file

Start of instruction set To reset the work file or printer file

Start of instruction set To specify an XSL style sheet type and name for download to XML

Start of instruction set To reset the XSL style sheet type and name for download to XML

Top of page

Creating a File Name Dynamically

You can instruct Entire Connection to dynamically create a file name at download time. In this case, the file name consists of the date and time the file was created. The format is DDHHMMSS (DD = day, HH = hour, MM = minute, SS = second).

Start of instruction set To create a file name dynamically

Top of page