Product:
Planning Analytics 2.1.14
Microsoft Windows 2022 server
Issue:
How replace \ with / in a string in a TM1 TI process?
Solution:
Enter below code in you prolog:
vTemp = '';
vChar = '';
k=1;
WHILE( k <= LONG(pFilePath) );
vChar = SUBST(pFilePath, k, 1);
IF(vChar @= '\');
vChar = '/';
ENDIF;
vTemp = vTemp | vChar;
k = k + 1;
END;
NewFilePath = vTemp;
Content in pFilePath will be updated to NewFilePath variable.
More information:
https://cubewise.com/functions-library/tm1-function-for-ti-while/