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



Robert is correct.

Have a look at the stat() function (API).

For help with that you can ask here or at midrange-l after reviewing Scott's
book at http://www.scottklement.com/rpg/ifs_ebook/ifs_ebook.pdf

Scan for "retrieving stream file stats"

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
You can?t have everything. Where would you put it?


Just to clarify: You want to use EGL to write a web service, that you
will
consume with an RPG program using HTTPAPI?

If this is the case, you can use EGL to write a web service that
accesses
files on SQL Server...but from reading your email, I'm guessing you
want to
read the directory that the files are in, and check their timestamps?

You may not need a web service for this...I recall there may be a way
to
read a (Windows) directory from an RPG program...I have to do some
digging,
but think I can find an example.

RE


-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of Colpaert, Peter
Sent: Wednesday, June 23, 2010 4:45 AM
To: EGL-i (egl-i@xxxxxxxxxxxx)
Subject: [EGL-i] Can this be done in EGL?

Hi Group,

I've been asked to look into a possible use of EGL as a web service in
our
organization.

What we need is the following.

Our RPGLE application residing (of course) on the iSeries would call a
web
service to check the timestamp of one or more files that reside on a
windows
server (\\server\folder\file.ext<file:///\\server\folder\file.ext>
paths
will be provided from the RPGLE). I would use HTTPAPI from Scott
Klement,
of course.

The web service would then return the timestamps - if the files are
found -
or a "no file" indication.

I already looked at some of the examples available in EGL café, but
either
I'm not searching well, or there are no examples of EGL accessing or
retrieving information from files that have not been explicitly
identified
in the project itself.

Any input would be highly appreciated, even if it is just "sorry, can't
be
done in EGL".

Thanks in advance,

Peter Colpaert
Software Engineer - PLM Development Team
Philips Consumer Luminaires
Tel: (+32) 3/459 13 17
Fax: (+32) 3/450 74 33
Address: Industrieterrein Satenrozen 11, 2550 Kontich, Belgium
Email: Peter.Colpaert@xxxxxxxxxxx


________________________________
The information contained in this message may be confidential and
legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby
notified
that any use, forwarding, dissemination, or reproduction of this
message is
strictly prohibited and may be unlawful. If you are not the intended
recipient, please contact the sender by return e-mail and destroy all
copies
of the original message.
--
This is the EGL on and around the IBM i (EGL-i) mailing list
To post a message email: EGL-i@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/egl-i
or email: EGL-i-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/egl-i.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2956 - Release Date:
06/22/10
11:36:00

--
This is the EGL on and around the IBM i (EGL-i) mailing list
To post a message email: EGL-i@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/egl-i
or email: EGL-i-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/egl-i.


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.