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
 

 

REXX to search string in active address space ?

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

Active User


Joined: 09 Jun 2014
Posts: 106
Location: windsor

PostPosted: Fri Jan 09, 2015 10:54 pm    Post subject: REXX to search string in active address space ?
Reply with quote

Hi experts,

Is is possbile to have rexx program to go into address space in SD;DA and then read line by line to get the information you want ?

Same like you do S and then look up for the message. thanks

Code:
 YSYS STATUS DISPLAY ALL CLASSES                        LINE 1-16 (16)         
 COMMAND INPUT ===>                                            SCROLL ===> CSR 
 NP   JOBNAME  JobID    Owner    Prty Queue      C  Pos  SAff  ASys Status     
      DIF      STC32427 DIF        15 EXECUTION          XSYS  XSYS             
 S   DIF      STC30819 DIF        15 EXECUTION          YSYS  YSYS             
      DIF      STC30644 DIF         1 PRINT         7868                       
      DIF      STC30355 DIF         1 PRINT         6517       
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Fri Jan 09, 2015 11:05 pm    Post subject:
Reply with quote

Hello,
You could do it with SDSF REXX interface. This link has examples.
http://www.redbooks.ibm.com/redbooks/pdfs/sg247419.pdf

Also you could search this forum for SDSF REXX and I am sure there are many threads that has the complete code of how to do this.
Back to top
View user's profile Send private message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 106
Location: windsor

PostPosted: Sat Jan 10, 2015 12:52 am    Post subject:
Reply with quote

Hi , I can find the address space in DA using REXX,

what's the REXX code for SELECT this address space and do the search ?

Couldn’t find anything in the book and forum, its would be better if you can give example ?

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Jan 10, 2015 1:50 am    Post subject: Reply to: REXX to search string in active address space ?
Reply with quote

search the forum for my SDSF REXX snippets
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 51
Location: Switz

PostPosted: Mon Jan 12, 2015 1:19 pm    Post subject:
Reply with quote

Here's a sample to get you going. SDSF-REXX is very useful and powerful but takes some time to learn. Use the link already mentioned above, or else look in the SDSF user guide which also has many examples.

(Tip: In SDSF, type COLSHELP to see what columns/variables are available in each panel)
Code:
/*rexx*/

rc=isfcalls("ON")
if rc <> 0 then exit rc

ISFPREFIX = 'MYPREFX*'
Address "SDSF" "ISFEXEC DA"
if rc <> 0 then exit rc

do ix=1 to JNAME.0    /* Loop for all rows returned */
  say jname.ix jobid.ix

  /* Issue Display against each row returned */
  Address "SDSF" "ISFACT DA TOKEN('"TOKEN.ix"') PARM(NP D)"

end

rc=isfcalls("OFF")
exit
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


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