|
The easiest way is to use the Retrieve Member Description API QUSRMBRD. The first format MBRD0100 returns '0' for data and '1' for source files in position 134 of the data structure returned by the API. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx [mailto:rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx] On Behalf Of Ben_Pforsich@xxxxxxxxxxxx Sent: Tuesday, May 31, 2005 2:14 PM To: RPG programming on the AS400 / iSeries Subject: How to tell *FILE object is PF-DTA or PF-SRC I need to be able to determine if a physical file is a data or source physical file in RPG IV. I thought the QUSROBJD API could be used for this, but I don't see how. The attribute returned is always "PF" regardless. Any ideas? Ben Pforsich Programmer Analyst Bob Evans Farms, Inc. I/S Department Columbus, Ohio
As an Amazon Associate we earn from qualifying purchases.
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.