Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


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:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace IBM i
Categories Core OS
Created by Guest
Created on Nov 18, 2019

Make it easier to script changes to the library list of a job description

I had the need to add a library to many job descriptions, too many to want to do manually with CHGJOBD. Using new IBMi services to show job description libraries followed by a CHGJOBD might work, but it's quite clunky.


Use Case:

Need to add a library many job descriptions.

I feel a modification to the ADDLIBLE & RMVLIBLE commands to support a Job Description Name & Library would be a great option to support this RFE. They could be "promptable" options that would only show if F10 were pressed to show additional parameters.


Idea priority Low
  • Guest
    Reply
    |
    Sep 7, 2022
    Thanks for submitting this Idea and also thank you to all who submitted alternative solutions.
    This one has been open a while now, and did not make the cut for 7.5 and is unlikely to make it into 7.6. Therefore I am closing it at this time.
    IBM Power Systems Development
  • Guest
    Reply
    |
    May 2, 2022

    I've had to do this from time to time... The RTVJOBD SQL Table function (in SQL Tools) returns the current value for LIBL and other attributes. It can then be used to automate updating the jobd using the CHGJOBD command. I recently added SQLTOOLS to all the JOBD's in QGPL that don't begin with the letter 'Q'. This example does extract the QUSRLIBL sysval if the JOBD's LIBL is set to *SYSVAL, however if you don't want that feature, simply comment out the 3 lines of code that checks for that and retrieves it. I did use SQL iQuery script to do this, but an RPG program with the same SQL stmts would also work just as well. Here's the code I ran:

    forEach select objname,objlib

    INTO :OBJNAME, :OBJLIB

    from table(qsys2.object_statistics('QGPL','*JOBD','*ALLSIMPLE')) OL

    WHERE left(OBJNAME,1) <> 'Q';

    select LIBL INTO :LIBL

    FROM TABLE(sqlTools.rtvjobd( '&OBJLIB', '&OBJNAME')) JD;

    if (&SQLState < '02000');

    if (&LIBL = '*SYSVAL');

    select SYSVAL INTO :LIBL FROM TABLE(sqltools.SYSVAL_LIST('QUSRLIBL'));

    endif;

    &LIBL |= 'NEWLIB';

    CL: CHGJOBD JOBD(&OBJLIB/&OBJNAME) INLLIBL(&LIBL);

    endif;

    endfor;

  • Guest
    Reply
    |
    Oct 27, 2021

    This request is still under consideration.

  • Guest
    Reply
    |
    May 4, 2020

    We are considering this request, but it may come in a different format, such as an SQL service. Feel free to comment if you dislike that idea.

  • Guest
    Reply
    |
    Apr 10, 2020

    It's a little quirky to add CHGJOBD function to ADDLIBLE. It seems like it would be better to add a new option or parm(s) to CHGJOBD to make it easier to update a single library in the INLLIBL. But it's a little clunky trying to retrofit that into the existing structure of the command. I'm not ruling this out, as I think you have a good use case. I just don't want to make our existing commands more confusing either...so moving this to "Under consideration" for now. Maybe there is better solution we haven't thought of yet.

  • Guest
    Reply
    |
    Jan 6, 2020

    j.p.Lamontre - just noticed your feedback - I wasn't looking to "add a lot of ADDLIBLE in many places in many programs, and have to remember to continue this process for each new job or new user", rather do this in a single place/program.

    I realize there are plenty of alternatives, yours being one of them, but this RFE was added as a Low Priority item and one that I feel would be a good OS enhancement. Having multiple options is a good thing and sometimes those options are easier than other clunkier techniques.

  • Guest
    Reply
    |
    Jan 6, 2020

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Core OS
    Operating system - IBM i
    Source - None

    For recording keeping, the previous attributes were:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Other
    Operating system - IBM i
    Source - None

  • Guest
    Reply
    |
    Nov 19, 2019

    so, instead of doing a one-shot list of CHGJOBD, you think to add a lot of ADDLIBLE in many places in many programs, and have to remember to continue this process for each new job or new user.

    not sure it is efficient.

    When I have to do this kind of repetitive change, I generally use RunSqlScript + Excel :
    1) create a DB2 file with the objects to inspect, here, the *JOBD
    2) read this file with RunSqlScript or excel, and filter the data to get the interesting rows, here, the jobd that miss the new library.
    Depending of your preference, you can do this filter with Sql in RUNSQLSRIPT or with Excel with Excel-filters
    3) finally copy the row of interest to excel
    4) use excel functions to transform your rows to generate rows such as CL:CHGJOBD .... ;
    5) paste that in RunSqlScript
    6) Press the run button