>In cusmapi:createsession()
>SET DEFAULT TO &lcOldFolder causes error 202
>(PATH was c:\program files\...long names)
>SET DEFAULT TO (lcOldFolder) works.
The problem was cused by the use of macro-expansion on an LFN with a space in the file name, Treating it as a name expression is the correct way to handle this.