If it was me I would probably code the loop something like this:

/* Object Q123 in library Yourlib not found. */


To stop it just do CRTPF FILE(Yourlib/Q123) RCDLEN(132)

Of course I'm not really a programmer, I just play one on TV...


Scott Ingvaldson
Senior IBM Support Specialist
Fiserv Midwest

-----Original Message-----
From: John Earl [mailto:john.earl@xxxxxxxxxxxxx]
Sent: Friday, September 05, 2008 11:14 PM
To: Midrange Systems Technical Discussion
Subject: Tight loop - stopping the error

Here is an interesting problem.

We're stress testing an application and need to generate and enormously
large number of audit journal entries as quickly as possible. "T" type
entries are what we're after but really any entry type will do. So if
you have an idea how to do that, please chime in.

Here is one idea that I had, but I don't know how to stop it once we
begin. Any ideas on this particular approach would be greatly
appreciated. Here is the plan:

1. Create a User called "Fred"
2. Give "Fred" *EXCLUDE authority to the QSYSOPR message queue.
3. Have "Fred" submit a batch job that does a "SNDMSG 'Hello World'

Because "Fred" has *EXCLUDE authority to QSYSOPR, this command will
generate an 'T' 'AF' audit journal entry in QAUDJRN. Because it is done
in a batch job, the batch job attempt to throw and exception error
message into QSYSOPR, but because "Fred" is still *EXCLUDED from message
queue QSYSOPR, the process will generate another 'T' 'AF', and yet
another error message headed for QSYSOPR, etc. etc. in a very tight
little loop.

This seems like a good way to generate a ton of audit log entries, but
the question is this: How do you stop it before it runs away with your
system? Can anyone think of a way to interrupt this process?




John Earl, VP and Chief Technology Officer

PowerTech: 253-872-7788

Direct: 253-479-1408

Mobile: 206-669-3336


Email is an excellent way to communicate material that is not time
sensitive. If your communication is of a more urgent nature, please


This email message and any attachments are intended only for the use of
the intended recipient named above and may contain information that is
privileged and confidential. If you are not the intended recipient, any
dissemination, distribution, or copying is strictly prohibited. If you
received this email message in error, please immediately notify the
sender by replying to this email message or by telephone and delete the
message from your email system. Thank you.

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].