| 
 | 
Hi, Uros:
There are a number of ways to do this, some of which involve the Retrieve
File Description API, but here's a simple one.
Looks like you're using ILE RPG, so....
(These columns are not aligned because I'm lazy.)  :)
Define a Data Structure using your file as a base:
D RECDS       E DS       EXTNAME(YOUR_FILE_NAME)
Now, get the size of the data structure:
C    Eval    LENGTH1 = %Size(RECDS)
HTH
Dennis
Uros.Davidovic@US.exel.com@midrange.com on 11/04/2002 02:44:09 PM
Please respond to midrange-l@midrange.com
Sent by:    midrange-l-admin@midrange.com
To:    midrange-l@midrange.com
cc:
Subject:    Record format or file or data structure length retrieval in ILE
       RPG V4R5M0
Hi,
can someone tell me a simple way to retrieve the length of either a file or
record format or a data structure in V4R5M0? I've tried several
combinations of %len and %size on all 3 things and nothing has worked.
Regards,
Uros
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.