How to get a list of all users with profile records in CA 7 r12 Datacom Database

Document ID : KB000074933
Last Modified Date : 28/03/2018
Show Technical Document Details
Question:
How can I get a list of users that have a profile record defined to CA 7 r12 Datacom database?
Answer:
Use the following sample SQL JCL to extract the user profiles from the CA 7 r12 database:
 
jobcard... 
//STEP1 EXEC PGM=DBSQLPR 
//STEPLIB DD DISP=SHR,DSN=your.CUSLIB 
// DD DISP=SHR,DSN=your.CAAXLOAD 
//SYSPRINT DD SYSOUT=* 
//STDOUT DD SYSOUT=* 
//OPTIONS DD * 
PRTWIDTH=255 
INPUTWIDTH=70 
ROWLIMIT=5000 
AUTHID=MFWA 
NOTYPE 
//SYSIN DD * 
SELECT USERID FROM CA7_USER_PROFILE 
WHERE DB = 'logical database name' ; >>>change to your logical db