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
 

 

how to retrieve the messages from syslog

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
tamizh_005
Currently Banned

New User


Joined: 22 Apr 2008
Posts: 3
Location: chennai

PostPosted: Wed May 21, 2008 5:33 pm    Post subject: how to retrieve the messages from syslog
Reply with quote

How to retrieve all the messages that are running currently in syslog to the physical sequential(ps) file or to the member of the partitioned data set(pds).
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed May 21, 2008 5:51 pm    Post subject:
Reply with quote

In SDSF, XDC...
Back to top
View user's profile Send private message
tamizh_005
Currently Banned

New User


Joined: 22 Apr 2008
Posts: 3
Location: chennai

PostPosted: Wed May 21, 2008 6:06 pm    Post subject: how to retrieve the messages from syslog
Reply with quote

hi,

let me know some more details about this
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed May 21, 2008 6:15 pm    Post subject:
Reply with quote

In SDSF, entering XDC before a job will direct to screen to copy job log into PS or member of PDS...
Back to top
View user's profile Send private message
tamizh_005
Currently Banned

New User


Joined: 22 Apr 2008
Posts: 3
Location: chennai

PostPosted: Wed May 21, 2008 6:28 pm    Post subject: how to retrieve the messages from syslog
Reply with quote

hi,

I'm not having that JCL if possible tell me where to refer?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed May 21, 2008 6:40 pm    Post subject: Re: how to retrieve the messages from syslog
Reply with quote

tamizh_005 wrote:
I'm not having that JCL if possible tell me where to refer?
Using Action Characters
Back to top
View user's profile Send private message
Bill Dennis

Active Member


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

PostPosted: Wed May 21, 2008 6:54 pm    Post subject:
Reply with quote

In SDSF, the action characters XDC on a job will copy the output of that job (including the JESMSGLG portion) to a dataset you will be prompted to supply.

If you want records from the SYSLOG for all system activity, go to the LOG and use these commands to specify the dataset and time span:
PRINT DATASET
PRINT hh.mm.ss hh.mm.ss
PRINT CLOSE
Back to top
View user's profile Send private message
ram1424
Currently Banned

New User


Joined: 16 Apr 2008
Posts: 3
Location: chennai

PostPosted: Thu May 22, 2008 6:40 pm    Post subject:
Reply with quote

hi,

PRINT DATASET
PRINT hh.mm.ss hh.mm.ss
PRINT CLOSE

anyone can explain about the usage of the above lines in the log area with examples.

thanks in advance,
tamizh
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu May 22, 2008 9:30 pm    Post subject: Reply to: how to retrieve the messages from syslog
Reply with quote

1. go to SDFS LOG display
2. type PRINT DATASET in command line, press Enter
3. fill out panel

4. type PRINT 08:00:00 09:00:00 in command line, press Enter
5. type PRINT CLOSE in the command line, press Enter

See the online help and search for PRINT, cause the reference book does not describe this well.
Back to top
View user's profile Send private message
ram1424
Currently Banned

New User


Joined: 16 Apr 2008
Posts: 3
Location: chennai

PostPosted: Mon May 26, 2008 11:04 am    Post subject:
Reply with quote

hi pedro,

thanks for your suggestions.when i type PRINT DATASET NAME in the command line,it shows 'parm invalid' and explain me briefly how to give the dataset name.

thanks in advance,
ram
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Mon May 26, 2008 12:55 pm    Post subject:
Reply with quote

ram1424 wrote:
hi pedro,

thanks for your suggestions.when i type PRINT DATASET NAME in the command line,it shows 'parm invalid' and explain me briefly how to give the dataset name.

thanks in advance,
ram


Ram i think u r trying this for the total job.
I tried the same and it's not working for the total job.
Then i tried individually n it worked fine.
OPen ur JESMSGLG or JESJCL or etc and try this method.It will work fine.I tried it.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue May 27, 2008 9:33 pm    Post subject: Reply to: how to retrieve the messages from syslog
Reply with quote

Ram, please confirm that you are using the LOG option of SDSF.

My earlier instructions said to type PRINT DATASET in the command line of the syslog display. Do not include 'name' as part of the command.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 8:38 am    Post subject:
Reply with quote

Hi Pedro,
can this be done in a batch job ? I tried the following code but
output is been written to DDname SYS00001 or SYS00002.


Code:
//SDSF     EXEC PGM=IKJEFT01                                           
//SYSPRINT DD SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//ISFOUT   DD SYSOUT=*                                                 
//LOGOUT   DD DSN=USER.FILE,                                           
//            DISP=(,CATLG,DELETE),                                     
//            UNIT=SYSDA,                                               
//            SPACE=(TRK,(10,5),RLSE),                                 
//            DCB=(RECFM=FBA,LRECL=133)                                 
//SYSTSIN  DD  *                                                       
  SDSF                                                                 
//ISFIN    DD  *                                                       
  LOG                                                                   
  PRINT (FILE) (LOGOUT)                                                 
  PRINT 08:00:00 09:00:00                                               
  PRINT CLOSE                                                           
//*                                                                     
//**********************************************************************


Gerry
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Wed May 28, 2008 10:09 am    Post subject: Reply to: how to retrieve the messages from syslog
Reply with quote

Quote:

08:00:00 09:00:00


Gerry can u explain What does this signifies?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 10:29 am    Post subject:
Reply with quote

Hi Sri,

. . it signifies start time and end time.


Gerry
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Wed May 28, 2008 3:31 pm    Post subject:
Reply with quote

gcicchet wrote:
Hi Sri,
it signifies start end end time.


Gerry


Thanks Gerry icon_biggrin.gif
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Wed May 28, 2008 9:32 pm    Post subject: Reply to: how to retrieve the messages from syslog
Reply with quote

gcicchet,

Try without parenthesis:
Code:

//ISFIN    DD  *                                                       
  LOG                                                                   
  PRINT FILE LOGOUT
  PRINT 08:00:00 09:00:00                                               
  PRINT CLOSE   


FYI. I think the commands in batch should use the same syntax as you would use in ISPF. But in ISPF, you get better diagnostic messages. If you tried PRINT (FILE) (LOGOUT) in ISPF, you would see and 'invalid parm' message.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu May 29, 2008 5:57 am    Post subject:
Reply with quote

Hi Pedro,
without the paranthesis it worked fine.

Thanks.

This might assist Kevin in a later thread "SDSF and SYSLOG"


Gerry
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to retrieve Julian_date Suganya87 DB2 4 Wed Aug 17, 2016 7:27 pm
No new posts Retrieve current year or month using ... vnktrrd DFSORT/ICETOOL 15 Tue Mar 15, 2016 4:14 pm
No new posts ims program to put and get MQ messages fatenezzat COBOL Programming 1 Wed Feb 17, 2016 1:07 am
No new posts REXX / CA TOP SECRET messages carlos fuentes CLIST & REXX 2 Tue Oct 27, 2015 11:02 pm
No new posts retrieve line commands from the data ... Pedro TSO/ISPF 6 Sat Oct 17, 2015 5:41 am


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