FR L - Read (sets) a local string variable

(10/11/07)

PURPOSE

Associates a file name template or any other string with a string (symbolic) variable. Reads input from current procedure or terminal. 'FR L' differs from 'FR' which receives input from the calling procedure or input stream. The string variable is available only inside the current SPIDER procedure.

SEE ALSO

FR LS [Sets local string variable using current string values]
FR [Read (sets) a local string variable]
FR F [Read (sets) global string variables from a file]
FR G [Read (sets) a global string variable]
FR GS [Sets global string variable using current string values]
RR [Read (Set) Register variables]
VAR [Variable Assignment]

USAGE

.OPERATION: FR L

.VARIABLE NAME & ASSOCIATED VALUE: [label]value
[Enter string variable name (surrounded by []'s) and the associated alphanumeric string.]

NOTES

  1. This operation is useful when writing long procedures as a string variable can be initialized to contain a certain value at the top of the procedure then the variable e.g. [raw_file] can be used throughout the procedure. If the string's value later changes then it only has to be altered at one location in the procedure.

  2. Example.
    FR L
    [raw_file]nerve{***[iter]}
    DO [iter]=4,6
    FS
    [raw_file]
    ENDDO
    [iter]=16
    CP
    [raw_file]
    [raw_file]_jnk
    EN

    When procedure executes, operation sequence is :

    FS
    nerve004
    FS
    nerve005
    FS
    nerve006

    CP
    nerve016
    nerve016_jnk

SUBROUTINES

RDPRMC, RDPR, SYMPAR, SETSYMPAR, SUBSYMPAR, PARSESYMPAR

CALLER

DRIV1