× 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: S36 flat file attributes
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Tue, 14 Dec 1999 11:43:08 -0800
  • Organization: Conex Global Logistics Services, Inc.

I believe DSPFD (Display File Description) gives you all
the information you are looking for.  You just want to specify an
OUTFILE for the output.

I'm not so sure about some of the more esoteric information you
are looking for (allocation method, etc...) but it's probably in there.

Regards,

Jim Langston

Tom Hightower/Solutions_Inc wrote:

> Here's my project: I have a third-party S/36 program that uses a 'SPECIAL'
> file called SUBRVT.  In essence, SUBRVT reads thru the S/36 directory and
> retrieves the file attributes.  The program is about 15 years old, and the
> vendor is out of business.  We've upgraded our S/36 to an AS/400.  I have
> other programs which depend on the file generated from this program, so I
> need to write a native version of it (all new work is in native).
>
> How do I determine the file attributes for a S/36 flat file?  Specifically,
> I need to retrieve: Filename, record length, file type (whether indexed or
> sequential, temporary or permanent), allocation method (records or blocks),
> amount allocated, records used, key length (if indexed).
>
> If thru an API, could you please provide a code example (it would REALLY
> help).  I'm really weak on APIs, but working out with them.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 ...

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.