USS to OPS REXX causing security error: OPS4346E CURRENT ALLOC COMMAND NOT AUTHORIZED - insufficient authority
search cancel

USS to OPS REXX causing security error: OPS4346E CURRENT ALLOC COMMAND NOT AUTHORIZED - insufficient authority

book

Article ID: 275100

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Getting the following error trying to execute an OPS/REXX program from the USS environment:

OPS4346E CURRENT ALLOC COMMAND NOT AUTHORIZED - insufficient authority         
OPS0996J TSO alloc da(some-data-set(member)) fi(dd-name) shr ALLOC RC:32         

The problem only occurs if the REXX tries to allocate a dataset

Environment

Release : 14.0

Cause

When running an OPS/REXX from batch or from a spawned USS task a security rule is required.

Resolution

The following security rule can be used to authorize the REXX to allocate a dataset:

)SEC OPSOSF*                                  
)PROC                                         
if sec.opauusid = 'userid' then return accept
return

Where userid is the actual userid executing the function