View previous topic :: View next topic
|
Author |
Message |
kumaresan c
New User
Joined: 20 Jan 2009 Posts: 6 Location: Chennai
|
|
|
|
I have written a macro by name DELETE1 to delete certain lines based upon a condition. Kindly help me how to call this macro with parameters. I have to use this parameter in the macro for checking a condition.
Please help me. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You care to look at the manual, it' s well explained there |
|
Back to top |
|
|
kumaresan c
New User
Joined: 20 Jan 2009 Posts: 6 Location: Chennai
|
|
|
|
I need to call this macro with parameter from another rexx code. Pls help me to accomplish this |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
As stated by Enrico, did you look in the manuals ?
What have you tried for yourself and what were the results. Please post the output of the error messages if you have them as well as the pertinent area of code.
Without such things we can only guess at what you are trying to do. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Please clarify what environment you are in... editor or not? |
|
Back to top |
|
|
kumaresan c
New User
Joined: 20 Jan 2009 Posts: 6 Location: Chennai
|
|
|
|
'ISREDIT MACRO (EASPTS)'
ADDRESS ISREDIT
"X ALL " EASPTS 9
"DELETE ALL X"
This is my macro name DELETE1 to delete certain lines in a file by checking for the existence of the parameter EASPTS in 9th position.
"EDIT DATASET('"IN_FILE2"') MACRO(DELETE1)"
and this is the syntax which I used to invoke the above macro (without parameter) from another REXX code.
I need to edit the dataset IN_FILE2 by calling the macro DELETE1 with parameter EASPTS.
Pls help me how to invoke this macro(with parameter EASPTS) from another REXX code. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at VPUT and VGET which has been used in examples on the forum already. |
|
Back to top |
|
|
|