Hello,
I would like to use Java on Windows to access a DB2 zOS subsystem. I have already implemented some queries in a JCL in order to extract information from system-catalog into readable Windows text files and now I would like to use Java. For instance, I have the following query that allows to extract the list of columns of tables and views.
SELECT
TBCREATOR,
TBNAME,
COLNO,
NAME,
CASE
WHEN TYPENAME = ' ' THEN COLTYPE
ELSE TYPENAME
END,
TYPESCHEMA,
COALESCE(KEYSEQ,0),
LENGTH,
SCALE,
NULLS,
REMARKS,
DEFAULTVALUE
FROM SYSIBM.SYSCOLUMNS
ORDER BY TBCREATOR, TBNAME, COLNO;
Do you have an example of Java code that to execute queries from Windows against DB2 zOS and corresponding results?
Thank you in advance.
Using Java to extract information from DB2 zOS
-
- Posts: 22
- Joined: Tue Sep 18, 2007 2:11 pm
- Skillset: application quality - source code analysis
- Referer: I found your site by using google
Re: Using Java to extract information from DB2 zOS
Has anyone already implemented SQL queries in Java code running on Windows against a DB2for zOS?
Thanks in advance.
Regards
Thanks in advance.
Regards
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Doubt about run Java into IMS and scheduling steps
by jcdm » Wed Nov 22, 2023 6:32 pm » in IMS DB/DC - 1
- 3590
-
by sergeyken
View the latest post
Wed Nov 22, 2023 8:24 pm
-
-
- 1
- 1342
-
by jcdm
View the latest post
Mon Oct 24, 2022 6:10 pm
-
- 8
- 5164
-
by enrico-sorichetti
View the latest post
Fri Mar 12, 2021 4:09 pm
-
-
how to extract a portion (e.g. fields 10 - 20) of a record
by ISPFTSOJCL » Fri Feb 26, 2021 5:33 am » in JCL - 2
- 1698
-
by enrico-sorichetti
View the latest post
Fri Feb 26, 2021 2:37 pm
-
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1768
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-