Hello,
I am trying to get a portion of a string from a file that contains 1 line like
date operator jobcode jobname+
the length of the jobname can vary, but it always begins in the same spot, in this case 22 and it always ends with "+"
so I have a varialble
{STRING(LastIndexOf,{FILE(Content,C:\files\out\jobNAME.dat)},+)}
that returns 29 which is the column number of the string delimiter, now I would like to calculate the length of the jobname by subtracting 22 and then use the result: 7 as an argument to the substring function below
{STRING(Substring,{FILE(Content,C:\files\out\jobNAME.dat)},22,7)}
which should return "jobname"
The idea is to have a variable that contains the jobname no matter how long or short it is.
Can you help me, please??
](*,)