Using the OUTEXIT to Prevent a User from Detaching and Purging Another User's Job
search cancel

Using the OUTEXIT to Prevent a User from Detaching and Purging Another User's Job

book

Article ID: 64249

calendar_today

Updated On:

Products

Roscoe

Issue/Introduction

How to compare the ROSCOE User-id with Submitter in the OUTEXIT, so that only the person who submitted a job can DETACH and purge it?

 

Environment

Release:
Component: ROSCOE

Resolution

The OUTEXIT is a user written exit. There is a sample OUTEXIT in RO60OPT. Program the exit to compare the SCB ACCNUM* field (for 8 bytes) with the JCT** JCTPNAME field (the programmer's name from the job card). If the fields are equal, let the user detach the job. If the fields are not equal, force NOACT on the detach.

For more information see section 8.19 OUTEXIT: Job Output Exit in Chapter 6. Exit Facilities of the CA-Roscoe Extended Facilities for System Programmers Guide.

* The SCB data area ACCNUM can be used to obtain the terminal user's sign-on key. On entry to an exit routine, the address of the SCB is in UXSCBADR of UXDSECT.

** The UXOUTJCT data area is available to the exit routine on a Check job call and contains the address of the JCT.