View previous topic :: View next topic
|
Author |
Message |
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
I would like 2 find a string in JESMSGLOG of every job in SPOOL. If u have a REXX EXEC, please post it. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Vijay,
Quote: |
I would like 2 find a string in JESMSGLOG of every job in SPOOL. . |
Check the link posted and also search for the keyword SDSF in the REXX forum.
Quote: |
If u have a REXX EXEC, please post it |
Even if we post it, You will have to customize for which better understanding of REXX+SDSF is needed. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
wt is FEE ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Quote: |
wt is FEE
like 2 find
If u have |
Please do not use chat slang. Not everyone is an English speaker. Also, this is a technical forum, where you need to ask precise questions in order to get good responses. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
I would like 2 find a string in JESMSGLOG of every job in SPOOL. . |
what is the system/business requirement of the search
spool is a volatile thing
the process behavior might be different due to the presence or absence of a job in the spool
a job can be deleted/purged at any time asyncronously from any other process
taking a deterministic action on a volatile entity is not wise by any means
at time delta0 you run the proces and take some actions
at time delta1 you run the same proces and take some different actions
just because somebody deleted a job or the job was printed and punched ???
brrrrrrrr
better to clarify Your need
and please do not tell You are trying to write a home grown scheduler |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Hey Enrico. Maybe we should develop a REXX scheduler and market it on the forum |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Hi All,
The exact objective is 'Find a string in jesmsglg & return a line which contains that string'
That's all. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Now I am intrigued - as to what purpose this actually serves. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
This is a requirement. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
the most &DEROGATORY_ADJECTIVE reply you could have given,
You just show lack of respect for people trying to help You,
if you want help you must make people eager to help
that answer lowered our willingness/eagerness to 0 |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Can anyone tell me how to delete a post from this site ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Look, we are here to try and help you. And to do that we need to understand
a) What you want to do
b) In some cases the reason why you want to do it - because we could probably give you some alternative / better ideas.
The reason that we ask is that on average each 3 seniors on this site will have about 100 years of experience between them, and there are a lot of very experienced and knowledgable seniors here !! And thankfully quite a few young ones showing real promise as well.
So the choice is yours, if you want to get help then answer what we want to know and if you do not appear to get what you want immediately or do not want to answer the questions that we pose then just discontinue your participation in this thread rather than throwing your teddy out of the pram. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
In a day, there are so many jobs run. There are some jobs which require more space for the datasets they use. Inorder to identify those, I need a REXX EXEC instead of doing it manually as go thru each job using '?' & then 's' which is a time consuming long process. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
In a day, there are so many jobs run. There are some jobs which require more space for the datasets they use. Inorder to identify those, I need a REXX EXEC instead of doing it manually as go thru each job using '?' & then 's' which is a time consuming long process. |
Questions:
1) Don't you have MXG or some other performance tool that can supply this data via a batch job?
2) How do you identify the jobs needing more space -- x37 abends? If so, and you don't have a performance tool, you could hit the SMF records and pull that data out automatically rather than manually.
3) Shouldn't your storage management people be adjusting the storage pools to allow for the extra space?
4) Don't you have some kind of spool management package that moves production job output to a retention facility? If so, your REXX isn't going to find nearly all of the outputs.
5) What other approaches have you considered? Running a REXX like this seems a tad wasteful. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
I do not know who gave You the idea that in the jesmsglg You would find the allocation details
anyway the only way to find out is to setup a properly defined/planned
storage accounting application.
run daily a dcollect job to scan all/selected dasd volumes to get the info required
and run a properly written program/application to find out the growth rate
the approach suggested will not work
familiarize Yourself with the ISMF reporting , ISMF option 1
to see what You can get for point in time reporting
after that plan with the storage support an application for the growth rate |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
So what are we looking for here, ways to prevent Sx37 abends.
DCOLLECT data can be extremely useful for trending dataset growth along with SMF records as suggested by Robert.
Both SMF & DCOLLECT will also provide great info for VSAM files too.
I would suggest starting with DCOLLECT - all documentation in the IDCAMS book, as these are far easier to use |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
and if You are eager to test Your rexx skills
CBTTAPE which hosts lots of free/public domain software for the MVS/zOS world
has a very good starting point on how to process dcollect data
at file 206 at Use [URL] BBCode for External Links
the coding is not my preferred ( I prefer mixed case ) but still is a very good start
I know, I know I have often flamed on attachments
but I do not see any other way right now
here is the cbt206 file unxmitted on my pc ( with a rexx script ) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello Vijay,
I suspect the goal is to identify jobs that require a large amount of spool space rather than dataset space (i.e. not looking for x37's but lines of print).
Is this true or have i misunderstood? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Hi Dick,
anyhow the info would not be in the JESMSGLG dataset,
I just checked the JES2 initialization reference
and I saw that the JESMSGLG could even be suppressed on a jobclass class basis
still after 20 posts the real need is not clear,
the only definite assertion made by the TS was ...
Quote: |
This is a requirement. |
and I bashed him for that
I supposed a general dataset monitoring issue by the
Quote: |
There are some jobs which require more space for the datasets they use. Inorder to identify....... |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Enrico,
Quote: |
This is a requirement. |
One of the more mis-used phrases - imho. I suppose that is the way to end defense/discussion.
Another one that i've heard entirely too often to get one's way is "It will delay the project".
Quote: |
anyhow the info would not be in the JESMSGLG dataset |
No, i was just guessing that the spool volume was part of the issue. Early on Vijay mentioned wanting to find a particular string in a line and i don't recall that info being posted yet. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
.... that is the way to end defense/discussion. ... |
and start the war |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Can you tell me whether a macro written in VB can interact with SDSF & achieve the requirement ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
if we knew You requirement we could, but ..,
until now You have given us nothing to work on
what in &HEAVEN do You expect to find in the JESMSGLG ???
|
|
Back to top |
|
|
|