How to retrieve the “created by user” attribute for IFS objects ?
Hi, I'm writing a program in RPGLE to fetch certain attributes of IFS objects (directories, folders and libraries), attributes like date created, date last accessed, etc. I've found an IFS API (Qp0lGetAttr) which retrieves all of the attributes I need, except one - the user who created the object. Would you know how to extract this "created by user" attribute using some API or otherwise ? Is it possible at all ? Please do let me know. Thanks so much - Shantanu.

Software/Hardware used:
ASKED: August 17, 2006  4:23 PM
UPDATED: December 15, 2009  7:47 AM

Answer Wiki:
Hi Shantanu Have you tried API QUSROBJD, format OBJD0300 positions 220-229? The manual says it holds the creators user profile. Jonathan www.astradyne-uk.com =========================================================== AFAIK, there is no such attribute for IFS files. Why do you think there is? Tom
Last Wiki Answer Submitted:  December 15, 2009  7:47 am  by  astradyne   370 pts.
All Answer Wiki Contributors:  astradyne   370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I couldn’t find any API that returns the creator of the IFS file.
You can retrieve the owner of the file, though.
The QUSROBJD is for QSYS objects and not IFS objects.

 0 pts.

 

Jonathan, ayahel1… thanks for your reply.

ayahel1 is right… QUSROBJD works only for the QSYS.LIB objects.

The API I was looking at, Qp0lGetAttr, can get the object OWNER… but that is not always the same as the object CREATOR.

Thanks – Shantanu.

 0 pts.