Ending a job through CLP

280 pts.
Tags:
AS/400
AS/400 jobs
CLP
I am trying to end a job using ENDJOB command from a CL program submitted to batch, but this does not end the intended program and emits an error some kind meaning "Not allowed". I made user that the profile has enough preveliges. Any idea how to end a job through batch?

Software/Hardware used:
AS400

Answer Wiki

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

Try putting rtvjoba &number &user &job in the job you want to end and write the results to a dtaara. Then have your endjob CLP retrieve the job attributes and issue the endjob with parrms changed to the retrieved values.

***********
In your saying that the profile has enough privileges, please provide more detail, with exactly what authorities the profile has.

It sounds like the profile that the submitted job is running under is different from the job that it’s trying to cancel, and the submitted job’s profile doesn’t have *JOBCTL authority

CWC
****************

Discuss This Question: 1  Reply

 
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
    There are three general reasons for the words 'not allowed' to show up in a message out of ENDJOB -- CPF1341, CPF1342 and CPF135D. The first two seem unlikely, but it's hard to tell because the situation isn't described in sufficient detail. CPF135D would seem to be the likely message. And if that's true, did you read the extended text of the message? (Do you know that extended help is available?) If so, did you follow the 'Recovery' instructions? If that's not the correct message ID, what was it? Tom
    125,585 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