1 $! generates options file for vms link
2 $! p1 is filename and mode to open file (filename/write or filename/append)
3 $! p2 is comma-separated list of files
8 $ x=f$element(element,",",'p2')
9 $ if x .eqs. "," then goto out
10 $ y=f$edit(x,"COLLAPSE") ! lose spaces
11 $ if y .nes. "" then write file y