|
Here's a slightly different approach if none of the other suggestions meet your need. This method can be used to automate the capture of stuff from another jobs QTEMP - you need to be able to change the jobq and routing data that the submission uses: 1. Create a subsystem and a jobq - you could use an existing one. By modifying the SBMJOB parms, force the job to this job queue with RTGDTA(*RQSDTA). 2. Add a routing entry to the subsystem for a compare value of *ANY. Enter a program name/library on the pgm parm. 3. Create a CL program with the name given above. In this CL retrieve joblog messages looking for CPI1125. (There's an API for this). Scan the message data of this message for RTGDTA(. The data following this will be the command submitted (CALL MYPGM etc). Run this using QCMDEXC. You can now do whatever you need to do with the objects in QTEMP. I have a shell that does most of this. Tim +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.