I am trying to rename a column using dbmaint but am getting an os error.
\d .osWIN:.z.o in
w32w64pth:{p:$[10h=type x;x;string x];if[WIN;p[where"/"=p]:"\\"];(":"=first p)_ p}cpy:{system$[WIN;"copy /v /z ";"cp "],pth[x]," ",pth y}del:{system$[WIN;"del ";"rm "],pth x}ren:{system$[WIN;"ren ";"mv "],pth[x]," ",pth y}here:{hsym
$system$[WIN;“cd”;“pwd”]}\d .`
renamecol:{[dbdir;table;oldname;newname] / renamecol[
:/k4/data/taq;trade;
woz;iz] if[not validcolname newname;'
sv newname,invalid.newname]; rename1col[;oldname;newname]each allpaths[dbdir;table];}
rename1col:{[tabledir;oldname;newname] if[(oldname in ac)and not newname in ac:allcols tabledir; stdout"renaming ",(string oldname)," to ",(string newname)," in
",string tabledir; .os.ren[ sv tabledir,oldname;
sv tabledir,newname];@[tabledir;.d;:;.[ac;where ac=oldname;:;newname]]]}
Anyone have any ideas? I think the .os.ren is causing it. I have used other dbmaint functions without issue.