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
ASKED:
December 16, 2009 8:23 AM
UPDATED:
December 16, 2009 7:17 PM
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