ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to get Call Command of a completed job

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get Call Command of a completed job

    I am working on an assignment, where I need to check the call commend of the program to identify, if the job belongs to a particular application or not. There is no standard process to name the job according to the application area. Can you please advise any API that will help in getting the Call Command of a completed job.

    Thank you

  • #2
    What do you mean by "the call command of a completed job"? There is no single "call command" in a job... assuming you're referring to IBM command like CALL PGM(my-program) there may be thousands of them in a job, or there may be none. They may be logged to the job log, or they may not. Its hard to know what exactly you are asking for, here... and without knowing that, its hard to say whether it is possible.

    Comment


    • #3
      Yes you are write, I am referring IBM Command like CALL PGM(PROGRAM) PARM('XX'). I want to extract the first command, using which the job was submitted. For example"

      SBMJOB CMD(CALL PGM(PGM1) PARM('TEST')) JOB(JOB01)

      Comment

      Working...
      X