strerror and errno should give them to you.
On Thu, 2021-04-22 at 16:37 -0400, Art Tostaine, Jr. wrote:
Is there a way to retrieve any error info from the API?
Thanks, Art
On Thu, Apr 22, 2021 at 3:57 PM Art Tostaine, Jr. <
<mailto:atostaine@xxxxxxxxx>
atostaine@xxxxxxxxx
wrote:
No it's 128 fixed character field. It's defined by Brad's GETURI tool
copybook.
On Thu, Apr 22, 2021 at 3:48 PM Niels Liisberg <
<mailto:nli@xxxxxxxxxxxxxxxxx>
nli@xxxxxxxxxxxxxxxxx
wrote:
Is path a varchar ? The you need %addr(path:*data) .. Otherwise you will
give it the length (short int) as part of the name..
tor. 22. apr. 2021 kl. 21.41 skrev Art Tostaine, Jr. <
<mailto:atostaine@xxxxxxxxx>
atostaine@xxxxxxxxx
:
Renaming it didn't work. I used a wild card in WRKLNK and also used
EDTF
'/tmp/wc/images/post_out.json', both show the file fine.
On Thu, Apr 22, 2021 at 2:09 PM Hopkins, Matt <
<mailto:Matt.Hopkins@xxxxxxxxxxxxxxx>
Matt.Hopkins@xxxxxxxxxxxxxxx
wrote:
Did you use a wild card to look for the file?
WRKLNK '/tmp/wc/images/post_out*'
Matt Hopkins
Systems Architect
PDP Group, Inc./The Amynta Group
Debugging a program that stopped working recently. I think this
code
was
copied from Simon, Liam also has a version.
PathFile = '/tmp/wc/images/post_out.json' + x'00' ;
OpenMode = 'r' + x'00' ;
FilePtr = OpenFile(%addr(PathFile):%addr(OpenMode)) ;
FilePtr is Null.
PATHFILE = '/tmp/wc/images/post_out.json█ '
OPENMODE = 'r█ '
The block character is x'00.
I am able to view the file using WRKLNK:
Object link
/tmp/wc/images/post_out.json
Authority is public *RWX for all directories in the hierarchy.
Where else can I look? Thanks
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email:
<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx>
RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
<
https://lists.midrange.com/mailman/listinfo/rpg400-l>
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email:
<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
<
https://archive.midrange.com/rpg400-l>
https://archive.midrange.com/rpg400-l
.
Please contact
<mailto:support@xxxxxxxxxxxxxxxxxxxx>
support@xxxxxxxxxxxxxxxxxxxx
for any subscription
related
questions.
Help support midrange.com by shopping at amazon.com with our
affiliate
link:
<
https://amazon.midrange.com>
https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email:
<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx>
RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
<
https://lists.midrange.com/mailman/listinfo/rpg400-l>
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email:
<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
<
https://archive.midrange.com/rpg400-l>
https://archive.midrange.com/rpg400-l
.
Please contact
<mailto:support@xxxxxxxxxxxxxxxxxxxx>
support@xxxxxxxxxxxxxxxxxxxx
for any subscription
related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
<
https://amazon.midrange.com>
https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email:
<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx>
RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
<
https://lists.midrange.com/mailman/listinfo/rpg400-l>
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email:
<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
<
https://archive.midrange.com/rpg400-l>
https://archive.midrange.com/rpg400-l
.
Please contact
<mailto:support@xxxxxxxxxxxxxxxxxxxx>
support@xxxxxxxxxxxxxxxxxxxx
for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
<
https://amazon.midrange.com>
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.