how to enter the edit macro without clist&rexx



IBM's Command List programming language & Restructured Extended Executor

how to enter the edit macro without clist&rexx

Postby helen2000 » Fri Mar 19, 2010 1:56 am

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
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Fri Mar 19, 2010 2:24 am

Hi Helen,

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

Possibly an example would help?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby helen2000 » Fri Mar 19, 2010 11:57 pm

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.
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Mar 20, 2010 12:29 am

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,
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Bill Dennis » Sat Mar 20, 2010 1:54 am

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby helen2000 » Sat Mar 20, 2010 8:21 am

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
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Mar 20, 2010 10:03 am

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
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby helen2000 » Mon Mar 22, 2010 8:13 pm

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
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby MrSpock » Mon Mar 22, 2010 8:25 pm

EXIT is not a valid CLIST instruction. Get rid of that line.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

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

Postby helen2000 » Mon Mar 22, 2010 11:14 pm

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
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post