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



Steff,
Jon already answered your question, but I wanted to add that
Scott Klemement has provided DELTREER4 which includes code
to handle such errors and he also provides tutorials about
use of the IFS

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of steff Sucala
Sent: Sunday, April 07, 2013 6:09 AM
To: RPG400-L@xxxxxxxxxxxx
Subject: Qp0lGetPathFromFileID how to check errors in AS400

Hi 

I'm reading a line from an IBM created journal and I want to display the name of the file that was accessed. I'm using this API, and getting the results I want when everything is ok. 

D GetPathFID      PR              *   ExtProc('Qp0lGetPathFromFileID') D buf                             *   Value D size                          10U 0 Value D fileid                        16A     
                               
D rc              s               *                                          

c                   clear                   buffer          512

c                   eval      rc = GetPathFID(%ADDR(Buffer) c                                  : %SIZE(Buffer) c                                  : obj_fid  )            

        
Sometimes I get no result with this API, and the Buffer is empty, and rc gets SPP:*NULL. 
After doing some reading on the IBM site, I understand that this means there is an error, but how do I retrieve the error? 

Thank you 
Steff 

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.