Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REXX TOOLS AND TSO 1

Status
Not open for further replies.

dhanny

Programmer
May 12, 2010
1
US
Hi,

I have written some rexx code, i dont know how to make the TSO/ISPF environment communicate with my rexx code. If you want to copy some cobol lines, you type 'cc' in one line and type 'cc' in another line and press enter, the lines are copied. Similarly, if i want to comment some lines i type '.ca' in one line, and '.cb' in another line, i have written the rexx code and placed it in a
dataset 'A0000.USER.CLIST' (which is allocated to TSO). The thing is, when type '.ca' and '.cb'in the lines, nothing is happening.


/* REXX */

/* REXX PROGRAM TO COMMENT COBOL LINES */

"ISREDIT MACRO (N) NOPROCESS"

ISREDIT "(MX)=LINENUM .ZLAST "

IF LENGTH(N)=0 THEN N=7

ISREDIT "PROCESS RANGE C"

ISREDIT "(L)=LINENUM .ZFRANGE "

ISREDIT "(MX)=LINENUM .ZLRANGE "

ISREDIT "LABEL "L"=.ca "

ISREDIT "LABEL "MX"=.cb "

ISREDIT "C "N" ' ' '*' all .ca .cb"

EXIT





PLEASE ENLIGHTEN ME.
 
What you need is the 'ISPF Edit and Edit Macros' manual - SC34-4820-xx where xx is the version number - mine is 04.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top