SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

SEARCH DIRECTORY

Name:
    SEARCH DIRECTORY (SET)
Type:
    Set Subcommand
Purpose:
    Specify the name of the directory where Dataplot will look for files.
Description:
    When Dataplot encounters a file name (on the LIST, READ, WRITE, or CALL commands), it will do the following:

    1. It will first look for the file in the current directory (you can enter the PWD command if you are not sure what that is).

    2. If it does not find the file, it will look for the file in the Dataplot auxillary directory. By default, this will be "C:\Program Files (x86)\NIST\DATAPLOT" under Windows systems and "/usr/local/lib/dataplot" under Unix/Linux/Mac OS X systems. However, this may be different on your platform.

      Dataplot first searches this directory and then the following sub-directories "help", "data", "dex", "macros", "programs", "text", "menu", "ps", and "tex" are searched (in the order given).

    Note that under Unix/Linux/Mac OS X systems, which are case sensitive, Datatplot will first try to open the file name as given. If the file is not found, then Dataplot will convert the file name to all upper case and try to open the file. If the file is not found, then Dataplot will convert the file name to all lower case and try to open the file. Note that this file name conversion is performed in each directory before moving to the next directory.

    Some users may find it convenient to keep macros and datasets that will be used in subsequent Dataplot sessions in a common directory. The SEARCH DIRECTORY command allows you to specify a directory to be searched for file names. This directory will be searched after the current directory but before the Dataplot auxillary directories.

    Currently, this command is limited to a single directory.

Syntax:
    SET SEARCH DIRECTORY <string>
    where <string> specifies the desired directory name.
Examples:
    SET SEARCH DIRECTORY C:\DATAPLOT_MACROS
    SET SEARCH DIRECTORY C:\DATAPLOT_DATASETS
    SET SEARCH DIRECTORY /home/heckert/dataplot_macros
Default:
    None
Synonyms:
    SET SEARCH PATH
Related Commands:
    SET PATH = Define the location for Dataplot's auxillary files.
    LIST = List the contents of a file.
    READ = Read data from a file.
    WRITE = Write data to a file.
    CALL = Execute commands stored in a file.
Applications:
    File Usage
Implementation Date:
    2014/10
Program:
     
    . Assume "sample.dp" is in the /home/heckert/dataplot/macros directory
    .
    SET SEARCH DIRECTORY /home/heckert/dataplot/macros
    CALL sample.dp
        

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 10/29/2014
Last updated: 10/29/2014

Please email comments on this WWW page to alan.heckert.gov.