rodolfo
20th July 2007, 23:04
I have to create a file from Baan IV b4 (unix) on drive C: (local computer) running Windows XP.

If i use have seq.open.local() when compiling error "Unresolved reference to seq.open.local" appears

Do I have to create the file locally and after that transfer it via FTP ? or there is a another way to achieve that?

I will appreciate any suggestions...
--------------------
Tengo que crear un archivo desde Baan IV b4 (unix) en el disco C: de un computador local que ejecuta windows xp.

Si utilizo seq.open.local() al compilar me da error de referencia no existe a la función seq.open.local.

Debería crear primero el archivo en unix y luego transferirlo via FTP? O existe otra manera de lograrlo?

Gracias por la ayuda....

NPRao
21st July 2007, 00:48
Try to use search option to look for already discussed threads -

Read sequential text file from windows (http://www.baanboard.com/baanboard/showthread.php?t=27650&highlight=ttdllbw)

Also refer to the online programmer's manual- seq.open.local() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_seq_open_local), which has a note to use the ttdllbw library.

rodolfo
21st July 2007, 16:57
Try to use search option to look for already discussed threads -

Read sequential text file from windows (http://www.baanboard.com/baanboard/showthread.php?t=27650&highlight=ttdllbw)

Also refer to the online programmer's manual- seq.open.local() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_seq_open_local), which has a note to use the ttdllbw library.
Thank you NPRAO for your answer.
Before posting this trhead I tried using search option and I tried some solutions but did not work.

If I use ottdllbw, when compiling this error message appears:
"fatal error Can't open dll ottdllbw for reading"
If I use a command from shell command line:
$BSE/bin/bic_info6.1 ottdllbw > $HOME/tmp/dllbw.txt
same message appears.

frigyesg
21st July 2007, 17:22
Hi Rodolfo,

do you have checked the file $BSE/tools/tt<Ver.>/ottdll/odllbw. Is it there and do you have read permissions?

george7a
23rd July 2007, 13:39
Rodolfo,

Can you please post your code (including the declaration part)?

- George

rodolfo
23rd July 2007, 16:15
Hi Frigyes and George

Before reading your post answers I realized that this Baan Version (B40 b4) does not have this dll. I attach a jpg file with libraries available on this Baan instance.

It seems that I have to change my script in order to implement an FTP procedure creating file at server side first, and then transfer it to client side.

Beside this, my script was:
-----------------------
declaration:
#pragma used dll "ottdllbw" | DLL to handle bw- functions


----------------

choice.user.0:
on.choice:
file.name = "c:\Temp\etiqueta.txt"
fp1 = seq.open.local(file.name, "w+", false)
if fp1 >= 0 then
write.file.content()
seq.close.local(fp1)
endif


------------------------

Thank you all anyway.
Best regards,
Rodolfo.

george7a
23rd July 2007, 17:29
As I know you only need the DLL object and it will work. Try to contact Infor for it.

rodolfo
24th July 2007, 15:42
Hello George,

I appreciate your information. I work as a tool consultant, so I will ask my client to contact Infor.

Best regards,
Rodolfo

george7a
1st August 2007, 10:02
I would like to add that you can check how does any of the existing Baan sessions that work with the client work. For example, "Maintain Program Scripts", in this session you are suppose to write the script on the local and the session should copy it to the server.

In order to know which DLLs your session uses follow these steps:
1) Open the session
2) Get the PID of the session (using the "ps" command in the shell)
3) ps <Session PID> and you will get the DLLs or any other objects that the session is using.

From the attached image I saw that my maintain scripts uses the ottdllbw. What does yours use?

- George

rodolfo
2nd August 2007, 01:22
Hello George,
Thank you again for your help.

Finally, ottdllbw is not present on this Baan installation. But I solved the problem using FTP. I created from my script an ftp sequence that I call later with run.prog() to transfer this file from server to client workstation.

Thank you again for your help.

Best regards,
Rodolfo