simple macro to read command line arg

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

simple macro to read command line arg

Postby venkateshb87 » Mon Dec 27, 2010 1:52 pm

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.

Posts: 1
Joined: Sun Dec 26, 2010 6:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: simple macro to read command line arg

Postby MrSpock » Mon Dec 27, 2010 5:31 pm

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.
User avatar
Global moderator
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: simple macro to read command line arg

Postby NicC » Mon Dec 27, 2010 6:47 pm

Read the ISPF Edit & Edit Macro reference manual
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Return to TSO & ISPF


  • Related topics
    Last post