|
This isn't a table in the sense of a database table - it is the list of relational database entries - which systems you can connect to. So one way might be to try the SQL CONNECT to the name you want to test - or do the same with the CLI SQLConnect function. In either case, you can test the results of this. -------------- Original message -------------- From: "Dave Odom" <Dave.Odom@xxxxxxxxxxxx> > Paul, > > You wrote: > > >>> Does anyone know if there is an API to do the equivalent of the > DSPRDBDIRE > command but that can be easily called from an RPG program?. > > I need to verify that an entry is or is not in the RDB table but would > rather not have to output to a spooled file or database file to do the > verify. <<< > > Don't understand why you would need an API. Maybe I'm missing > something. In the RDBMS world of DB2, I would say...Why don't you > simply use the "EXISTS" function in the WHERE clause of an SQL SELECT > against whatever table you wish? You don't have to have any output to > a spooled file or database file, only "trap" the results in your program > and proceed accordingly. > > Take care, > > Dave Odom > > -- > 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 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.