shanthi.e
30th August 2008, 08:22
Hi all,

In this script a table dump file from PLM 8 server is uploaded in baan tables.In debugger seq.gets gives some special characters.Can any one help me on this please.

file.path = "\\sankalp\pdmdoc\wbsdocps.dmp"
open.ptr = seq.open(file.path,"r")
if open.ptr > 0 then
while seq.gets(pdm.rec,1024,open.ptr) >= 0
if lval(pdm.rec(1;3)) = 145
then
insert.records()
else
continue
endif
endwhile
seq.close(open.ptr)
else

Thanks in advance.

george7a
1st September 2008, 10:19
Hi

What is the type of this variable "pdm.rec"? How is it defined?

- George

shanthi.e
1st September 2008, 12:16
The variable is defined as string pdm.rec(180)

en@frrom
1st September 2008, 14:06
And what are the special charachters you are referring to?

shanthi.e
1st September 2008, 14:13
hi

I just included the seq.getc$ in the script.After every character some null characters are found.How to solve this ? Is it a additional features added in the plm 8?
Is there any solution?

while seq.gets(pdm.rec,1024,open.ptr) >= 0
| while seq.read(pdm.rec,1024,open.ptr) >= 0
for i = 1 to 255
test = seq.getc$(open.ptr)
endfor
if lval(pdm.rec(1;3)) = curr.comp
then
insert.records()
else

shanthi.e
1st September 2008, 14:24
Hi en
In the debugger mode the value of pdm.rec shows 3 characters which are not available in the keyboard.Now the pdm.rec variable is defined as string of 255 characters.

sprasad
1st September 2008, 15:13
Hi Shanti,

The file is of type .dmp. Try using text file it should solve the problem.

Regards,
Sai Prasad.

shanthi.e
2nd September 2008, 10:08
hi prasad
the problem remains same.This file is created from PLM 8 server.For plm 6 version there is no problem.Its working fine.

sprasad
4th September 2008, 10:57
Hi Shanti,

I tried with to upload the file attached by you,I too found some unknown characters.I changed the file to text format then it was successful.

Regards,
Sai Prasad.

shanthi.e
15th September 2008, 12:19
hi sprasad,

I was out od station.Today i seen your mail and tested the same.Its working fine.Thanks.

shanthi.e
15th September 2008, 12:21
hi sprasad,

I was out of station.Today i seen your mail and tested the same.Its working fine.Thanks.