use data queues to copy spool files from an outq

Need to be able to use data queues to detect spool files as they are added to an outq (unattended) and copy the spool file from the outq to a database file. How do I send the needed information to the data queue so that a CL program can read the data queue (QRCVDTAQ) and copy the spool file?
Who is Participating?
bermanConnect With a Mentor CTOCommented:
Create a *DTAQ and Change the *OUTQ  like this

CHGOUTQ  OUTQ(outqlib/outqname)  DTAQ(datqlib/dtaqname)

any spool that will release in this *OUTQ  will add an entry to the *DTAQ
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.