You can use the the DSPUSRPRF command to output the data into an OUTFILE and then run a query on that file for the id number.
<pre>DSPUSRPRF USRPRF(*ALL) TYPE(*BASIC) OUTPUT(*OUTFILE) OUTFILE(QTEMP/USRPRF)</pre>
Do a RUNQRY <pre>RUNQRY QRYFILE((USRPRF)) RCDSLT(*YES) </pre> and add the following to the query <pre>UPUID EQ 248 </pre>
As noted above, a simple query of a DSPUSRPRF outfile can show all of your assigned UIDs and GIDs. In your case, you want to assign a specific UID to a profile, but another profile already has that UID assigned.
If you have authority to the profiles that are involved, you can use CHGUSRPRF UID(nnn) to change the UID() value to some new unique value. Change the offending profile to a different value in order to make 248 available.
Note that in theory you ought to be managing UID/GID numbers. It’s unlikely that you’ll have any problems, but these can be important to UNIX-like applications. It seems a little unusual that an explicit UID value was requested. You ought to be free to choose which value is used in your network and free to keep it private.