Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calling macro from Rexx program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Calling macro from Rexx program.
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Dec 29, 2011 2:02 pm    Post subject: Reply to: Calling macro from Rexx program.
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Dec 29, 2011 2:03 pm    Post subject: Reply to: Calling macro from Rexx program.
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
http://ibmmainframes.com/viewtopic.php?t=25947&highlight=

for all You might want to to know about ISPF <macros> and REXX <scripts>
see here ( ISPF )
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM70
and here ( REXX)
http://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
http://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    Post subject: Re: Reply to: Calling macro from Rexx program.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Dec 29, 2011 2:23 pm    Post subject: Reply to: Calling macro from Rexx program.
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    Post subject: still getting the problem.
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: 6968
Location: porcelain throne

PostPosted: Thu Dec 29, 2011 4:58 pm    Post subject:
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    Post subject:
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    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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us