Hi all! I have a query. I searched the forums but could't get a relavent post. I will try to be elaborate. So here goes.
I have a daily task of creating an ENDEVOR change report through a job and then copying it into an excel file and sending it to the MF support group via e-mail. The task was time consuming, so I tried to automate it. Thankfully this forum helped a lot. The automation was successfull. But there is this thing. This report is an account of "WHO made WHAT changes to the procs, jcl, modules, programs etc". So the report creation job requires a list of all the users registered on mainframes in a form of a VSAM file, just for reference. So, initially, I got it done through TSO USERS command. Got the updated list of all the users and pulled it into a VSAM file. But the problem is that, whenever a new user is added, the job abends with MAXCC 16. Reason being, I dont have the updated list of all the new users that were added after I made my file. So what I do is that I open my VSAM user file and manually add the user MF ID and then restart the job in that step. To get rid from this, I tried using IKJEFT01 pgm in my job, so that I can pull the list of users everytime the job runs in a VSAM file and keep it updated automatically. But my job abends with CC16 saying that command 'USERS' not found. I need help on this. How can I get the list of all the updated users each time my job runs?
P.S. I am not a system admin and I don't have authority to create a user ID. Its just a reference userid file that I'm talking about. The job just uses this file as a reference so that it can validate the userid and pull the username against it and write it in the report.