regards,
Yves
----------------------------------------------------------------
ELECTRO SECURITY
Yves Glodt yves.glodt at electrosecurity.lu
Support Informatique
73, rue de Strasbourg Tél: ++352 406 406-1
L-2561 Luxembourg Fax: ++352 406 407
Web: http://www.electrosecurity.lu
----------------------------------------------------------------
>
> How can I get a list of all the libraries and tables on my as400?
by the way, I use an odbc connection from redhat9, and I connect via isql.
--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre
Spammers loop schijten/Spammers macht Euch vom Acker
Jonas
Yves Glodt <yves....@SPAMTRAPelectrosecurity.lu> wrote in message news:<3f601...@news.vo.lu>...
Get all user libraries...
SELECT DISTINCT dbxlib
FROM qsys/qadbxatr
WHERE dbxown <> 'QSYS'
Get all user libraries, files...
SELECT DISTINCT dbxlib, dbxfil
FROM qsys/qadbxatr
WHERE dbxown <> 'QSYS'
John B.
Yves Glodt <yves....@SPAMTRAPelectrosecurity.lu> wrote in message news:<3f601...@news.vo.lu>...
Hi John, I tried it an this is my result:
SQL> SELECT DISTINCT dbxlib, dbxfil FROM qsys.qadbxatr WHERE dbxown <>
'QSYS'
+-----------+-----------+
| | |
| | |
| | |
<snip empty result>
| | |
| | |
| | |
| | |
| | |
+-----------+-----------+
7598 rows returned
> Get all user libraries, files...
>
> SELECT DISTINCT dbxlib, dbxfil
> FROM qsys/qadbxatr
> WHERE dbxown <> 'QSYS'
SQL> SELECT DISTINCT dbxlib FROM qsys.qadbxatr WHERE dbxown <> 'QSYS'
+-----------+
| DBXLIB |
+-----------+
| |
| |
<snip empty result>
| |
| |
| |
+-----------+
63 rows returned
SQL>
Why do I see nothing in the rows?
I query the db from isql over unixodbc, in rh9 linux using the iseries
odbc driver (V14) from IBM.
regards,
Yves
> John B.
>
>
>
>
>
> Yves Glodt <yves....@SPAMTRAPelectrosecurity.lu> wrote in message news:<3f601...@news.vo.lu>...
>
>>How can I get a list of all the libraries and tables on my as400?
>>
>>regards,
>>Yves
>>
>>
>>
>>----------------------------------------------------------------
>>ELECTRO SECURITY
>>Yves Glodt yves.glodt at electrosecurity.lu
>>Support Informatique
>>73, rue de Strasbourg Tél: ++352 406 406-1
>>L-2561 Luxembourg Fax: ++352 406 407
>>Web: http://www.electrosecurity.lu
>>----------------------------------------------------------------
--