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

Capturing the short message data in some variable in Rexx ?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ermanjitsingh

New User


Joined: 08 Jun 2009
Posts: 19
Location: Banglore

PostPosted: Thu Aug 13, 2009 11:18 am
Reply with quote

Hi.

Actually i want to capture the short message data in some variable in Rexx & want to use that values.

Is there is any system variable in which those short message description is stored ?

Let us say:

if we run a find command on a cobol program and then at the top right, message appears that ' 5 Chars found ' i want to capture this value in my rexx variable .
Code:

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
VIEW       AGCVP1S.V823.SRCLIB.SP090417(ARU040) - 01.           1 CHARS 'DURE'
Command ===>                                                  Scroll ===> CSR 
000339 028900*                                                                 
000340 029000 PROCEDURE DIVISION.                                             
000341 029100*                                                                 
000342 029200 0000-MAINLINE.                                                   
000343 029300*                                                                 
000344 029400     PERFORM 1000-BEGIN-OF-JOB                                   
000345 029500        THRU 1000-BOJ-EXIT.                                       
000346 029600*                                                                 
000347 029700     PERFORM 2000-PROCESS-USER-INPUT                             
000348 029800        THRU 2000-PUI-EXIT   UNTIL EOF-BOTH.                     




Can anyone please help me on this
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 13, 2009 2:40 pm
Reply with quote

Can only be done inside an edit macro:

Code:
"isredit macro (parm)"
"isredit macro_msg = ON"
"isredit find '"parm"' all"
"isredit macro_msg = OFF"

short = zedismsg
long  = zedilmsg
msgno = zedmsgno
Back to top
View user's profile Send private message
ermanjitsingh

New User


Joined: 08 Jun 2009
Posts: 19
Location: Banglore

PostPosted: Thu Aug 13, 2009 5:48 pm
Reply with quote

prino wrote:
Can only be done inside an edit macro:



Thanks Robert

I want it thru edit Macro only.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Aug 13, 2009 7:31 pm
Reply with quote

If you only want to know how many hits your FIND has got, then use FIND_COUNTS
Code:
ISREDIT (var1,var2) = FIND_COUNTS

You should check the return code from the FIND command too (4 is String not found)
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top