× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Seems to be a IBM-i Bug

The Buffer that i get in the Exit Program cannot be used with the ifs
write command when the destination is a nfs file. Seems an
access-violation.

when i copy the content into a new memory space which i allocated before
it works fine.

i opend a ticket with ibm so they can look into it.








From: Franz.Rauscher@xxxxxxxxxxx
To: "RPG programming on IBM i" <rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 01.04.2019 16:40
Subject: Re: QaneSava API Samples
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



I compiled the sources and when i use eg /tmp/test.dat as stmf destination

everything works fine.

But when i use /mnt/qnap/test.dat (=a nfs mount) as destination i get
this error:


Module Name. . . . . . . . . . . . . . : CBX1932
Program Status . . . . . . . . . . . . : 00202
The call to ended in error (C G D F).
Previous Status . . . . . . . . . . . : 00000
Statement in Error . . . . . . . . . . : 00023200
RPG Routine . . . . . . . . . . . . . : write
Number of Parameters . . . . . . . . . :
Message Type . . . . . . . . . . . . . : CPF
Additional Message Info . . . . . . . : 9872
Message Data . . . . . . . . . . . . . :
Program or service program QP0LLFS1 in library QSYS ended.
Reason code 1.


The code that brngs this error is:

rc = write( fd: PxSavDta_p: PxSavDtaLen );

So nothing special here. it only uses ExtProc('write') to wrie to the file


Can anyone thell me whats the problem with writing to a nfs share with the

write-command:


Greetings,
Franz



From: "Mark Waterbury" <mark.s.waterbury@xxxxxxxxxxxxx>
To: "RPG programming on IBM i" <rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 01.04.2019 15:47
Subject: Re: QaneSava API Samples
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



Franz,
See:https://apimymymy.wordpress.com/author/apimymy/page/18/

Articles from May 22 and June 26 of 2008 by Carsten Flensburg.

All the best,

Mark S. Waterbury

On Monday, April 1, 2019, 9:20:29 AM EDT, Franz.Rauscher@xxxxxxxxxxx
<Franz.Rauscher@xxxxxxxxxxx> wrote:

Hi!

I tried to find some Sample code for the QaneSava Application Save and
Restore API. There was code in the past but all links are not working
anymore.

Does someone have a link to a working sample. Interesting would be to see
how to Backup to (and Resore from) an IFS-File or a Socket or something
like that.

Greetings,
Franz



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.