Execute Edit Macro from User library.



IBM's Command List programming language & Restructured Extended Executor

Execute Edit Macro from User library.

Postby nayanpatra » Fri Feb 19, 2010 3:52 pm

Actually I am trying to execute a Rexx Macro from my own library. Could anyone help me with the procedure of achieving this since my PDS is just an user library and NOT a SYSPROC or SYSEXEC.

Any study material or documentation in this regard will be highly appreciated.
nayanpatra
 
Posts: 19
Joined: Mon Jul 06, 2009 4:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Execute Edit Macro from User library.

 

Re: Execute Edit Macro from User library.

Postby MrSpock » Fri Feb 19, 2010 4:03 pm

From the manual:

When you use a command name that is not a built-in or previously defined primary command, the editor searches the SYSUEXEC, SYSUPROC, ALTLIB, SYSEXEC, and SYSPROC concatenations (for CLISTs and REXX EXECs) for a member with the same name. If it exists, it is assumed to be a macro.


So, you can allocate your PDS to SYSUEXEC, SYSUPROC, SYSEXEC, or SYSPROC, or use the TSO ALTLIB command.

I think most TSO/ISPF users tend to use the TSO ALTLIB command.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Execute Edit Macro from User library.

Postby nayanpatra » Mon Feb 22, 2010 5:01 pm

Thanks... I think the TSO ALTLIB command is working. But it is not giving my desired output. I think you can help me following the details:

I have created a PDS with the name say ABCD.TEST.CLIST
I have created a member in the PDS called UPPER which contains the below lines.

/* REXX UPPER */
ADDRESS ISREDIT "MACRO PROCESS"
ADDRESS ISREDIT "CHANGE ALL P'<' P'>'"
ADDRESS ISREDIT "CAPS ON"

This macro is supposed to convert all small case alphabets into upper case.

Now I have saved another member in this PDS say XYZ which contains letters in both cases.
Eg: AbCd E f

Now if I write UPPER in the command line in order to invoke my UPPER macro it isn't recognising.

If everything works fine then the desired output should come as
ABCD E F

Hope I am able to explain my problem.
nayanpatra
 
Posts: 19
Joined: Mon Jul 06, 2009 4:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Execute Edit Macro from User library.

Postby expat » Mon Feb 22, 2010 5:11 pm

I suggest that you read the REXX reference manual for the correct use of ALTLIB
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Execute Edit Macro from User library.

Postby MrSpock » Mon Feb 22, 2010 5:28 pm

Show us how you executed the ALTLIB command and show us where in the dataset concatenation your PDS containing the member UPPER is.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post