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



I just went digging and found that V5R2 QShel now has the "attr" function, which cna return a whole slew of things, including create date. Go to Programming->Shells->QShell->--->>> etc. in InfoCenter

If you're at an earlier release, you are left with a loop running some combination of opendir(), readdir(), and the various stat()-like functions. Or take a look at Qp0lProcessSubtree() & Qp0lGetAttr() - the latter gives you a lot more info than the stat() functions and the options on attr() in QShell remind me of these options in Qp0lGetAttr(). /COPY stuff is in QSYSINC/QRPGLESRC(QP0LSTDI).

What's nice about Qp0lProcessSubtree() is that it is a single call, after some setup, that itself makes the calls to a function you define, so you don't have to manage the loop so much.

It's worth looking at something from IBM at <ftp://testcase.boulder.ibm.com/as400/fromibm/ApiSamples>. There are 2 SAVFs there, both starting with "IFSTOOL" and all source is included for the utilities contained therein. Lots of other stuff, too.

Then there's something else at <http://www-922.ibm.com/easy400h/ifstool.htm> that has a few RPG utilities (the one from Boulder is mostly in C) with source for IFS, including one that reads a directory and puts the info in a file in QTEMP.

HTH
Vern

At 05:16 PM 1/20/2004 -0500, you wrote:
Ideally, would like to be able to list all objects into a file with the
create date.  EDTF was suggested...but that has no outfile capabilities...

----- Original Message -----
From: "Scott Klement" <klemscot@xxxxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Sent: Tuesday, January 20, 2004 4:13 PM
Subject: Re: IFS object attributes


> > > On Tue, 20 Jan 2004, Rick Klopfer wrote: > > > Cannot find a native command that will list the attributes of objects in > > IFS, especially date-created. > > WRKLNK, option 8 shows these attributes. It's a native command... is > that what you're looking for, or did you mean something that will list > them to a file? or are you trying to retrieve them into a program, or > what? > > > Does one exist? If not, anyone have something available? > > In addition to WRKLNK, there's various commands that can do this sort of > thing in QShell, though I don't know if you consider QShell to be a > "native command" or not. > > Aside from that, there's the stat(), fstat() and lstat() APIs which give > you a lot of the attributes about the files, though I don't know if the > date created is one of them... The Qp0lGetAttr() API should also give > you this information... > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. >

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.