Page 1 of 1

Customize srchfor to get invoked in desired mode

PostPosted: Sun May 01, 2016 11:31 pm
by shivanshu26shiv
Hi All,

Usually whenever we do srchfor, it will search for all the lisitings (pds members/ds-list in 3.4) provided,
which spikes cpu if the count is in 10,000s (or even more). Hence I was thinking to customize srchfor such that a srchfor-job is
submitted in case user does srchfor and number of lines to be searched are > 5000 (or any desired count).

Any suggestions, on how we can customize srchfor to get invoked in batch mode rather in foreground, if line count exceed 5k.?

As an alternative, a rexx can be created to achieve the purpose stated, but it will not show results as srchfor does in a user friendly way, rather it would write in SRCHDSL.LIST,
that's why I went for customization.

Regards,

Re: Customize srchfor to get invoked in desired mode

PostPosted: Mon May 02, 2016 12:45 am
by Akatsukami
You understand that customizing SRCHFOR means customizing it for everyone, that you are unlikely to be able to do this unless you are a sysprog, and trying and failing (or worse, succeeding) without authorization is likely to lead to a unpleasant interaction with site security?

Re: Customize srchfor to get invoked in desired mode

PostPosted: Mon May 02, 2016 1:34 am
by shivanshu26shiv
Ohk, got it...
Then I will go for the user friendly rexx alternative for srchfor, since that can lead me to solution of the problem stated...thanks for reply.

Re: Customize srchfor to get invoked in desired mode

PostPosted: Mon May 02, 2016 2:58 am
by enrico-sorichetti
good luck :mrgreen:

Re: Customize srchfor to get invoked in desired mode

PostPosted: Mon May 02, 2016 9:31 pm
by Pedro
which spikes cpu if the count is in 10,000s (or even more).

I am not sure what you mean... searching through many objects will still spike the CPU. I do not see that being lessened because it is running in batch. That is, it should do the same amount of work regardless of online or in batch. Perhaps you mean that you can shift the burden to off-shift hours, where it is of less concern.

Re: Customize srchfor to get invoked in desired mode

PostPosted: Mon May 02, 2016 9:42 pm
by shivanshu26shiv
Hi Pedro, it seems as per our installation...params like CLASS etc for foreground mode are superior to that in the batch mode, thats why,