So, you would do it like this: ISPEXEC EDIT DSN(BLAHBLAH) MACRO(START)
In START: ISREDIT MACRO ISREDIT EICUPDT 5 ISREDIT END The initial macro has to call the EICUPDT macro. Joe On Thu, Aug 6, 2020 at 6:48 PM Joe Monk <joemon...@gmail.com> wrote: > It is a REQUIREMENT that when you run ISREDIT in BATCH, the INPUT TO > ISREDIT MUST BE SUPPLIED BY A MACRO. > > So, when your REXX exec launches ISREDIT, it must supply all of the input > to ISREDIT VIA A MACRO. > > Joe > > On Thu, Aug 6, 2020 at 6:18 PM Steely.Mark <steely.m...@aaa-texas.com> > wrote: > >> Thanks for the ISREDIT END suggestion. >> >> I did add that - but the process is not executing the macro. >> >> So that is not the problem. >> >> Thanks >> >> >> >> -----Original Message----- >> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf >> Of Joe Monk >> Sent: Thursday, August 06, 2020 5:57 PM >> To: IBM-MAIN@LISTSERV.UA.EDU >> Subject: Re: Edit Macro >> >> ATTENTION: This e-mail came from an external source. Do not open >> attachments or click on links from unknown or unexpected emails. >> >> >> Well... >> >> The first thing youve got to do is fix your edit macro. When you run an >> edit macro in batch, it has to end with "ISREDIT END". >> >> So, you might have two different versions, one for batch and one for >> online. >> >> Second, when you run ISREDIT in batch, you have to use a macro to supply >> the input. So, you'll probably need to rethink how youre invoking ISREDIT >> in batch. >> >> Joe >> >> >> >> On Thu, Aug 6, 2020 at 5:40 PM Steely.Mark <steely.m...@aaa-texas.com> >> wrote: >> >> > Send again hope it keeps the formatting. >> > >> > I have this edit macro EICUPDT: >> > >> > ********************************* Top of Data **** ISREDIT MACRO >> > (NUM1) ISREDIT COPY EICLIST 20 20 BEFORE 1 ISREDIT COPY EICLIST &NUM1 >> > &NUM1 BEFORE 1 >> > EXIT: + >> > EXIT CODE(0) >> > ******************************** Bottom of Data ** >> > >> > When I am in a edit member session and I enter this command "EICUPDT 3" >> > from the command line the Macro works as expected. All this does is >> > copy 2 lines from EICLIST. It always copies line 20 but I supply a >> > number for the other line to copy. >> > >> > I am trying to execute this in batch. I have done this in the past but >> > I never needed to pass a parm. >> > >> > //TSOBTCH1 EXEC PGM=IKJEFT01 >> > //SYSTSPRT DD SYSOUT=* >> > ....... >> > //SYSTSIN DD * >> > PROFILE PREFIX(xxxxxx) >> > ISPSTART CMD(%EDITREX1 XXX0111.DATA(DATAXX) - EICUPDT PARM(1)) >> > /* >> > //* >> > >> > Here is EDITREX1: >> > ********************************* Top of Data >> > ***************************** >> > /* REXX */ >> > TRACE IR >> > /* ------------------------------------------------------------------ >> > */ >> > /* All REXX reserved words are shown in CAPS and all user */ >> > /* defined variables are shown in 'lower case'. */ >> > /* ------------------------------------------------------------------ >> > */ PARSE ARG filename macro1 macro2 ADDRESS ISPEXEC "EDIT >> > DATASET('"filename"') MACRO("macro1") "macro2 >> > ******************************** Bottom of Data >> > *************************** >> > >> > I added macro2 to accept the parm value. >> > >> > This is the results: >> > >> > >O> "EDIT DATASET('XXX0111.DATA(DATAXX)') MACRO(EICUPDT) >> > PARM(1)" <--- This is the last line that the trace produced >> > ISRP124 Macro parameter error -/-The parameter specified by PARM >> > keyword of the EDIT service could not be resolved. >> > READY >> > >> > I have tried several different ways. Too many to show here. >> > >> > Any help would be appreciated. >> > >> > Thank You >> > *** Disclaimer *** >> > This communication (including all attachments) is solely for the use >> > of the person to whom it is addressed and is a confidential AAA >> communication. >> > If you are not the intended recipient, any use, distribution, >> > printing, or copying is prohibited. If you received this email in >> > error, please immediately delete it and notify the sender. >> > >> > ---------------------------------------------------------------------- >> > For IBM-MAIN subscribe / signoff / archive access instructions, send >> > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> > >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, send >> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> >> *** Disclaimer *** >> This communication (including all attachments) is solely for the use of >> the person to whom it is addressed and is a confidential AAA communication. >> If you are not the intended recipient, any use, distribution, printing, or >> copying is prohibited. If you received this email in error, please >> immediately delete it and notify the sender. >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN