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
 

 

Interacting with SDSF using a rexx program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ramp_senti

New User


Joined: 17 Mar 2006
Posts: 26

PostPosted: Wed Sep 12, 2007 7:26 pm    Post subject: Interacting with SDSF using a rexx program
Reply with quote

Hi,
I need to get the Spool data (S.ST) using a rex program. I searched for it and got the REXX pgm also , but when i run the REXX program i get the following error

13 *-* IsfRC = isfcalls( "ON" )
13 +++ IsfRC = isfcalls( "ON" )
IRX0043I Error running SYSOUTWR, line 13: Routine not found
***

From the explanation given in one of the material what i understood is isfcalls is the routine which establishes the connection between REXX and SDSF.

But when i run the pgm it says isfcalls routine not found.

Am i missing something here ..

Pls help ( I'm attaching the entire REXX code herewith)

Code:

/* REXX */                                                       
Trace r                                                           
JobPattern = "iss091*"                                           
OwnerPattern = "*"                                               
JobClass = ""                                                     
Destination = ""                                                 
CondCode = ""                                                     
DdName = "*"                                                     
PdsDsn = ""                                                       
Error = "NO"                                                     
MemberRule = "JOBNAME"                                           
 /* Load the SDSF environment and abort on failure */             
  IsfRC = isfcalls( "ON" )                                       
  if IsfRC <> 0 then do                                           
    say "RC" IsfRC "returned from isfcalls( ON )"                 
    exit IsfRC                                                   
  end                                                             
  /* "Display" the ST panel to load the related variables */     
  isfprefix = JobPattern                                         
  isfowner = OwnerPattern                                         
  isffilter = "queue = print"                                     
  isfcols = "jname jobid ownerid queue jclass prtdest retcode"   
  address SDSF "isfexec st"                                       
 if RC <> 0 then do                                           
 say "RC" RC "returned from ISFEXEC ST"                       
 call DisplayMessages                                         
 end                                                           
/* Process every line in the ST display */                     
StRows = isfrows                                               
do i = 1 to StRows                                             
/* Apply the other filters */                                 
if JobClass <> "" & jclass.i <> JobClass then iterate         
if Destination <> "" & prtdest.i <> Destination then iterate   
if CondCode <> "" & retcode.i <> CondCode then iterate         
/* The job is selected so go process its SYSOUT */             
if MemberRule = "JOBID" then                                   
call ProcessSysout jname.i, jobid.i, token.i, DdName           
else                                                           
call ProcessSysout jname.i, jname.i, token.i, DdName           
end                                                           
/* Unload the SDSF environment */                             
 call isfcalls "OFF"                                           
 exit 0                                                       
                                                               
DisplayMessages:                                       
say "isfmsg: '"isfmsg"'"                               
say isfmsg2.0 "long messages in the isfmsg2 stem:"     
do i = 1 to isfmsg2.0                                   
say " '"isfmsg2.i"'"                                   
end


Removed Attachment
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Sep 12, 2007 9:29 pm    Post subject:
Reply with quote

What is your z/Os version?

O.
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: Wed Sep 12, 2007 10:00 pm    Post subject:
Reply with quote

Please DO NOT post attachments as many shops do not allow these to be viewed.

This reduces the number of people that may help you


This topic has been discussed many times here, try a search for SDSF and see how many results you get.
Back to top
View user's profile Send private message
ramp_senti

New User


Joined: 17 Mar 2006
Posts: 26

PostPosted: Thu Sep 13, 2007 12:27 pm    Post subject:
Reply with quote

Z/os Version is 1.07

.. I tried serching the forum that's where i got the code but i need to know if i have to set something to run the code as it says routine not found
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: Sat Sep 22, 2007 3:40 pm    Post subject:
Reply with quote

I'd hazard a guess that you are trying to use SDSF-REXX which isn't available until 1.9
Back to top
View user's profile Send private message
ramp_senti

New User


Joined: 17 Mar 2006
Posts: 26

PostPosted: Mon Sep 24, 2007 11:09 am    Post subject:
Reply with quote

Thanks !!!
Back to top
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 74
Location: India

PostPosted: Tue Jun 29, 2010 3:32 pm    Post subject: ISFCALLS routine not found error
Reply with quote

Hello,
I am also getting the same error.
'ISFCALLS routine not found'. My Z/OS version is Z/Os 1.10 and my system uses JES2. Below is the code snippet which I am trying to run.

rcode = ISFCALLS('ON')
"alloc f(ISFTRACE) da('smith.sdsf.trace') shr"
address SDSF "ISFEXEC '/p stc1'"
"free f(ISFTRACE)"
call ISFCALLS('OFF')
return rcode
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Jun 29, 2010 3:37 pm    Post subject: Reply to: Interacting with SDSF using a rexx program
Reply with quote

Your environment is not setup properly,
most probably libraries missing in the concatenation

see
http://www.redbooks.ibm.com/abstracts/sg247419.html

and
ftp://www.redbooks.ibm.com/redbooks/SG247419/
were You can download the sources of the samples
Back to top
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 74
Location: India

PostPosted: Wed Jun 30, 2010 4:08 pm    Post subject:
Reply with quote

Hello ,

Thanks for the response. Is there any way by which I can know whether my installation is compatible to run the SDSF REXX APIs.
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: Wed Jun 30, 2010 4:23 pm    Post subject:
Reply with quote

Yes, ask your site admin people, as they and they alone will know the set up.
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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