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

ULOG extract into a dataset


IBM Mainframe Forums -> FAQ & Basics
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Sat Aug 04, 2012 8:14 pm
Reply with quote

Hi,

We use to get some job specific information in ULOG. i want to capture whatever information available in ULOG via a job.

Do we have any tool that will extract the information that get displayed in ULOG...
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Sat Aug 04, 2012 9:27 pm
Reply with quote

Hello,

I use this if there is a need,
Code:

/*REXX*/                                                               
 "ALLOC F(OUTFILE) DS('"WELLS.ULOG.DATA"') SHR REUSE"                 
TRACE  "O"                                                             
PARSE SOURCE _SYS _HOW _CMD .                                           
PARSE ARG ARGS                                                         
                                                                       
DEBUG = 1                                                               
                                                                       
ISFRC = ISFCALLS("ON")                                                 
IF ISFRC ¬= 0 THEN DO                                                   
    SAY "ISFCALLS RC" ISFRC                                             
    EXIT                                                               
END                                                                     
                                                                       
CMD = "/D U,TAPE,ONLINE,,255"              /* <-- SAMPLE SDSF COMMAND */
ADDRESS SDSF "ISFEXEC '" || CMD || "' "                                 
IF RC ¬= 0 THEN DO                                                     
    SAY "ISFEXEC  RC" RC                                               
    SAY ISFMSG                                                         
    DO  IM = 1 TO ISFMSG2.0                                             
        SAY ISFMSG2.IM                                                 
    END                                                                 
    EXIT                                                               
END                                                                     
                                                                       
 "EXECIO * DISKW OUTFILE (STEM ISFULOG. FINIS"                         
CALL  ISFCALLS "OFF"                                                   
 "FREE DD(OUTFILE)"                                                     
EXIT                                                                   


IIRC this code was stolen long time back from one of Enrico's post.
Credits to him if it works for you.
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Mon Aug 06, 2012 5:17 pm
Reply with quote

Hi,

Thanks a lot to Enrico for the code..and vasanth also for sharing it again here...

i want this code to run for 15 minutes, so that i get all the log information generated in the ULOG.

How can i do it..? any help?
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: Mon Aug 06, 2012 7:08 pm
Reply with quote

Hello,

Quote:
i want this code to run for 15 minutes,
I suspect probably not. . .

Quote:
so that i get all the log information generated in the ULOG.
What do you consider "all the log information"?
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Thu Aug 09, 2012 2:52 pm
Reply with quote

Hi,

I want to trace the ULOG message across the day. There will be a message displayed in the ULOG and we have take an action immediately once it is displayed. Hence i thought of running REXX ULOG extract for every 15 mins and sort out the message if it is there and send mail to the team to take an action, this will avoid keep monitoring the ULOG for 24 hrs.

But the above code extracting the log the messages which ever displayed during the execution.
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: Thu Aug 09, 2012 7:07 pm
Reply with quote

Hello,

What causes the message(s) to be put into the ulog?

Suggest the process that puts "critical action" info in the ulog might also initiate the e-mail.
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Fri Aug 10, 2012 7:17 am
Reply with quote

Thanks for ur reply dicl scherrer....

that cannt be done now.. i want get it from ULOG.... any idea how to extract it??
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: Fri Aug 10, 2012 7:43 am
Reply with quote

Hello,

No, i don't know how to extract this specifically . . .

In general, you would read the data and select "things" you want. Then act on them (i.e. send the alert e-mail).

For someone to be more help you need to post what you have as "input data" and the "rules" for your process. Then someone may have a suggestion.

Once you have a process working manually, it can be scheduled thru the system scheduler to run when needed.

If someone wants this badly enough and using the ulog data becomes not an option, the process that creates the ulog entries would need to be changed.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 10, 2012 8:31 am
Reply with quote

hmmm,

a ulog is a user log: logs the activity of a user.
so, if the user did something that caused a ulog entry,
he would probably be aware of what he did.

why send him/her an email about something he/she knows he/she did?

since, with the appropriate profile, you can sign off of tso and sign back on and delete the previous ulog,
seems sort of hit-and-miss.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 10, 2012 8:42 am
Reply with quote

sounds like another one of those
summone is looking in my priiivate PDS!!!!
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Aug 10, 2012 12:24 pm
Reply with quote

Hello,
Quote:
Hence i thought of running REXX ULOG extract for every 15 mins and sort out the message if it is there and send mail to the team to take an action, this will avoid keep monitoring the ULOG for 24 hrs.


Are you sure its ULOG? The above quote sounds as if you need to extract SYSLOG, I hope it is not the case.

I dont have much idea about JES and console but I think ULOG records details of the commands and messages which are generated as a result of a user command as mentioned by DBZ
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Fri Aug 10, 2012 5:15 pm
Reply with quote

Hi,

i am going to fillter the ulog with "vary cn" (/v,cn(*),rout) commands. i want the job to capture all the msgs displayed 00:00 hrs to 23:59 hrs.... for this we cannt open ulog session and capture manually.

Any help running the REXX code from a particular period of time ???
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 10, 2012 5:20 pm
Reply with quote

the question is not clear....
which ULOG do You want to process ???
the only ULOG available to <browse/look at> is the one related to the user invoking the ULOG command.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 10, 2012 5:25 pm
Reply with quote

some more concerns ...
Quote:
There will be a message displayed in the ULOG and we have take an action immediately once it is displayed.


why reinvent the wheel use You automation package to intercept the console messages and act on them

the topic belongs to the category
Quote:
Topics Not Eligible to Discuss in our Forum

because of the item
Quote:
How to design your own scheduling system. The forum moderators recommend not attempting this.


even if not specifically cited an automation package falls into the same category icon_cool.gif

topic will be moved and locked very shortly!
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Fri Aug 10, 2012 6:12 pm
Reply with quote

Hi,

We give ULOG in EJES panel and enter into ulog cosole. There we will give /v,cn(*),rout(LPAR) command to filter only particular LPAR msgs. This should be monitored 24/7. sometimes we miss to monitor this due to other work... so i am thinking to run a job that will run for every 30 mins(should run for 30 mins) and extract the ulog msgs and search for a particular msg and send mail thru the job. Once we get mail, we will take an action.

Hope i am clear now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> FAQ & Basics

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top