>>-SysTempFileName(template-+---------+-)---------------------->< +-,filter-+
Example 8.41. RexxUtil - SysTempfilename
/* Windows Code */ say SysTempFileName("C:\TEMP\MYEXEC.???") say SysTempFileName("C:\TEMP\MYEXEC.tmp") -- produces the empty string. say SysTempFileName("C:\TEMP\??MYEXEC.???") say SysTempFileName("C:\MYEXEC@.@@@", "@") /* Output */ C:\TEMP\MYEXEC.251 C:\TEMP\10MYEXEC.392 C:\MYEXEC6.019 /* Unix/Linux Code. mydir is an existing directory. */ say SysTempFileName("/mydir/MYEXEC.???") -- filter characters are ignored say SysTempFileName("/mydir/MYEXEC.tmp") -- produces a unique name say SysTempFileName("/mydir/??MYEXEC.???") say SysTempFileName("/bogusdir/??MYEXEC.???") say SysTempFileName("MYEXEC@.@@@", "@") /* Output */ /mydir/MYEXEYqY2Hd /mydir/MYEXET4dwdz /mydir/77MYELnI0IU /tmp/77MYEzjoweg /tmp/MYEXEJNj3JB