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

Brian Johnson <[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <CAAouQW2BYrisGMBdLH0OGZznR+jYk=eo-5ypF+WoE9k9m_UoVQ@mail.gmail.com>
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.
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.