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

Writing the content of the file into syslog


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Thu Jun 05, 2008 10:44 am
Reply with quote

Is it possible to write the content of the file into syslog through REXX?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 05, 2008 10:52 am
Reply with quote

please clarify the term syslog
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Thu Jun 05, 2008 11:06 am
Reply with quote

Syslog means system log.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 05, 2008 11:08 am
Reply with quote

what would be the reason for writing a file to the system log ??
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jun 05, 2008 11:41 am
Reply with quote

enrico-sorichetti wrote:
what would be the reason for writing a file to the system log ??

Exactly the same question that I would ask.
Maybe it's the requirement icon_confused.gif
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Thu Jun 05, 2008 3:30 pm
Reply with quote

I extracted the contents from the syslog into a file for the production environment. now i need this process for test simulation environment.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 05, 2008 3:36 pm
Reply with quote

so the process was the other way around ,
still it is not clear to what system log You are referring
might be clear for You, not the same for us...
please enlighten
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Thu Jun 05, 2008 3:45 pm
Reply with quote

i want to check the messages or events of all the users according to their process.for example.,when a user logs off a subsystem,then the following message will be displayed in the syslog.

IEF126I H905058 - LOGGED OFF - TIME=15.41.21
$HASP395 H905058 ENDED
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 05, 2008 3:49 pm
Reply with quote

OK! what is the problem?
still it is not clear what issues You are facing
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Jun 05, 2008 6:36 pm
Reply with quote

Does your process examine SYSLOG records in real time?

I'm not sure how to get the messages back into the active SYSLOG. You could do a WTO or DISPLAY in a program but the message IDs may not appear in the same location in the log records.

I think it would be easier to run actual jobs on your test system.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jun 05, 2008 7:05 pm
Reply with quote

What information is it that you want to get, and why.

There are other methods of getting statistics / information from the system
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Jun 05, 2008 9:31 pm
Reply with quote

Quote:
Is it possible to write the content of the file into syslog through REXX?


If I understand the thread: you have a program that will read syslog so that you can perform 'actions' based on certain messages. And now you want to test your 'actions' and in order to test, you need to trigger them by getting the messages into syslog.

You should be able to develop your 'actions' as subroutines. And have a test program that only pretends it got the message from syslog and then calls your subroutine.

======
to get messages in to syslog:
1. you need an authorized program to issue a WTO. The parm to the program should be the message to be written.

2. call the program from your rexx.

note: there are security / auditing implications here so you are unlikely to be allowed to create such a program.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 05, 2008 9:36 pm
Reply with quote

Quote:
now i need this process for test simulation environment.


until the TS clarify the application design any reply is just pure speculation
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Fri Jun 06, 2008 11:56 am
Reply with quote

Hi pedro,
Thanks for your information.
Can you explain briefly about how to use WTO?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Jun 06, 2008 6:47 pm
Reply with quote

The WTO assembler macro is described in the manual here publibz.boulder.ibm.com/epubs/pdf/iea2a981.pdf

You can use the method where the message data is in a work area with a length indicator. The ROUTCDE values allow you to direct the message to the SYSLOG along with certain consoles or no consoles.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Jun 06, 2008 10:16 pm
Reply with quote

You can also use the SEND command to get stuff into SYSLOG. but I think messages are prefixed with a '+' sign to indicate it is not a real message.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top