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 Languages - RPG
Created by Guest
Created on Feb 1, 2024

Simple RPG BIF to submit a process in batch.

We have to build the complete sbmjob command string to run a process in batch from RPG.


My suggestion (original idea from Golang goroutines) is to use a simple BIF that will accept a process name and parameters as input, submit the process in batch, and return the batch job details as an array.


By default, the job will be submitted in QBATCH. Optionally there can be a system value or parameter to override this. All other required values should be inherited from the parent job.


For example (there might be a better way to structure this)

jobdetails = %sbmjob("PGM1":"LIB1":PARAM1:PARAM2)


jobdetails[1] will contain the error message. Blank means no error.

jobdetails[2] will contain the job name

jobdetails[3] will contain the job user name

jobdetails[4] will contain the job number





Idea priority Medium
  • Guest
    Reply
    |
    Feb 9, 2024
    IBM does not intend to provide a solution to this Idea at this time, so it is being closed.

    The ILE CL language is better suited to a task such as submitting a job. A program can contain both RPGLE and CLLE modules.

    - IBM Power Systems Development
  • Guest
    Reply
    |
    Feb 7, 2024

    There are so many CL commands that would be appreciated to have in RPG. The best way would be to add CL COMMAND functionality to RPG, similar to EXEC SQL (EXEC CL?).

    EXEC CL

    SBMJOB (CALL mylib/mypgm PARM((:PARM1) (:PARM2)))

    or

    SBMJOB (CALL mylib/mypgm PARM((&PARM1) (&PARM2)))