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

isfline didnt work in rexx at z/OS version 2.1


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

New User


Joined: 04 Feb 2024
Posts: 24
Location: united arab emirates

PostPosted: Tue Feb 13, 2024 5:41 pm
Reply with quote

I run this rexx Code but ITS cannot run and it seems that cant read ISFLINE in syslog.

/* REXX */
RC = ISFCALLS('ON')
If RC <> 0 Then Do
Say "Error in enabling ISFCALLS. RC:" RC
Exit
End

ADDRESS SDSF "ISFLOG READ TYPE(SYSLOG)"
If ISFLINE.0 = 0 Then
Say "No lines read or access error."
Else Do
Do IX = 1 To ISFLINE.0 /* PROCESS THE RETURNED VARIABLES */
Say ISFLINE.IX
End
End

RC = ISFCALLS('OFF')
If RC <> 0 Then
Say "Error in disabling ISFCALLS. RC:" RC

After execute:

No lines read or access error.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1334
Location: Bamberg, Germany

PostPosted: Tue Feb 13, 2024 5:49 pm
Reply with quote

Please, use the code tag button when presenting code/data to the forum.

The logic successfully reads the log here. Maybe you have a security issue to fix on your end.
Back to top
View user's profile Send private message
mox512

New User


Joined: 04 Feb 2024
Posts: 24
Location: united arab emirates

PostPosted: Tue Feb 13, 2024 5:52 pm
Reply with quote

sorry about that, how can i fix it?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1205
Location: Dublin, Ireland

PostPosted: Tue Feb 13, 2024 8:04 pm
Reply with quote

Maybe after
Code:
ADDRESS SDSF "ISFLOG READ TYPE(SYSLOG)"

insert lines to check the ISF messages
e.g.
Code:
do ix=1 to isfmsg2.0
  say isfmsg2.ix
end


The messages might give a clue.

Garry.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Feb 14, 2024 5:53 am
Reply with quote

Also:
Code:
Say "ISFMSG=" isfmsg
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Feb 14, 2024 5:55 am
Reply with quote

Show us the trace.

And look here for more debugging information:
www.ibm.com/docs/en/zos/3.1.0?topic=language-diagnosing-errors-in-rexx-exec
Back to top
View user's profile Send private message
mox512

New User


Joined: 04 Feb 2024
Posts: 24
Location: united arab emirates

PostPosted: Sat Mar 02, 2024 12:20 pm
Reply with quote

Pedro wrote:
Show us the trace.

And look here for more debugging information:
www.ibm.com/docs/en/zos/3.1.0?topic=language-diagnosing-errors-in-rexx-exec

Code:
     3 *-* RC = ISFCALLS('ON')                                                 
       >L>   "ON"                                                             
       >F>   "0"                                                               
IRX0100I +++ Interactive trace.  TRACE OFF to end debug, ENTER to continue. +++
 4 *-* IF RC <> 0
   >V>   "0"     
   >L>   "0"     
   >O>   "0"     
8 *-* ADDRESS SDSF "ISFLOG READ TYPE(SYSLOG)"
  >L>   "ISFLOG READ TYPE(SYSLOG)"           
9 *-* IF ISFLINE.0 = 0
  >V>   "0"           
  >L>   "0"           
  >O>   "1"           
       *-*  THEN                               
    10 *-*  SAY "NO LINES READ OR ACCESS ERROR."
       >L>    "NO LINES READ OR ACCESS ERROR." 
NO LINES READ OR ACCESS ERROR.                 
    16 *-* RC = ISFCALLS('OFF')
       >L>   "OFF"             
       >F>   "0"               
    17 *-* IF RC <> 0 
       >V>   "0"       
       >L>   "0"       
       >O>   "0"     
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1334
Location: Bamberg, Germany

PostPosted: Sun Mar 03, 2024 11:27 pm
Reply with quote

Please, see what Garry and Pedro have recommended.
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 Run rexx with JCL Job CLIST & REXX 4
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top