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

how to retrieve the messages from syslog


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 792
Location: Chennai, India

PostPosted: Wed May 21, 2008 5:51 pm
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
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: 792
Location: Chennai, India

PostPosted: Wed May 21, 2008 6:15 pm
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
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: 2146
Location: At my coffee table

PostPosted: Wed May 21, 2008 6:40 pm
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
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
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

Global Moderator


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

PostPosted: Thu May 22, 2008 9:30 pm
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
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: 215
Location: India

PostPosted: Mon May 26, 2008 12:55 pm
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

Global Moderator


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

PostPosted: Tue May 27, 2008 9:33 pm
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 8:38 am
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: 215
Location: India

PostPosted: Wed May 28, 2008 10:09 am
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 10:29 am
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: 215
Location: India

PostPosted: Wed May 28, 2008 3:31 pm
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

Global Moderator


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

PostPosted: Wed May 28, 2008 9:32 pm
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: 1702
Location: Australia

PostPosted: Thu May 29, 2008 5:57 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts USS syslog how to All Other Mainframe Topics 5
No new posts retrieve volume records from decollec... DFSORT/ICETOOL 4
No new posts Unable to retrieve Datasets Names usi... CLIST & REXX 20
No new posts Read 4MB message and split into multi... COBOL Programming 9
No new posts CA Sysview - JCL or Rexx - Read or Ex... CA Products 4
Search our Forums:

Back to Top