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

Is it possible to extract the contents of message


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

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 2:02 pm
Reply with quote

Hi,

Is it possible to extract the contents of message through REXX

/JSTP0010 EXEC CMDCPRL2,
.
.
.
.
.
// TEMPUNIT='SYSDA'
==MSG> CAY6081E DISP OF CATLG INVALID
==MSG> "DEV2.US.DOHBXAPP.E1CLAIM1.JUN0208.SRT" - DATA SET ALREADY CATALOGED
==MSG>

Actually i want to extract that dataset name by using the code and placing the cursor on that MSG line

/* REXX */
ADDRESS ISREDIT MACRO
"ISREDIT (LIN,COL) = CURSOR"
"ISREDIT (DATA) = LINE .ZCSR"
SAY DATA

BUt i got the output for DATA as
// TEMPUNIT='SYSDA'
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jun 20, 2008 2:16 pm
Reply with quote

Hi karthikr44 !

Your desired string is in a messaage-line. Make it a data-line before.
Use MD for that.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 3:40 pm
Reply with quote

HI UmeySan,

I am new to REXX. Will u explain more about MD command or send any samples.


Regards
R KARTHIK
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jun 20, 2008 5:07 pm
Reply with quote

Hi karthikr44 !

Nothing to do especially with REXX. Just a Edit-Line-Command.

To see how it's function, edit a member, type cols in a line, a straightedge is displayed. Then type MD over the "=COLS>" Position. This line now becomes a normal data-line.

000001 SPACE-1
=COLS> ----+----1----+----2----+----3----+---
000002 IKJTCB DSECT=YES,LIST=YES

000001 SPACE-1
MDOLS> ----+----1----+----2----+----3----+---
000002 IKJTCB DSECT=YES,LIST=YES

000001 SPACE-1
000002 ----+----1----+----2----+----3----+
000003 IKJTCB DSECT=YES,LIST=YES

Nice weekend
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 6:11 pm
Reply with quote

Hi UMEY,

Thanks ... Now i got it...
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 Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts optim extract file - SAS DB2 2
Search our Forums:

Back to Top