View previous topic :: View next topic
|
Author |
Message |
royalchm
New User
Joined: 15 Nov 2007 Posts: 29 Location: Bangalore
|
|
|
|
Hi All,
I am creating a tool in rexx add given string to the first 6 column of cobol programs, in this tool i am getting return code 20 for below ISREDIT command.
Code: |
/*******REXX***********/
TRACE E
'ISREDIT MACRO (PARM1) NOPROCESS'
"ISPEXEC CONTROL ERRORS RETURN"
"ISREDIT PROCESS RANGE C" |
i am unable to trace the reason and please help me to solve this issue
Thanks in advance.. [/code] |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Foreground or background
How is the macro invoked
Your macro as shown does not a lot
Why do you need a tool to do this ? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Do you mean the
command?
Did you look up the command syntax? RANGE suggests 2 values - a start and an end and you only show one -'C' which does not look like either a start or and end value. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
1) @TS: AFAIK, you cannot use an edit macro to override a builtin line-command.
2) @NicC: RANGE supports two values, to process two different line commands. Start and end value are set by the process command, into .ZFRANGE and .ZLRANGE |
|
Back to top |
|
|
Michael Jakob
New User
Joined: 13 Mar 2011 Posts: 17 Location: Switzerland
|
|
|
|
Hi Royalchm
in your snippet, I do not see the ADDRESS command. To which processor do you send these commands?
example:
ADDRESS 'ISPEXEC' "MACRO (PARM1) NOPROCESS"
ADDRESS 'ISPEXEC' ,
"CONTROL ERRORS RETURN"
Two separate strings must be given.
With kind regards
Michael |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Michael Jakob wrote: |
in your snippet, I do not see the ADDRESS command. To which processor do you send these commands?
example:
ADDRESS 'ISPEXEC' "MACRO (PARM1) NOPROCESS"
ADDRESS 'ISPEXEC' ,
"CONTROL ERRORS RETURN"
Two separate strings must be given. |
Don't talk out out the wrong place, if you had done some searches, either on this site, or using Google, you should never have given this completely bogus reply! |
|
Back to top |
|
|
|