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



In RPG you can setup an INFDS and define position 156-159 Binary 4 for
the file you want to check the number of records. If will need to be
USROPN (User Open). When you open it you will have the number of records
at open time in the field you defined in the data structure.

HTH

Bruce Collins

IT Architect

AAA Cooper Transportation


-----Original Message-----
From: midrange-l-bounces+bruce.collins=aaacooper.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+bruce.collins=aaacooper.com@xxxxxxxxxxxx]
On
Behalf Of David Gibbs
Sent: Wednesday, March 14, 2007 3:14 PM
To: Midrange Systems Technical Discussion
Subject: Re: Checking file for data

Dwayne Allison wrote:
Is there away to check a file for data with out having to do a DBU
or
CHAIN to the file.  I need to just check the file and if it has data
continue to the next process.  If not data is found than exit.

QUSRMBRD API, with format MBRD0200, will give you the number of
records
in a member.

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/qusrmbrd.h
tm

davd

--
New merchandise at the midrange.com shop:
http://www.cafepress.com/midrangedotcom
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
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 ...

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.