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



Carsten,

Thank you for your answer. Could you post me the procedure GetPathFromFileID? Thank you.

Best regards

Jan

Am 21.12.2015 um 15:38 schrieb Flensburg, Carsten:
Joop,

Using st_ino in conjunction with st_ino_gen_id as in the example below should do the trick:

**-- File ID structure:
D Qp0lFID_t Ds Qualified
D 8a Inz( *Allx'00' )
D Gid 10u 0
D Fid 10u 0
/Free
Qp0lFID_t.Fid = Buf.st_ino;
Qp0lFID_t.Gid = Buf.st_ino_gen_id;

pBufPth = GetPathFromFileID( pBufPth: %Size( BufPth ): Qp0lFID_t );

Cheers,
Carsten

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of j.beckeringh@xxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: 21. december 2015 15:31
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Exact Name of File in Root-Part of IFS

Stu,

That does indeed return the correctly spelled path, but not with the file id (st_ino) that stat (or stat64) returns. You have to use Qp0lGetAttr with QP0L_ATTR_FILE_ID to get the file id.

This communication is intended only for use by the addressee.It may contain confidential or privilegedinformation.
If you receive this communication unintentionally, please inform us immediately and delete this e-mail and any attachments.
Warning: Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept
responsibility for any loss or damage arising from the use of this email or attachments.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.