DCL anomaly with the DCL Lexical f$search - VMS

This is a discussion on DCL anomaly with the DCL Lexical f$search - VMS ; Has anyone encountered this. Here's a snippet from a DCL procedure I am working on: $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! f$search(INPUT_FILE) RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" RCV_FILE has a value of "BSTBOTH_2008103.*" When this code is executed it returns ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: DCL anomaly with the DCL Lexical f$search

  1. DCL anomaly with the DCL Lexical f$search

    Has anyone encountered this.

    Here's a snippet from a DCL procedure I am working on:

    $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") !
    f$search(INPUT_FILE)

    RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]"
    RCV_FILE has a value of "BSTBOTH_2008103.*"

    When this code is executed it returns to UPDATE_FILE a null string so
    that UPDATE_FILE = "".

    This is wrong because the file it alludes to is there:
    Directory S04:[AM_TESTS.MIKES]

    BSTBOTH_2008103.211436;25
    6448/7232 7-MAY-2008 12:27:59.37

  2. Re: DCL anomaly with the DCL Lexical f$search

    Farrell, Michael wrote:
    > Has anyone encountered this.
    >
    > Here's a snippet from a DCL procedure I am working on:
    >
    > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") !
    > f$search(INPUT_FILE)
    >
    > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]"
    > RCV_FILE has a value of "BSTBOTH_2008103.*"
    >
    > When this code is executed it returns to UPDATE_FILE a null string so
    > that UPDATE_FILE = "".
    >
    > This is wrong because the file it alludes to is there:
    > Directory S04:[AM_TESTS.MIKES]
    >
    > BSTBOTH_2008103.211436;25
    > 6448/7232 7-MAY-2008 12:27:59.37
    > .
    > .
    > .
    >
    > When I write the line without the comment, it works properly.
    >
    > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")
    > UPDATE_FILE = " BSTBOTH_2008103.211436;25".
    >
    > Why does the "! f$search(INPUT_FILE)" make a difference to the working
    > of the f$search command?
    >
    > TIA
    >
    > Mike Farrell


    $ WRITE SYS$OUTPUT "Return Status=''$STATUS'"

+ Reply to Thread