View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi karthikr44 !
Your desired string is in a messaage-line. Make it a data-line before.
Use MD for that. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI UmeySan,
I am new to REXX. Will u explain more about MD command or send any samples.
Regards
R KARTHIK |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi UMEY,
Thanks ... Now i got it... |
|
Back to top |
|
|
|