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

Calling macro from Rexx program.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sarabjeet manyani

New User


Joined: 27 Sep 2011
Posts: 6
Location: india

PostPosted: Thu Dec 29, 2011 1:54 pm
Reply with quote

Hi,
i need a sample rexx program which will call a macro.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Dec 29, 2011 2:02 pm
Reply with quote

Exactly what do you mean by "call" and "macro"?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Dec 29, 2011 2:03 pm
Reply with quote

if You had searched a bit the forum You would have found gazillions of examples and snippets
to save You some of Your precious time here is a link to a working snippet
ibmmainframes.com/viewtopic.php?t=25947&highlight=

for all You might want to to know about ISPF <macros> and REXX <scripts>
see here ( ISPF )
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM70
and here ( REXX)
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
not the latest ones but more than enough to get You started

for the links to the manuals for Your zOS level start from here
www-03.ibm.com/systems/z/os/zos/bkserv/index.html
Back to top
View user's profile Send private message
sarabjeet manyani

New User


Joined: 27 Sep 2011
Posts: 6
Location: india

PostPosted: Thu Dec 29, 2011 2:17 pm
Reply with quote

Bill Woodger wrote:
Exactly what do you mean by "call" and "macro"?


Example -

/* REXX */
ADDRESS ISPEXEC "EDIT DATASET('MY.DSN') MACRO(MYMACRO)"

MYMACRO:
ADDRESS ISREDIT.....
......................

And in MYMACRO it will perform some operations based upon logic.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Dec 29, 2011 2:23 pm
Reply with quote

looks like You have already found the way Yourself,
just widen the scope by searching and reading the manuals icon_cool.gif
Back to top
View user's profile Send private message
sarabjeet manyani

New User


Joined: 27 Sep 2011
Posts: 6
Location: india

PostPosted: Thu Dec 29, 2011 4:30 pm
Reply with quote

Actually when i ran Rexx program then it open MY.DSN (pds name) and then it will wait until i select the MYMACRO (member name) from the list and if i would select the member MYMACRO then it will exceute that MACRO and keep open macro into edit mode. icon_cry.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Dec 29, 2011 4:58 pm
Reply with quote

since you want to edit a pds,
suggest you use lmm... services.

don't know what your problem is?

when you edit from DATASET('MY.DSN'), you are forcing a memberlist display.

why are you selecting member MYMACRO?
you should be selecting a member on which MYMACRO is to work.

and does your MYMACRO rexx script have an ISPEDIT END?
Back to top
View user's profile Send private message
sarabjeet manyani

New User


Joined: 27 Sep 2011
Posts: 6
Location: india

PostPosted: Thu Dec 29, 2011 5:54 pm
Reply with quote

dbzTHEdinosauer wrote:
since you want to edit a pds,

when you edit from DATASET('MY.DSN'), you are forcing a memberlist display.

why are you selecting member MYMACRO?



Thanks dbzTHEdinosauer,
i got my mistake.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top