Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to call a ISREDIT macro from a rexx exec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
t_ctaram

New User


Joined: 15 May 2007
Posts: 20
Location: mumbai

PostPosted: Tue Jul 03, 2007 5:39 pm    Post subject: How to call a ISREDIT macro from a rexx exec
Reply with quote

I have a requirement where i want to call a Macro from a Rexx Exec.

eg.
i have a rexx exec ABC and another rexx exec XYZ( ISREDIT macro)
i want to call the rexx exec XYZ from the exec ABC.

CTARAM.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 03, 2007 5:46 pm    Post subject: Re: How to call a ISREDIT macro from a rexx exec
Reply with quote

You'd have to invoke EDIT for the intended dataset, passing the macro name (XYZ) to EDIT.

You can see an example here in this previous topic.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 03, 2007 7:12 pm    Post subject:
Reply with quote

Edit macros can be invoked only from within an Edit/View session.

You can enter an Edit/View session either using your ISPF menu, or by ISPF Services (like EDIT or VIEW).

O.
Back to top
View user's profile Send private message
t_ctaram

New User


Joined: 15 May 2007
Posts: 20
Location: mumbai

PostPosted: Tue Jul 03, 2007 7:55 pm    Post subject: Re: How to call a ISREDIT macro from a rexx exec
Reply with quote

iam using
address ispexec "edit dataset("ds") macro(XYZ)"

but its is not going to XYZ.

how can i trace whether its executing the macro XYZ or not.

The macro XYZ is in the same PDS in which i have my main Exec.

the environment of main exec is TSO. Is there might be any reason that it will not invoke the exec XYZ
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 03, 2007 10:00 pm    Post subject:
Reply with quote

May be nothing but try this version

ADDRESS ISPEXEC "EDIT DATASET('"ds"') MACRO(XYZ)"

Which encloses the dataset name within single quotes.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 03, 2007 10:03 pm    Post subject: Re: How to call a ISREDIT macro from a rexx exec
Reply with quote

I would think that a TRACE on both the caller exec and the macro exec would help pinpoint any potential issues.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jul 04, 2007 10:55 am    Post subject:
Reply with quote

1. Are you running in batch or foreground?
2. What is the RC of the EDIT service?
3. Try to display ZERRSM/ZERRLM after the edit.
4. Use Dialog Trace (option 7 in my ISPF menu).

O.
Back to top
View user's profile Send private message
t_ctaram

New User


Joined: 15 May 2007
Posts: 20
Location: mumbai

PostPosted: Wed Jul 04, 2007 12:21 pm    Post subject: Re: How to call a ISREDIT macro from a rexx exec
Reply with quote

hi all,

Thanks for your valuable suggessions.

the code suggested by you is working.

But it goes into the Macro XYZ and never returns back to the main Exec ABC.

DO i need to use RETURN or some thing else to getback to ABC and continue with other members of my PDS.

Thanks in advance
CTARAM
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jul 04, 2007 4:08 pm    Post subject:
Reply with quote

In your macro you need ADDRESS ISREDIT END/CANCEL.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us