|
You can do it with a sequel. Just create a view with the from file on the AS400. In a CL execute the view. ie: execute view(fromlib/fromfile) toflr(topcfolder) todoc(topcdoc.txt) replace(*yes) Alexis Cousino Detroit Newspapers -----Original Message----- From: Kelly Cookson [mailto:kc62301@yahoo.com] Sent: Thursday, July 11, 2002 2:00 PM To: cobol400-l@midrange.com Subject: COBOL output to XML file I'm trying code a COBOL program that generates an XML file. The COBOL program WRITEs to a physical file or source file member, then I transfer the file to a PC text file. I've used the Client Access Express transfer function, the copy to stream file (CPYTOSTMF) command and the copy to PC document (CPYTOPCD) command. In each case, an end-of-file label is added to the text file. The end-of-file label makes the XML file ill-formed. (Deleting the end-of-file label with a text editor makes the XML file well-formed.) Can I WRITE directly to a PC text file from COBOL400? Or can I set up a translation table that does not add an end-of-file label to the PC text file? Thanks for any insights. Kelly __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com _______________________________________________ This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list To post a message email: COBOL400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/cobol400-l or email: COBOL400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.