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
 

 

Writing the content of the file into syslog

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Writing the content of the file into syslog
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Jun 05, 2008 10:52 am    Post subject: Reply to: Writing the content of the file into syslog
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Jun 05, 2008 11:08 am    Post subject: Reply to: Writing the content of the file into syslog
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 05, 2008 11:41 am    Post subject: Re: Reply to: Writing the content of the file into syslog
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    Post subject: Writing the content of the file into syslog
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Jun 05, 2008 3:36 pm    Post subject: Reply to: Writing the content of the file into syslog
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    Post subject: Writing the content of the file into syslog
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Jun 05, 2008 3:49 pm    Post subject: Reply to: Writing the content of the file into syslog
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 05, 2008 7:05 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jun 05, 2008 9:31 pm    Post subject: Reply to: Writing the content of the file into syslog
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Jun 05, 2008 9:36 pm    Post subject: Reply to: Writing the content of the file into syslog
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    Post subject: Writing the content of the file into syslog
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    Post subject:
Reply with quote

The WTO assembler macro is described in the manual here http://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

Senior Member


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

PostPosted: Fri Jun 06, 2008 10:16 pm    Post subject: Reply to: Writing the content of the file into syslog
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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