but it changes constantly, got to take the snapshot to see it.
--- On Fri, 7/29/11, Paul Gilmartin <[email protected]> wrote: > From: Paul Gilmartin <[email protected]> > Subject: Re: REXX code on JES2 > To: [email protected] > Date: Friday, July 29, 2011, 12:15 PM > On Thu, 28 Jul 2011 16:39:13 -0700, > Cris Hernandez #9 wrote: > > >First thing I would do is figure out which statement is > causing the error. > >I use a simple > > > >lc = RC > > > >to capture the return code from all commands & > calls (like ALLOC, EXECIO, FREE, etc.), then code: > > > Why "capture" RC? It's not going to escape. > > >IF lc <> 0 THEN DO > > SAY 'Error performing xxxxxxxx. last RC =' lc > > EXIT lc > >END > > > In fact, why not simply "signal on Error"? > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access > instructions, > send email to [email protected] > with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

