Changing temp file folder location for MATRIX/HIGHWAY programs


Product(s):Voyager
Version(s):6.x
Area:MATRIX/HIGHWAY

Problem

MATRIX and HIGHWAY programs in Voyager handle matrix files as one of the inputs to the program. These programs also provide the functionality to transpose a matrix during the run. When transposing matrices, the program writes temporary files to the WIndows temp folder. These files are uncompressed matrix data, and depending on the size of the matrix, the files could be of large size. If the program is handling multiple matrix transposes, then the temp file sizes could add up quickly. Since Windows temp folder is located on the C:\, users might run out of space during the program run and the run might fail. The print file for the program will contain an error as shown below:

Solution

MATRIX and HIGHWAY programs have a keyword FILET PATH= which can be used to direct the temp files from the program to a different drive with enough space. Below is an example:

RUN PGM=MATRIX
FILEI MATI[1]="Input.mat"
FILEO MATO[1]="Output.mat" MO=101-105

FILET PATH=D:\Temp

MW[101] = MI.1.1.T
MW[102] = MI.1.2.T
MW[103] = MI.1.3.T
MW[104] = MI.1.4.T
MW[105] = MI.1.5.T

ENDRUN

User has to make sure that the path specified is valid path and the folder location exists. Setting PATH=' ' will make the program write temp files to the current working folder of the model run.