|
Well, I got the program to open the AS400 PF.recfm
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
parm was the problem. I removed that from the file_setMode statementreferenced"
and now the program will open the file.
However, now of course I get a "pointer not set for location
error. I may be back on the list asking about this if I can't figureit
out!!it
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
not too long ago.that's
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
unlikely and it is probably the code that handles the input file
************************************************************************
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 privilegedinformation
and is intended for the individual or entity named above. If you arenotify
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
the sender immediately by using the e-mail address or by telephone************************************************************************
(704-633-8250).
--list
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
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.