View previous topic :: View next topic
|
Author |
Message |
ihatesugar Warnings : 1 New User
Joined: 22 Oct 2006 Posts: 43
|
|
|
|
HI all,
i have a small problem at hand.
i need to write a small REXX ISPF EDIT macro which recieves some value from the rexx tool and has to write it to a member of PDS.
i am using the command "line_before 1 = myvar"
but it throws an error saying
Invalid line number
Relative line number specified in "LINE_BEF" command does not exit.
how do i determine the line number???
thanks
i am getting the following error while writing into a member of PDS.. Any suggestions?
******************************************************************************
* *
* Command in error . : LINE_BEFORE 1 = DATALINE (V1) *
* *
* Invalid line number *
* Relative line number specified in "LINE_BEF" command does not exist. *
* *
* Error message ID . : ISRE274 *
* *
* Last return code . : 12 *
* *
* Macro executing . : MACWRITE *
* *
* Press ENTER key to terminate the macro. *
* *
* *
* *
****************************************************************************** |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You use the LINENUM operand to determine line numbers.
O. |
|
Back to top |
|
|
Ken_Fraser
New User
Joined: 02 Jan 2007 Posts: 5 Location: UK
|
|
|
|
Don't know how you're getting that message but this works for me:
Code: |
/* REXX */
isredit "macro"
myvar = "Hello Sailor"
isredit "line_before 1 = (myvar)" |
The variable name needs to be in brackets or it will print the variable name instead of its contents. |
|
Back to top |
|
|
|