Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX ISPF EDIT Macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Fri Dec 22, 2006 8:05 pm    Post subject: REXX ISPF EDIT Macro
Reply with quote

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
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sat Dec 23, 2006 11:25 pm    Post subject:
Reply with quote

You use the LINENUM operand to determine line numbers.

O.
Back to top
View user's profile Send private message
Ken_Fraser

New User


Joined: 02 Jan 2007
Posts: 5
Location: UK

PostPosted: Tue Jan 02, 2007 11:45 pm    Post subject: Re: REXX ISPF EDIT Macro
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us