Hi Paul,
I'm not at a computer to verify my answer but from recollection:
I think RCVMSG will allow you to receive the message data of the error message. 
Hope this helps. 
Glenn Gundermann
 
-----Original Message-----
From: "Steinmetz, Paul" <PSteinmetz@xxxxxxxxxx>
Sender: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>Date: Fri, 5 Dec 2014 19:45:28 
To: 'Midrange Systems Technical Discussion'<midrange-l@xxxxxxxxxxxx>
Reply-To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Retrieve the library name from CPF2113
I've created a WRKWCH to monitor for CPF2113.
The watch CLP program will then call TAATOOL CVTLIBLCK2 LIB(TPAULT1) OUTLIB(PAULS).
The result will be a PF loaded with all library locks, which will be used for additional processing.
In the CL I need to retrieve the library name, TPAULT1,  from  the CPF2113.
What command do I use to do this?
Message ID . . . . . . :   CPF2113       Severity . . . . . . . :   40
Message type . . . . . :   Information
Date sent  . . . . . . :   12/05/14      Time sent  . . . . . . :   14:36:39
Message . . . . :   Cannot allocate library TPAULT1.
Thank You
_____
Paul Steinmetz
IBM i Systems Administrator
Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071
610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home
psteinmetz@xxxxxxxxxx<mailto:psteinmetz@xxxxxxxxxx>
http://www.pencor.com/
As an Amazon Associate we earn from qualifying purchases.