× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Kelly,

You can write directly to the IFS file system (a stream
file) with Cobol.  You could try this technique with a stub
program to see if it creates the file correctly.

There was sample code on IBM's "code snippet" site, but
apparently that has been discontinued (no surprise here...)

Somewhere I have it stored on CD...

Terry

> -----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 thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.