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



Thanks to David L. Mosley, Jr. for his professionalism and great help provided
in solving our issue previously stated to the list.  The solution I used was
with the UNIX-type APIs:
1) Open directory (OPENDIR)
2) Read directory entry (READDIR)
3) Close directory (CLOSEDIR)
4) Get file or link information (LSTAT)

Basically, the whole concept was discussed in an article from the ISeries
Network (formerly AS400 Network) on the Spring of 2001 and the title is APIs BY
EXAMPLE: READING AN IFS DIRECTORY.

The link to get there is:

http://www.iseriesnetwork.com/resources/artarchive/index.cfm?fuseaction=viewarticle&CO_ContentID=10219&channel=art

Thanks everybody and have a pleasant day!

Peter Vidal
Pall Aeropower Corp.
Senior Programmer Analyst



                    sublime78ska@attbi.
                    com                        To:     midrange-l@midrange.com
                    Sent by:                   cc:
                    midrange-l-admin@mi        Subject:     Re: CGI Automated 
Documentation
                    drange.com


                    03/26/2002 11:35 AM
                    Please respond to
                    midrange-l






In RPG you could use the unix api's to read a
directory's contents.  Then you could do whatever you
want with the file name & path.  Check the RPG archives
for opendir, readdir, closedir, lstat and/or unix-like
api's.

Phil

> --__--__--
>
> Message: 11
> Subject: CGI Automated Documentation
> To: as400programmer@yahoogroups.com, Easy400Group@yahoogroups.com,
>    midrange-l@midrange.com
> From: Peter_Vidal@pall.com
> Date: Tue, 26 Mar 2002 10:34:51 -0500
> Reply-To: midrange-l@midrange.com
>
> I am thinking about creating a "flat" file on the AS400 and load (from my
> specific CGI directory) all the object links in it.  I know that I can display
> the objects links using DSPLNK but  I need them in a file instead, so I can
read
> this file in a CL  but there are no other output options but screen or paper.
> How can I do this?
>
> This is because we document in a weekly basis every production program we have
> in our system.  As part of the process, we obviously use the DSPPGMREF command
> in order to pull all the information we are looking for and then we load all
> this references into a database file (let's call it PGMREF), so we can search
> over any piece of information we want, like WHERE USED and so on.  Now, we
need
> to document also ALL OUR CGI SOURCES in terms of the files used in each one
and
> include them in our database PGMREF in order to have the WHOLE PICTURE.  I
know
> the folders to use in our IFS but I want to do all this on the AS400.
>
> TIA
>
> Peter Vidal
> Pall Aeropower Corp.
> Senior Programmer Analyst
>
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
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 ...


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.