Vaid, I haven't seen this post on TSO-REXX yet, just so you know.

---
Bob Bridges, [email protected], cell 336 382-7313

/* Hmmm, I found a strange piece of plastic on the floor that looks like it 
broke off of something, but I have no idea what.  Better save it in the junk 
drawer until I die. */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Vaid Laturkar
Sent: Thursday, April 7, 2022 00:01

cross post to IBM-MAIN, TSO REXX.

We have a long running REXX exec working at different customer sites.
This uses OUTTRAP to trap output of RACF command 'SEARCH CLASS(USER)' and then 
iterates through the list for further processing.

Recently at one customer site, this command execution through REXX exec is 
giving RC -1645 (and incomplete user list) when executed using one user id but 
works when executed using other ID. (gets all users)

READY
%MYEXECV
46 *-* cmd ---> The cmd variable has 'SEARCH CLASS(USER)' command
+++ RC(-1645) +++

We tried to add "PROFILE VARSTORAGE(HIGH)" before OUTTRAP and increased the 
REGION parameter on job too. But somehow it's now working. Earlier we had a 
similar issue and specifying this profile setting has worked.
There are around 145K+ users and user in error is only able to trap around 89K 
users only. RACF permission wise this id is set up properly. so that's no issue.

The code snippet goes as below:
000041 issue_scmd:
000042 /*---------------------------*/
000043 address TSO
000044 "PROFILE VARSTORAGE(HIGH)"
000045 x = OUTTRAP(rec.,,'NOCONCAT')
000046 cmd = 'SEARCH CLASS(USER)'
000047 cmd

Any pointers on how this can be further investigated. Thanks in advance.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to