The error I am getting is 3408 - The address used for an argument was not
correct.
I'm not sure what that means.
Thanks,
T
Scott Klement
<rpg400-l@scottkl
ement.com> To
Sent by: RPG programming on the AS400 /
rpg400-l-bounces@ iSeries <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
2008-09-29 17:57 Re: stat API
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
Hello,
Could someone please provide a working sample of using the stat API in an
RPG program?
Here's an example:
http://www.scottklement.com/rpg/ifs_ebook/stat.html
I've tried everything and the return code is always -1.
...and what's errno set to? With all due respect, if you're calling
ANY of these APIs (open, close, read, write, access, stat, unlink, etc,
etc) and you aren't also retrieving errno, then you are creating a
program that will be nearly impossible to maintain or provide support for.
When you get a -1, retrieve errno, and see what the error number is.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.