AS400 job error: Program {PGM} not found in library *LIBL.

book

Article ID: 211056

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The AS400 job is failing when it tries to end a program using STRSRVXI5 as shown below.

PKSBMJOB JOBNAME(IF26X0RPJ) PARMBR(STRSRVXI5) DELFLAG(N) WHSE(HAW) USER(PKMS)

 

Error message:

Program PKG0G1CL not found in library *LIBL. 

 

 

However, the AS400 job that is stopping the program as shown below works fine.

PKSBMJOB JOBNAME(IF26X0RPJ) PARMBR(ENDSRVXI5) DELFLAG(N) WHSE(HAW) USER(PKMS)

 

Cause

Some libraries or environment variables are missing.

Environment

Release : 12.x

Component :

Resolution

Make sure to have all the necessary setting and environment variables set up.

For example:

ADDLIBLE PKTOOL
SE HAW
PKSBMJOB JOBNAME(IF26X0RPJ) PARMBR(STRSRVXI5) DELFLAG(N) WHSE(HAW) USER(PKMS)