Re: Which H-specs CTL-OPT do you use?

Jim Oberholtzer <midrangel-zbO79nAUJZvJTQUaaPvyeQC/[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <[email protected]>
Reroute and transfer jobs are both really expensive commands, akin to starting a new job.   

Both will cause the subsystem to call routing  program, rebuild the PAG etc.   

I do use them occasionally but in specific circumstances mainly for work management.   Needing to do either in a job stream implies less than optimal applications and poor technique.  

This reminds me of part of the job description of the system administrator:  “ A developers job is to protect the system from the user.  The system administrator’s job is to protect the system from the developers.  “

Restricting the use of those two commands falls into the second half of that description.  


Jim Oberholtzer
Agile Technology Architects

> On Aug 14, 2025, at 9:01 AM, Brian Johnson <[email protected]> wrote:
> 
> Sometimes you just need to start over with a clean slate!
> For a really clean slate, here is a REXX script to reroute and clear the
> job log:
> 
> ARG post
> 
> IF post <> '' THEN DO
>   "RMVMSG PGMQ(*ALLINACT) CLEAR(*ALL)"
>   "RMVMSG PGMQ(*EXT) CLEAR(*ALL)"
>    EXIT 0
> END
> 
> PARSE SOURCE osname invokemethod srcmbr srcfile srclib
> 
> "SNDPGMMSG TOPGMQ(*EXT)" ,
>          "MSGTYPE(*RQS)" ,
>          "MSG('STRREXPRC" srcmbr "SRCFILE("srclib"/"srcfile") PARM(post)')"
> 
> "RRTJOB"
> 
> 
>> On Thu, Aug 14, 2025 at 4:40 AM Patrik Schindler <[email protected]> wrote:
>> 
>> Hello Daniel,
>> 
>> Am 10.08.2025 um 22:10 schrieb Patrik Schindler <[email protected]>:
>> 
>>>> And by all means, avoid the default activation group and QILE - both
>> are hard to handle and only "recoverable" by signing off / ending the job.
>>> 
>>> Anyway, rclrsc AFAIR does much of the cleansing a sign-off does. I have
>> been told about another command doing likewise, but I forgot about it.
>> 
>> Incidentally, I've been remembered about that command: rrtjob. This will
>> start a new "job step", closing out the previous one. It will end all OPM
>> and ILE activation groups, restoring the job to the way it was when you
>> first signed on.
>> 
>> :wq! PoC
>> 
>> --
>> This is the RPG programming on IBM i (RPG400-L) mailing list
>> To post a message email: [email protected]
>> To subscribe, unsubscribe, or change list options,
>> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
>> or email: [email protected]
>> Before posting, please take a moment to review the archives
>> at https://archive.midrange.com/rpg400-l.
>> 
>> Please contact [email protected] for any subscription related
>> questions.
>> 
>> 
> 
> --
> Brian Johnson
> [email protected]
> --
> This is the RPG programming on IBM i (RPG400-L) mailing list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/rpg400-l.
> 
> Please contact [email protected] for any subscription related questions.
> 
-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact [email protected] for any subscription related questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.