× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello, All,

Take a look at the "Reroute Job" command.

Issuing:
    RRTJOB RTGDTA(QCMDI) RQSDTA(*NONE) 
or 
    RRTJOB    /* the above parameters are the defaults */

in an interactive session (job) ends the current "job step" and starts a new "job step" and thus "resets: your job step to a "virgin" state, just like it was when you first signed on. 

And, it does not alter the values of *CURLIB or the user *LIBL, etc., and is somewhat faster than signing-off and back on again.  

It also does not clear QTEMP, so you need to do that yourself, if needed.   

It does reset any *JOB level environment variables you may have set, so be aware of that.

I find RRTJOB to be very handy when debugging ... 

It shuts down all open activation groups in the job, closes all open files, and cleans out anything that is activated in the *DFTACTGRP ... 

This is also useful if you ever invoke any ILE *PGMs or *SRVPGMs in the default activation group (another of those "deadly sins"), because, as far as I can tell, this is the ONLY way to get those bound *PGMs and *SRVPGMs deactivated and removed from the "DAG", short of SIGNOFF -> SIGNON.

I hope others may find this "tip" useful.

All the best,

Mark S. Waterbury

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.