IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Find a string in JESMSGLOG of every job in SPOOL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Fri Nov 14, 2008 5:09 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Nov 14, 2008 5:11 pm
Reply with quote

if You want it please provide the proper FEE icon_cool.gif

if You had searched the net You would have found
www.redbooks.ibm.com/abstracts/sg247419.html
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 14, 2008 5:25 pm
Reply with quote

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
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Fri Nov 14, 2008 6:11 pm
Reply with quote

wt is FEE ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Nov 14, 2008 6:13 pm
Reply with quote

see:
en.wikipedia.org/wiki/Fee
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Fri Nov 14, 2008 11:32 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 18, 2008 2:39 pm
Reply with quote

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 icon_eek.gif

better to clarify Your need

and please do not tell You are trying to write a home grown scheduler
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 18, 2008 3:27 pm
Reply with quote

Hey Enrico. Maybe we should develop a REXX scheduler and market it on the forum icon_lol.gif
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Nov 18, 2008 4:29 pm
Reply with quote

Hi All,

The exact objective is 'Find a string in jesmsglg & return a line which contains that string'


That's all.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 18, 2008 4:33 pm
Reply with quote

Now I am intrigued - as to what purpose this actually serves.
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Nov 18, 2008 4:52 pm
Reply with quote

This is a requirement.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 18, 2008 4:55 pm
Reply with quote

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
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Nov 18, 2008 5:01 pm
Reply with quote

Can anyone tell me how to delete a post from this site ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 18, 2008 5:44 pm
Reply with quote

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
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Nov 18, 2008 6:20 pm
Reply with 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.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 18, 2008 6:27 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 18, 2008 6:31 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 18, 2008 6:38 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 18, 2008 6:42 pm
Reply with quote

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 icon_biggrin.gif 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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 19, 2008 12:51 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 19, 2008 1:02 am
Reply with quote

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 icon_biggrin.gif 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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 19, 2008 2:23 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 19, 2008 3:36 am
Reply with quote

Quote:
.... that is the way to end defense/discussion. ...


and start the war icon_cool.gif
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Wed Nov 19, 2008 10:46 am
Reply with quote

Can you tell me whether a macro written in VB can interact with SDSF & achieve the requirement ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 19, 2008 11:12 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top