Any suggestions??
Thanks...Ernie
Jim
Ernie Wegrecki <wegr...@advdata.net> wrote in message
news:93279678...@nntp.adni.net...
An other way to do it,
You can use the 2 comands CPYTOIMPF and CPYTOSTMF to be shure to get the
right PCASCII format folow this procedure
(Ok it's a little bit long but i hav'nt find more simple yet !!)
Create a srcfile with a record length egal to your initial database file
plus a filer space need to unpack the numeric fields add decimal separator
and signe.
copy your database file in this source file by the CPYTOIMPF comand
CPYTOIMPF FROMFILE(EXTFILE) TOFILE(EXTFILESRC) +
MBROPT(*REPLACE) DTAFMT(*FIXED) +
RCDDLM(*EOR) +
DECPNT(*COMMA)
Then copy this source file in a stream file using the CPYTOSTMF comand
CPYTOSTMF +
FROMMBR('/QSYS.LIB/YOURLIB.LIB/EXTFILESRC.FILE/EXTFILE.MBR') +
TOSTMF('/tmp/EXTFILE.TXT') +
STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)
(The CPYTOSTMF cannot copy multi field files...)
If you find better solution, thank you for email me
Bruno
Ernie Wegrecki a écrit dans le message <93279678...@nntp.adni.net>...
Me and my colleague Victor did it a mucheasier wy if it is packed data -
just run a query over the file to an outfile, then send that. Dead easy.
Best Regards
Wayne Charlton
Greenib Car BV, The Netherlands
barbier <bar...@wanadoo.fr> schreef in berichtnieuws
7nbng2$o8s$1...@wanadoo.fr...
Matt