How do I pass parms to my ISPF Edit macro

Answer Posted / albert n

On the command line in the editor, just use the name of the
macro and list the paramters behind it. E.g. if you have a
macro called FINDALL and it expects 3 parameters you would
specify in the commandline: FINDIT parm1 parm2 parm3

When you code the MACRO the first line should be like:
Address ISREDIT "MACRO (parm1 , parm2, parm3)".

Since you are working with REXX you could have used:
Address ISREDIT "MACRO ( parm )"
You then parse the parm like this:
Parse (UPPER) Arg parm parm1 parm2 parm3

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I combine uni-REXX with a compiled language in my application? What application programming interfaces are available? For example, can I share variables between uni-REXX and a compiled language?

675


can oorexx run normal rexx programs?

786


how to pass parms to ispf edit macro?

813


If I have limited experience with Rexx or it's been a long time since I've used it, what kind of help is available to get me started?

703


Can anyone provide me the source code for LOC(lines of code) counter written in REXX language which can run on IBM mainframe z/OS V1R4. The LOC counter should be able to count the comments,lines of code,blank lines in a COBOL program and JCL's

2330


What are the various error conditions seen in rexx?

688


Is it possible to combine uni-rexx with a compiled language in any application? What applications interfaces are there?

707


Can I cleanly uninstall oorexx?

714


what if I need to have the same application running on multiple platforms, such as unix and the mainframe? Does that mean I have to maintain two separate sources?

689


What is the use of uni-rexx?

704


what is uni-rexx?

770


Enlist the features of rexx as a programming language.

773


How to code the db2 queries using rexx?

761


for which platforms is uni-rexx available?

733


I just know the Panvalet dataset name, i would like to search all the members of that dataset for particular keyword through Rexx. how to achive? please suggest. Is it possible to open panvalet member in browse mode using Rexx? Your help would be appreciated very much. Thanks in advance.

5301