SUBMISSION SYNON COMMAND FROM JAVA
search cancel

SUBMISSION SYNON COMMAND FROM JAVA

book

Article ID: 198864

calendar_today

Updated On: 10-17-2023

Products

CA 2E

Issue/Introduction

When submiting a SYNON command from JAVA, appears the following message:

Cause:  The operation you attempted to perform requires at least '*PGMR' authority.  The maximum authority to model 'TLMITDMDL' enjoyed by the current user is '*USER'.

Recovery:  If the user has the necessary authority then reenter the model with that user class, otherwise, obtain the necessary authority from the model administrator and try again.


When submiting a SYNON command from 5250 command line, it works well.
It seems that SYNON manages the rights differently than IBM isystem.
Is that correct?

Environment

Release : 8.7

Component : CA 2E

Resolution

After analyzing the related programs of YCRTJOBLE command and found that unlike IBM i, 2E considers the USER of the JOB while checking authorities.

This design was almost the same across all commands of 2E. YCRTJOBLE related program retrieving the JOB's USER by RTVJOBA USER(&USER) command and checking the authorities on JOB's USER.

So in this case, for QZRCSRVS JOB the USER is QUESR. The Program is checking *PGMR authorities for accessing model library object w.r.t to QUSER.

As QUSER does not have *PGMR authority it is throwing the mentioned error.
2E mainly targetted on executing all these commands from the 5250 command line rather than from JDBC JAVA JOBS.
So it is considering the JOB's USER and completely ignoring the CURRENT USER OF JOB.