The documentation for the Unix type API's has this info but Scott Klement's web site has examples of using these API's (they're probably in the archives as well). Take a look at his IFS tutorial at
http://www.scottklement.com/rpg/ifs.html.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ian Patterson
Sent: Thursday, May 14, 2009 12:17 PM
To: RPG programming on the IBM i / System i
Subject: RE: IFS problem with V5R4 upgrade
Matt,
whats the process to determine the actual failure from the API ?
Can you point to a technique.
Thanks.
ian
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Haas, Matt (CL Tech
Sv)
Sent: 14 May 2009 14:28
To: RPG programming on the IBM i / System i
Subject: RE: IFS problem with V5R4 upgrade
Are you calling the API to get the error number when it fails? That will
tell you what the problem is.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Ian Patterson
Sent: Thursday, May 14, 2009 4:04 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: IFS problem with V5R4 upgrade
Has anyone seen this problem ?
I have an RPGLE program that reads a file on the IFS which is created by a
PC program (of mine).
This program has worked successfully for years over all OS/400 versions from
V5R1
Last week a Customer upgraded from V5R3 to V5R4 and the program now fails on
the open() of the IFS file (return code -1)
All other V5R4's including ours work OK.
The strange thing is that if I interactively debug the program - it works.
Any thoughts ?
Regards
Ian Patterson
--
This is the RPG programming on the IBM i / System i (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 is the RPG programming on the IBM i / System i (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.
As an Amazon Associate we earn from qualifying purchases.