Questions tagged [db2-zos]
Use this tag for questions related to DB2 for the IBM z/OS mainframe platform. Also add the generic "db2" tag.
15
questions
0
votes
1
answer
103
views
Reorg SYSIBM tables to reduce extents (XT) - change priqty & secQTY
I have a new DB2 V12 database on z/OS 2.4 z13, with hundreds of programs to rebind, such as: sysibm.syspackage, sys.columns, sys.tables, etc. These will grow, hence the need to reorganize the ...
0
votes
1
answer
922
views
How to identify row change timestamp columns in Db2 Table
I need to copy some Db2 tables programmatically (java 11 using the standard Db2 jdbc driver). The tables in question lie on a Db2 for z/OS database (v12) and on a Db2 LUW database (v11.1). The target ...
0
votes
0
answers
60
views
DB2 - Is there a way to get the list of tables a particular transaction has affected?
We have a scenario where we would like to see if we could get hold of a list of tables affected by a given transaction. We use attunity to listen on the transaction log, but what I get from attunity ...
1
vote
1
answer
108
views
db2 cross platform function/variable?
Is there a db2 function/procedure/variable that can be used to determine what platform a data source origins from? sysibm.sysdummy1 exists, so I assume that this is Db2, but some of the SQL does not ...
0
votes
2
answers
77
views
DB2 multiple rows with the same value
This is my first time posting in stackexchange, and I hope I did my due diligence for this question. I'm working on a problem that I just can't seem to wrap my head around. Consider this scenario of a ...
0
votes
1
answer
95
views
DB2 Workfile scan
We just migrate from LUW to zos and we're finding that in z/os the accesspath explains show new node named WFSCAN (Workfile scan) and this rises when there is a join, group by or any kind of sort.
...
1
vote
1
answer
2k
views
DB2: Why does translate function also replace spaces?
I would like to remove control characters (HEX \x00 until \x7F) from a DB2 data base field. For this I tried to apply the following translate-function:
TRANSLATE(field, 'X', x'...
0
votes
1
answer
197
views
DDL for PostgreSQL for DB2 tables (migration)
How would I create the DDL for PostgreSQL for the following DB2 tables?
It should be a one-to-one migration, so I would like to change only as little as possible at the schema (I have difficulties ...
0
votes
1
answer
27
views
Using OLAP-specs to compute selective running totals
Let's say I have a table with columns id, subid, state, value, where (id, subid) is a unique tuple, state may be 0 or some value <> 0, and value is just some number. I want to build a query that ...
1
vote
1
answer
115
views
Possible to have duplicate fully qualified schema names with separate data in DB2 for z/OS?
We have several application teams that are looking to do a re-write of large legacy applications.
This is mostly COBOL going against DB2 for z/OS (v11).
The COBOL code was generated using a tool, so ...
1
vote
1
answer
1k
views
Named Parameter Markers in DB2 for z/OS
I have a query where I will be using the same value twice for one of the parameters. This query will be run under IBM Data Studio to see the results. Below is a sample query:
SELECT *
FROM SYSADM....
2
votes
1
answer
498
views
DB2 zOS increasing DSSIZE vs adding partition?
I'm trying to load data into a DB2 table. The tablespace has 3 partitions with about 60M,60M,70M rows. The 3rd partition is failing to load. It gives me a warning that loading this partition's dataset ...
5
votes
2
answers
1k
views
DB2 developers can't create table in own schema but SQL and Oracle devs can. Justified?
As a developer new to DB2, I was surprised when I discovered that I could not create my own tables in the development database environment. So, I posed a question to the db2 DBA. I don’t want to be ...
1
vote
1
answer
61
views
How can I create DB2 objects with Linux SUDOer authority?
All,
I am relatively new to Red hat linux and I have SUDOer authority but unable to create DB2 database or other objects. How can I accomplish this task? Please give examples.
Also, is there any ...
4
votes
3
answers
1k
views
Can I optimize for the zIIP processor?
Is it possible to change SQL in a z/OS mainframe COBOL application so that it becomes eligible to be directed to the IBM System z Integrated Information Processor (zIIP)?