Try changing f to
s f="c:\rotina.ro:(""RWN"")"
The open parmeters need to be part of the file variable.
Be aware that using this method may not work in future versions.  I believe
the routine object gives you methods to do this that would be forward
compatible.

Mark

"Udo Leverentz Mayer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> OK,
>
> Now I'm trying this code:
>
> set r=$$rsave^%Wr("INT",f,"descricao","Cache",0,0,1)
>
> with f="C:\rotina.ro" and my routines name.int in ^%Utility($J,n)
>
> If the file already exists, occurs the error: "WRITE>rsave+21^%Wr"
>
> If the file does not exists, occurs the error: "Can't open file"
>
> Does this file have to exists? I was thinking that this routine would
create
> the file.
>
> Thanks
>
> -- 
> Udo Leverentz Mayer
> Divis�o de Suporte
> Tribunal de Justi�a do Paran�
> www.tj.pr.gov.br
>
> "Ram�n Jim�nez" <rjimenez@@@cicla..com...do> escreveu na mensagem
> news:[EMAIL PROTECTED]
> > Udo,
> >
> > I think you not need specify the "WNS" parameters, just the file name.
> >
> > HTH,
> >
> > Ram�n
> >
> >
>
>



Reply via email to