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: 10256
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: 10256
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: 6967
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


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