View previous topic :: View next topic
|
Author |
Message |
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The answers to all of your questions are YES. Now, start looking for methods to implement them.
O. |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
are you accessing the spool in view, edit or browse? |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Vamsi,
Can you try the above code once and let me know if it is working fine for you ?
Thanks,
Diwakar |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Vamsi,
Its Working Buddy....
thanks.....
Thanks,
Diwakar |
|
Back to top |
|
|
|