Baanboard.com

Go Back   Baanboard.com > Blogs > davenon's blog

User login

Frontpage Sponsor

Main

Google search


Poll
What version of Baan have you installed
Baan IV
30%
FP3
3%
FP4
0%
FP5
1%
FP6
2%
FP7
4%
10.2 (incl. 10.2.1)
3%
10.3
6%
10.4
19%
10.5
29%
Other
2%
Total votes: 96

Baanboard at LinkedIn


Reference Content

 
We were baaN Users on Unix and Oracle. We migrate to Windows and SQL server. ^Problem with files format
By davenon at 16 Dec 2009 - 17:11

We create, in a report script files with code like below:

        IF code.login = "davenon" THEN
  idfac = seq.open(FICFACDV,"w")
 ELSE
  idfac = seq.open(FICFAC,"w")
        endif
 IF idfac < 1 THEN
  |*Ouverture rapport impossible
  mess("spsls4404055.1",1,FICFAC)
 endif

and write with :

  mntbrut  = sprintf$("%@9999999,99@",( -1 * transport.forfait))
  enrcpt = "VTE" & CSV
   & dat6factur & CSV & nopiece & CSV
   & tdsls045.ttyp & SLASH & nofactur & CSV
   & "708" & nucompte708.SAGE & CSV
   & "" & CSV
         & facturavoir & nofactur & " " & raisocpt & CSV
   & "" & CSV
   & "" & CSV
   & mntbrut & CSV
   & mntbrut & CSV
   & "0,00"
         retour = seq.puts(enrcpt,idcpt)

Now , we are using in Windows and SQL server environnement. The files created with this code are in format Unix and we need to convert  them in Windows Format.

How can we obtain files in windows format ?

Thanks to all. I'm sure to obtain a good respons by you 

Daniel VENON .

 

 

 

0
No votes yet

by dhowells on December 18, 2009 - 8:20pm
dhowells's picture
use a 't' with the 'w' on your seq.open. We just had the same problem.

idfac = seq.open(FICFACDV,"wt")

by sushil on December 19, 2009 - 3:39pm
sushil's picture
post your queries / problem in Forum section not in blogs - to get solution from members.


All times are GMT +2. The time now is 12:59.


©2001-2017 - Baanboard.com - Baanforums.com