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


  • Subject: RE: IFS object attributes
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Fri, 9 Feb 2001 08:02:33 -0500

Thanks-this works great, and gives me exactly what I'm looking for. I
created a frontend command for retrieving the information.

-----Original Message-----
From: Scott Klement [mailto:klemscot@klements.com]
Sent: Wednesday, February 07, 2001 5:43 PM
To: 'midrange-l@midrange.com'
Subject: Re: IFS object attributes

On Wed, 7 Feb 2001, Goodbar, Loyd (AFS-Water Valley) wrote:

> Is there a way I can get the attributes (date/time created/modified, file
> size) for an IFS object in a CL or RPG/IV program? I have a batch file
> running on an NT server that extracts some data from another server
(Novell)
> to a directory on the AS/400. On the AS/400 side, I want to ensure I have
a
> file created "today" before I try to process it.

Yes, you can use the stat() API from the UNIX-Type APIs manual to get
this information.

Here's an example written in RPG IV.   You might be able to do it in CL,
but it'd be a lot more difficult.  :)

<snip>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.