HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS WADSWORTH

Obsolete: No longer supported

In case you have a large number of procedures written using the old formalism, we have included source code and SGI Irix executable (located in spider/bin) for a C++ program called convert which will convert SPIDER batch programs and procedures to the new formalism.

Old method for substituting into file names

SPIDER can substitute for a portion of the file name at run time using a numerical value contained in registers or the value of the DO-loop index.

To substitute a register value into a file name, replace the last three digits <###> of the file name with 'X' and the register number. A possible file name is <ABC>X<##> where ## is a register number between 10 and 99. In this way the number of digits (subject to a minimum of 3) in the register value is determined. This many digits (or characters) at the end of the file name string are replaced with the value from the current contents of register X<##> E.g. if the register X11 contains the value: 234 and the file name string is ABC3X10, then the resulting filename is: ABC3234. (The 'X10' portion of the file name string is considered to represent a part of the original file name length.)

For use in DO-loops, the string <###> may be replaced by the sequence 00<C> where C (a single letter) is the DO-loop index. In this case the number of digits (subject to a minimum of 3) in the DO-loop index is determined. This many digits (or characters) at the end of the file name string are replaced with the curent DO-loop index value. E.g. if the current DO-loop index C has value 10 and the file name string is ABC300C, then the resulting filename is: ABC3010. (The '00C' portion of the file name string is considered to represent a part of the original file name length.)

The full file name is the above character string amended with .<Dat>, where <Dat> is the data code specified at the beginning of the session.


Source: oldfilenamesub.html     Last update: 8 November 1999     ArDean Leith


© Copyright Notice /       Enquiries: spider@wadsworth.org

BACK TO SPIDER BACK TO WADSWORTH