You can kludge it. The errlog is used by a motley collection of snarky routines. Most of them are not going to be useful for what you want, and only God and his Dog know why this collection was selected while other routines were ignored.
But you want something like "tell me something is wrong and its name" Let's say your BASIC routine discovers an invalid print queue called Blonds Have More Fun You could make that routine attempt to execute a VOC entry called INVALID.PRINT.QUEUE.BLONDS.HAVE.MORE.FUN EXECUTE "INVALID.PRINT.QUEUE.BLONDS.HAVE.MORE.FUN" You can even HUSH it if you don't want the users to come screaming down the hall in alarm. Doing this EXECUTE will generate an entry in the ERRLOG Verb "INVALID.PRINT.QUEUE.BLONDS.HAVE.MORE.FUN" is not in your VOC Which at least tells you exactly what the issue is, although the error is kludged together. -----Original Message----- From: Don Robinson <donr_w...@yahoo.com> To: U2 listserver <u2-users@listserver.u2ug.org> Sent: Fri, Nov 2, 2012 8:28 am Subject: [U2] How to create an entry in the Universe errlog file? Hello guys, Today's challenge... I routinely check the Universe errlog file for problem programs. I would like to write my own errors to the errlog but can't find any way to to so. An example would be if an invalid or blank print Q is used in SETPTR. SETPTR doesn't check for a valid print queue but I can by reading the &DEVICE& file and displaying a message to the user. The problem is this can occurs in processes that log to COMO or PH and looking through a bunch of these is a pain. If I could write directly to the errlog file it would be much easier. Universe on AIX. Don Robinson _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users