Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

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 00:15.


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