View previous topic :: View next topic
|
Author |
Message |
sarabjeet manyani
New User
Joined: 27 Sep 2011 Posts: 6 Location: india
|
|
|
|
Hi,
i need a sample rexx program which will call a macro. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Exactly what do you mean by "call" and "macro"? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
sarabjeet manyani
New User
Joined: 27 Sep 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
looks like You have already found the way Yourself,
just widen the scope by searching and reading the manuals |
|
Back to top |
|
|
sarabjeet manyani
New User
Joined: 27 Sep 2011 Posts: 6 Location: india
|
|
|
|
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. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
sarabjeet manyani
New User
Joined: 27 Sep 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
|