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
 

 

Search using Macro in SDSF

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Aug 28, 2007 2:37 pm    Post subject: Search using Macro in SDSF
Reply with quote

Friends,

I have submitted one job and i need to display only the lines which has got my search string in the spool result set.

Is it possible using an macro ? or i need to write a rexx program and initiate it in batch or using tso rexx command ?

Will macro can be initiated on spool result set directly ?

if the above search can be performed without xdc or copying the results to PS, how it can be done ?

Any suggestions ?

Thanks,
Diwakar

-------------------------------------------
Nobody is Perfect. I am Nobody
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 28, 2007 3:34 pm    Post subject:
Reply with quote

The answers to all of your questions are YES. Now, start looking for methods to implement them.

O.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Aug 28, 2007 3:41 pm    Post subject:
Reply with quote

Ofer,

Thanks.

I got the logic and the code. Please find the below code for this.

Code:
/**** REXX ************************************/         
/* EXCLUDE ALL LINES EXCEPT THOSE WITH STRING */         
/**********************************************/         
"ISREDIT MACRO (STRING)"                                 
"ISREDIT X ALL"                                         
"ISREDIT F ALL" (STRING)                                 
RETURN       


But my macro is not getting executed on the spool resultset.

No error messages.. Nothing..

thats y i have raised the question.

Got any suggestions buddy ?

Thanks,
Diwakar

---------------------------------------------
Nobody is Perfect. I am Nobody
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 28, 2007 3:48 pm    Post subject:
Reply with quote

are you accessing the spool in view, edit or browse?
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Aug 28, 2007 3:56 pm    Post subject:
Reply with quote

Dick,

I know macros can be initiated only in view / edit mode.

i will describe how i will initiate this process

From Mainscreen : s;st (go to the job ) ? (enter)

then "s" to select the spool resultset.

then i gave IN DDNAME (IN is the macro name)

How can i make my macro work ?

Do i need to copy my resultset and open in view/edit mode to make this macro work ?

Thanks,
Diwakar
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 28, 2007 4:02 pm    Post subject: Reply to: Search using Macro in SDSF
Reply with quote

thilak,
Do u wan to know how to make your edit macro work in SDSF?? or do you wan to capture the result in a DS??

Did u get an error message like command not found??
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 28, 2007 4:30 pm    Post subject:
Reply with quote

have you managed to get your edit macro to work in a DS or member that you were viewing/editing. if it works there, it will work in sdsf, as long as you are viewing/editing one of the JES streams.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Aug 28, 2007 4:39 pm    Post subject:
Reply with quote

Dick,

I could not able to execute the macro. When i execute it doesnt throw any error/comments out ?

Vamsi,

I need to execute my macro in SDSF. I know we can execute the macro only in view/edit mode. But how to proceed further ?


Thanks,
Diwakar
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 28, 2007 4:41 pm    Post subject: Reply to: Search using Macro in SDSF
Reply with quote

tilak,

Open your Job in View mode my using the option 'SE' instead of 'S'. Then you can execute ur macros

~Vamsi
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Aug 29, 2007 2:31 pm    Post subject: Reply to: Search using Macro in SDSF
Reply with quote

Vamsi,

I tried executing, but nothing happens ?

Can you tell me, any modifications i need to do in my code to work ?

Thanks,
Diwakar
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Wed Aug 29, 2007 2:38 pm    Post subject: Reply to: Search using Macro in SDSF
Reply with quote

Hi,

Did you allocate the PDS with the macro to your TSo session??

If not type the following code on command line:
TSO ALLOC FI(SYSEXEC) DA('XXXX.YYYY.ZZZZ') SHR REUSE.
XXXX.YYYY.ZZZZ is your personal PDS with all the macros!!

Then you should be ready to execute your macros in your personal PDS!!

Open SDSF with option 'SE' and give the command!! this should work.

~Vamsi
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Aug 29, 2007 2:50 pm    Post subject:
Reply with quote

Vamsi,

Can you try the above code once and let me know if it is working fine for you ?

Thanks,
Diwakar
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Aug 29, 2007 2:57 pm    Post subject:
Reply with quote

Vamsi,

Its Working Buddy....

thanks.....

Thanks,
Diwakar
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm


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