FR G - Read (sets) a global string variable

(10/11/07)

PURPOSE

Associates a file name template or any other alphanumeric string with a string (symbolic) variable. Reads input from current procedure or terminal. 'FR G' differs from 'FR' which receives input from the calling procedure or input stream. The string variable is available globally from all following SPIDER procedures executed during this run.

SEE ALSO

FR [Read (sets) a local string variable]
FR L [Read (sets) a local string variable]
FR N [Read (sets) next global string variable from file]
FR F [Read (sets) global string variables from a file]
RR [Read (Set) Register variables]
VAR [Variable Assignment]

USAGE

.OPERATION: FR G

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

NOTES

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

  2. Example.
    FR G
    [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

© Copyright Notice /       Enquiries: spider@wadsworth.org