Page 1 of 1

simple macro to read command line arg

PostPosted: Mon Dec 27, 2010 1:52 pm
by venkateshb87
Hi all,

I have a very simple macro to read the data from command line.

The below is in a member ‘PARSE’.

/* rexx */
arg input_file
say input_file

I execute this as an edit macro inside the same member as shown:
parse abc

This does not show the input “abc” that I have sent in command line.
Instead it does show a blank line.

Am I missing something here?
Please let me know if you find something wrong in this code/macro execution procedure.

Thanks,
Venkatesh.

Re: simple macro to read command line arg

PostPosted: Mon Dec 27, 2010 5:31 pm
by MrSpock
That cannot be an ISPF Edit Macro until you add the line "ISREDIT MACRO", and an ISPF Edit Macro doesn't take parameters that way.

Re: simple macro to read command line arg

PostPosted: Mon Dec 27, 2010 6:47 pm
by NicC
Read the ISPF Edit & Edit Macro reference manual