Searching and producing report from SDSF

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...
willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: Searching and producing report from SDSF

Postby willy jensen » Tue Mar 09, 2021 10:10 pm

You need to look at the chapter 'Browsing the system log with ISFLOG' in the 'SDSF Users Guide' manual. The way to go depends on whether you are using SYSLOG or OPERLOG.
The sample I have is for SYSLOG so will not output data if you are using OPERLOG.

Code: Select all

Address TSO                                        
rc=isfcalls('ON')                                  
parse value '0 0' with isfmsg2.0 isfline.0          
Address SDSF "ISFLOG ALLOC TYPE(OPERLOG) (VERBOSE)"
if rc<>0 then do                                    
  say '  ' ISFMSG                                  
  do i=1 to ISFMSG2.0                              
    say '  ' ISFMSG2.i                              
  end                                              
  call close 8                                      
end                                                
logindd=ISFDDNAME.1                                
/* process log records */                          
Do forever                                          
  "execio 1000 diskr" logindd "(stem logi.)"    
  if logi.0=0 then leave   
  do li=1 to logi.0                                
    say logi.li                                    
  end                                              
End                                                
"execio 0 diskr" logindd "(finis)"                  
"Free dd("logindd")"      

Misha786
Posts: 31
Joined: Fri Nov 27, 2020 12:28 am
Skillset: REXX,JCL,COBOL,DB2,VSAM
Referer: Word of mouth

Re: Searching and producing report from SDSF

Postby Misha786 » Wed Mar 10, 2021 11:56 pm

Thanks Willy !! It worked . I made some changes as per my requirement.
Thanks once again !!


  • Similar Topics
    Replies
    Views
    Last post