file_open();
mq_setOptions(MQPUT_OPTIONS);
msglen = init_message(message, msgno++);
while ((bytes = file_read(buffer, MAX_BLKSIZE))) {
if ((msglen + bytes) > msglen_max) {
mq_write(message, msglen);
msglen = init_message(message, msgno++);
}
memcpy(&message[msglen], buffer, bytes);
msglen += bytes;
rec_count++;
}
*((long *)(&message[12])) |= htonl(0x80000000);
mq_write(message, msglen);
mq_setOptions(MQCLOSE_OPTIONS);
mq_close();
file_close();

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: Tuesday, September 08, 2009 12:59 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sending a File to MQ

That looks like an IFS error...like 'invalid file mode specified'. Post
the
line of C code, or post the program.

And you...

On Tue, Sep 8, 2009 at 12:48 PM, Harvell, Joel
<jbharvell@xxxxxxxxxxxx>wrote:

Here are the errors I'm getting



Error occurred processing COMICS, errno 3015, OS message follows:

The type variable specified on the open function is not correct.



This program I'm running is written in C.



Be seeing you...*



Joel B. Harvell

Food Lion, LLC

(704) 633-8250 x2709

jbharvell@xxxxxxxxxxxx





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

Follow-Ups:
Replies:

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

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