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



Well, I got the program to open the AS400 PF.

Here is the code that I changed.

file_setMode("rb,type=record,recfm=*");

I determined by using debug and reading the C/C++ manual that the recfm
parm was the problem. I removed that from the file_setMode statement
and now the program will open the file.

However, now of course I get a "pointer not set for location referenced"
error. I may be back on the list asking about this if I can't figure it
out!!

Thanks for everyone who chimed in on this, it helped.

Later



Be seeing you...B

Joel B. Harvell
Food Lion, LLC
(704) 633-8250 x2709
jbharvell@xxxxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: Tuesday, September 08, 2009 9:09 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sending a File to MQ

When we get these 3000 series error codes we can find out what they
mean, on the iSeries, anyhow, by displaying the message with ID of CPE
plus the number. In this case, DSPMSGD CPE3015. Neat trick - learned it
not too long ago.

Vern

Simon Coulter wrote:
On 09/09/2009, at 3:26 AM, Harvell, Joel wrote:


file_open();


Show the code for this function. The error number (3015) you
previously posted is a file I/O error set by fopen(). It is likely
that the mode string (parameter 2) contains a character that means
something on your "mainframe" but is unsupported on OS/400.

While it's possible that code within the MQ API is causing this that's

unlikely and it is probably the code that handles the input file that

is at fault.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.