Skip to Main Content
IBM Power Ideas Portal

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Post your ideas

Start by posting ideas and requests to this portal to enhance a Power product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas and add comments to ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea

Help IBM prioritize your ideas and requests

The IBM team may need your help to refine the ideas so they may ask for more information or feedback. The Power teams will then decide if they can begin working on your idea. If they can start during the next development cycle, they will put the idea on the priority list. Each team at IBM works on a different schedule, where some ideas can be implemented right away, others may be placed on a different schedule.

Receive notification on the decision

Some ideas can be implemented at IBM, while others may not fit within the development plans for the product. In either case, the team will let you know as soon as possible. In some cases, we may be able to find alternatives for ideas which cannot be implemented in a reasonable time.


Specific link you will want to bookmark for future use

IBM Unified Ideas Portal - https://ideas.ibm.com/ - Use this site to create or search for existing Ideas across all IBM products that are outside of Power, and track all of your personal interactions with all Ideas.

Status Future consideration
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Feb 18, 2022

Support USER as Default for VARCHAR(10) Columns in Db2 SQL Tables

Currently if I have a table with a varchar(10) field in it, I cannot specify DEFAULT USER or any of the other user registers because they are 18 bytes or longer.
However on IBM i, user Profiles are 10.
It would save me having to write a Trigger for every file I create to do the assignment anyway and have the CREATE TABLE statement support DEFAULT USER for VARCHAR(10) column definitions.


Use Case:

CREATE or REPLACE TABLE pos_PAYMENTS for SYSTEM NAME POSPMT
(
HID INT NOT NULL DEFAULT 0,
crtuser varchar(10) default NULL,
crtdate timeStamp not null default current_timeStamp,
METHOD varchar(16), -- type of payment method (2-character payment method)
AMTPAID Dec(7,2), -- Amount Paid.
CTRLNBR varchar(32) -- Check nbr, Gift Card nbr, credit card nbr etc.
);
CREATE or REPLACE TRIGGER POST_PMT01
BEFORE INSERT ON aiddata.pos_PAYMENTS
REFERENCING NEW AS NEWINFO OLD AS OLDINFO
FOR EACH ROW
SET NEWINFO.CRTUSER = COALESCE(NEWINFO.CRTUSER,USER);

Note the CRTUSER column is VARCHAR(10) DEFAULT NULL. I would like to write VARCHAR(10) DEFAULT USER and have it just work.


Idea priority Medium
  • Guest
    Mar 8, 2022

    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it.