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: 27 June 1997 ArDean Leith