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

Search using Macro in SDSF


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Tue Aug 28, 2007 3:34 pm
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
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
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 5
No new posts How can I add/create a new INIT(initi... TSO/ISPF 2
No new posts SDSF and Rexx TSO/ISPF 4
No new posts Access to macro definitions PL/I & Assembler 4
Search our Forums:

Back to Top