|
Patrick, Excuse me for taking a week in getting back to you - priorities are constantly changed. I was able to try the suggestion and it does look as if it is functioning, however, the document mentions that 'ILE COBOL cannot directly inport... Errno variable...'. And it is suggested that a C module should be used to obtain the error number/description. We do not have the c compliler - what do hard core COBOL shops do for error handling? Is there a way to get the error number/description in COBOL or CL - without having to purchase another compiler? Where do the error numbers and messages reside? Thanks so much for your help. I did do a lot of digging and since it fell under the 'UNIX-type API's' heading - I had not previously given it to much credit since we are not a UNIX shop. But that was what I needed. Thanks again, Adrienne McConnon (in snowy NJ) -----Original Message----- From: cobol400-l-bounces@xxxxxxxxxxxx [mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of cobol400-l-request@xxxxxxxxxxxx Sent: Tuesday, February 07, 2006 1:00 PM To: cobol400-l@xxxxxxxxxxxx Subject: COBOL400-L Digest, Vol 4, Issue 16 Send COBOL400-L mailing list submissions to cobol400-l@xxxxxxxxxxxx To subscribe or unsubscribe via the World Wide Web, visit http://lists.midrange.com/mailman/listinfo/cobol400-l or, via email, send a message with subject or body 'help' to cobol400-l-request@xxxxxxxxxxxx You can reach the person managing the list at cobol400-l-owner@xxxxxxxxxxxx When replying, please edit your Subject line so it is more specific than "Re: Contents of COBOL400-L digest..." Today's Topics: 1. Re: Backround processor - file access methods question (Patrick Archibald) ---------------------------------------------------------------------- message: 1 date: Mon, 6 Feb 2006 22:34:40 -0500 from: Patrick Archibald <patrick.archibald@xxxxxxxxx> subject: Re: [COBOL400-L] Backround processor - file access methods question Adrienne, If you are looking for a COBOL example of reading and writing to stream files try the link below. The COBOL example is sandwiched between the C and RPG examples. http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/a pis/Unixapiex.htm Thanx, PLA On 2/6/06, Adrienne McConnon <Adrienne.McConnon@xxxxxxxxxxxx> wrote: > > Hello, > > I am trying to convert an HP 3000 COBOL program to the iSeries. The > program is run in the backround continuously and is designed to never > abort. All files are accessed via HP intrinsics using the file number > and are not defined in the in the file section. Does anybody have any > idea on the best way to accomplish this on the iSeries? From what I > have found - the Open File API sounds like it will do what I want - > but I have not found any COBOL examples of its usage. The code > example in the book looks like it may be c++. I am thinking that I > will need to call the c++ program from within my COBOL program and > then check the disposition of the file within my COBOL program, but I > am not sure, and asking you iSeries COBOL experts for advice. > > Thanks and have a great day! > > Adrienne McConnon > Vercuity Solutions > Parsippany, New Jersey, USA > > > > -- > This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) > mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To > subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/cobol400-l > or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take > a moment to review the archives at > http://archive.midrange.com/cobol400-l. > > ------------------------------ -- This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) digest list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/cobol400-l or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l. End of COBOL400-L Digest, Vol 4, Issue 16 *****************************************
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.