Yep I've isolated the problem to a parm that is defined in one of the
modules referenced by one of the program's #include statements.

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 Michael Ryan
Sent: Friday, September 11, 2009 9:07 AM
To: Midrange Systems Technical Discussion
Subject: Re: Sending a File to MQ

That error is usually when a parm is accessed and the parm was not
passed on
a program call.



On Fri, Sep 11, 2009 at 8:53 AM, Harvell, Joel
<jbharvell@xxxxxxxxxxxx>wrote:

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 / \
--------------------------------------------------------------------




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


************************************************************************
**
This electronic message may contain confidential or privileged
information
and is intended for the individual or entity named above. If you are
not the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information is prohibited.
If you have received this electronic transmission in error, please
notify
the sender immediately by using the e-mail address or by telephone
(704-633-8250).

************************************************************************
**
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2020 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].