Use this tag for questions about DB2 for z/OS, the IBM mainframe operating system. Please also tag such questions with the more generic [db2] tag. There are enough differences between DB2 for z/OS and DB2 for other platforms to warrant a separate tag.
Questions tagged [db2-zos]
175 questions
0
votes
0 answers
Error when trying to update the table in IBM DB2 using Merge
I have a SQL statement which I am trying to execute from a console application on IBM DB2 database.
MERGE INTO Table 1 AS A
USING Table 2 AS B
ON A.IDTEXT = B.IDTEXT AND A.STATE = 1
WHEN MATCHED THEN
UPDATE SET A.STATE = 5
However, I am getting…

Prasad R
- 1
- 3
0
votes
1 answer
Using constants with DB2 UNLOAD utility on DB2 for z
I am working on a data upgrade issue.
A new column has been added to our Existing DB2 table.
In order to upgrade Client's DB2 table, I am unloading the data from the existing DB2 table with a constant value for the new column(lets say D of type…

Manish
- 649
- 2
- 7
- 10
0
votes
0 answers
Replace-function via EclipseLink on DB2 z/OS
I am migrating an application from JPA 2.0 with OpenJPA on WebSphere 8.5 to JPA 2.1 with EclipseLink on WebSphere 9.0, using DB2 12 on z/OS. Generally it is working, but one rather complex query is failing. I could localize the problem to the usage…

Christian
- 558
- 2
- 13
0
votes
1 answer
Conditional query on Spring Data JPA gives a -417 error on DB2 (z/OS)
I currently have the following method signature in a Spring Data CrudRepository:
@Query("SELECT c FROM Table c WHERE (:paramOne is null or c.fieldOne = :paramOne) AND (:paramTwo is null or c.fieldTwo = :paramTwo)")
Iterable…