Page 1 of 2

how to enter the edit macro without clist&rexx

PostPosted: Fri Mar 19, 2010 1:56 am
by helen2000
I need to repeat my job daily. Would anybody help me where is edit macro's pane?
 EDIT       MP.DONLINE.SP(CHYEAR) - 01.02                 
 ****** ***************************** Top of Data ********
 ==MSG> -Warning- The UNDO command is not available until
 ==MSG>           your edit profile using the command RECO
 000001     ISREDIT MACRO                                 
 000002        ISREDIT C MP0 MP1 ALL                     
 000003        ISREDIT C DB0 DB1 ALL                     
 000004        ISREDIT C IT0 IT1 ALL                     
 000005        ISREDIT C HD0 HD1 ALL                     
 000006        ISREDIT C HG0 HG1 ALL                     
 000007        F Y/E FIRST                               
 000008     EXIT CODE(0)                                 
 ****** **************************** Bottom of Data ******
                                                         
                                                         


thanks
helen

Re: how to enter the edit macro without clist&rexx

PostPosted: Fri Mar 19, 2010 2:24 am
by dick scherrer
Hi Helen,

Would anybody help me where is edit macro's pane?
I don't understand the question. . .

Possibly an example would help?

Re: how to enter the edit macro without clist&rexx

PostPosted: Fri Mar 19, 2010 11:57 pm
by helen2000
hi, Mr. dick,
I'm not sure is it correct for me write my macro in ispf editor? |'m sorry I don't know how to express that,
my means is if edit macro need special tool? and how to run the above macro.

Re: how to enter the edit macro without clist&rexx

PostPosted: Sat Mar 20, 2010 12:29 am
by dick scherrer
Hi Helen,

|'m sorry I don't know how to express that,
Not to worry - we will try to help with wording :)

and how to run the above macro
You should be able to directly invoke the macro. There should be no need for a panel or some special tool - unless there is something i misunderstand.

Good luck,

Re: how to enter the edit macro without clist&rexx

PostPosted: Sat Mar 20, 2010 1:54 am
by Bill Dennis
The macro source member must be saved in a library in the SYSPROC DD concatenation of your TSO session so that ISPF can find it.

Re: how to enter the edit macro without clist&rexx

PostPosted: Sat Mar 20, 2010 8:21 am
by helen2000
Hi Mr. Bill,

saved in a library in the SYSPROC DD concatenation of your TSO session

could you give me detail code if my macro named mp.eb39.source(chyear)? :? thanks in advanced,

Helen

Re: how to enter the edit macro without clist&rexx

PostPosted: Sat Mar 20, 2010 10:03 am
by dick scherrer
Hi Helen,

Look at which datasets are part of your SYSPROC definition. Then copy your macro into the test library (assuming there is one) available to developers. If you are not clear about the libraries, suggest you talk with someone in system support for your system and find out where you can put your macro.

As a short-term work around, you might consider using ALTLIB. To learn about ALTLIB, enter the command:
TSO HELP ALTLIB

Re: how to enter the edit macro without clist&rexx

PostPosted: Mon Mar 22, 2010 8:13 pm
by helen2000
Hi, Mr. Dick

I tried the macro, it works well, but exist a error message.
      8 +++  EXIT CODE(0)                         
 Error running CHYEAR, line 8: Routine not found   
 ***                                               


this is my source macro:
 000001     ISREDIT MACRO PROCESS             
 000002        ISREDIT C MP0 MP1 ALL           
 000003        ISREDIT C DB0 DB1 ALL           
 000004        ISREDIT C IT0 IT1 ALL           
 000005        ISREDIT C HD0 HD1 ALL           
 000006        ISREDIT C HG0 HG1 ALL           
 000007        ISREDIT FIND 'Y/E' FIRST       
 000008        EXIT CODE(0)               
 ****** **************************** Bottom of

could you explain for me, thanks,

Helen

Re: how to enter the edit macro without clist&rexx

PostPosted: Mon Mar 22, 2010 8:25 pm
by MrSpock
EXIT is not a valid CLIST instruction. Get rid of that line.

Re: how to enter the edit macro without clist&rexx

PostPosted: Mon Mar 22, 2010 11:14 pm
by helen2000
but this line is from manual, please reference the link: why it didn't work? thx, Mr. MrSpock
http://publibz.boulder.ibm.com/cgi-bin/ ... 1211170344