Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ULOG extract into a dataset

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics
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    Post subject: ULOG extract into a dataset
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: 1445
Location: Azeroth

PostPosted: Sat Aug 04, 2012 9:27 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Aug 06, 2012 7:08 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Aug 09, 2012 7:07 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Aug 10, 2012 7:43 am    Post subject:
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    Post subject:
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    Post subject:
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: 1445
Location: Azeroth

PostPosted: Fri Aug 10, 2012 12:24 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Aug 10, 2012 5:20 pm    Post subject: Reply to: ULOG extract into a dataset
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Aug 10, 2012 5:25 pm    Post subject: Reply to: ULOG extract into a dataset
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    Post subject:
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.    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us