How to check the submit job is completed or not?

505 pts.
Tags:
AS/400
AS/400 commands
CL Program
PGM
Hi, I need to do 1. SBMJOB PGM1 2. SBMJOB PGM2 I need to process the PGM2 only when the PGM1 is completed. I should not use the data area or file. Please help me out. Thanks Dev

Software/Hardware used:
AS400 CLP

Answer Wiki

Thanks. We'll let you know when a new response is added.

This question has been asked here many times.

If you do a search for SBMJOB, you will find all the different answers people have given.

Thanks for asking your question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    I should not use the data area or file.

    Since there is no good reason not to use a data area, that makes it seem to be an academic question. Please give a meaningful business reason for the requirements in your question. We cannot give direct answers to academic questions.

    Tom

    125,585 pointsBadges:
    report
  • MDratwa
    Put pgm1 in a CL program where after pgm1 runs, put a sbmjob for pgm2.  This way when pgm1 finishes, it submits pgm2.  If pgm1 aborts, cancel the CL and pgm2 will not run.
    785 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following