× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Your CLP is not restarting itself, your RPG program is calling it again or something is calling the RPG again. Somewhere upstream your job is looping when it shouldn't. Some control variable is probably not being initialized correctly, or is being left uninitialized when it needs to be initialized. I call this an initialization error.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----"Hayes, Daniel" <Daniel.Hayes@xxxxxxxxxxxxxxx> wrote: -----
To: "RPG programming on the IBM i (AS/400 and iSeries)" <rpg400-l@xxxxxxxxxxxx>
From: "Hayes, Daniel" <Daniel.Hayes@xxxxxxxxxxxxxxx>
Date: 06/28/2016 09:56AM
Subject: RE: I have an anomaly, please explain to me. **External Email**


Mark,

Thanks for the reply.

There is no initialization in the RPG, no parms passed, and I listed the entire CL Program.

The cl program ends and then about a tenth of a second later it starts over, at the first executable statement.

Even if the RPG program was doing some initialization, how can the CL start again, on its own?

The CL was called when LR was on in the RPG, so when it returns the RPG should end, that is the last code in the MAIN section, subroutines start on the next line.

Danny Hayes | Sr JDE Developer - IT | 813 901-2150 x133154

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark Murphy/STAR BASE Consulting Inc.
Sent: Tuesday, June 28, 2016 9:06 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: I have an anomaly, please explain to me. **External Email**

Well, apparently it can happen. You haven't given us enough of the program to see the issue. Since it is an intermittent problem, I would suspect an initialization error in the RPG. Debug the loop surrounding the call to J04572CCX and you should find it.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----"Hayes, Daniel" <Daniel.Hayes@xxxxxxxxxxxxxxx> wrote: -----
To: "rpg400-l@xxxxxxxxxxxx" <rpg400-l@xxxxxxxxxxxx>
From: "Hayes, Daniel" <Daniel.Hayes@xxxxxxxxxxxxxxx>
Date: 06/28/2016 08:41AM
Subject: I have an anomaly, please explain to me.


I have an issue happening that cannot happen.

The CL program listed below, on occasion, not frequently, does what the partial joblog below is showing.

It is called from an RPG program when LR is on.

In this particular instance the CL program Ends then 0.147576 Seconds later it begins on line 34.02 again.

This CL is ONLY called from this RPG program, nowhere else on the system.


P04572 - RPG (Relevant segments)
MOD05I 'J04572CCX ' C @@CCX
...
MOD05C* Write Check Information record for Carecentrix
MOD05C *INLR IFEQ *ON
MOD05C CAREC IFEQ 'YES'
MOD05C CALL @@CCX
MOD05C ENDIF
MOD05C ENDIF

J04572CCX - CLP (Entire Program)
PGM

/* Backup check files */
CPYF FROMFILE(*LIBL/F04572) +
TOFILE(*LIBL/F04572BK) MBROPT(*REPLACE) +
CRTFILE(*YES)
CPYF FROMFILE(*LIBL/F04573) +
TOFILE(*LIBL/F04573BK) MBROPT(*REPLACE) +
CRTFILE(*YES)

/* Write records to F55061 from F04573 */
CALL PGM(P04572CCX)

/* Create an extract file for CareCentrix */
CALL PGM(J55061) PARM('N')

ENDCLPGM: ENDPGM

JOBLOG from run in question;
06/27/16 08:19:47.497464 QCLRTNE QSYS 0058 J55061 CCXJDEOBJ *STMT
Statement . . . . . . . . . : 17400
Message . . . . : - RETURN /* RETURN due to end of CL program
*/
06/27/16 08:19:47.497568 QCLRTNE QSYS 0058 J04572CCX CCXJDEOBJ 0025
Message . . . . : - RETURN /* RETURN due to end of CL program
*/
06/27/16 08:19:47.645144 QCADRV QSYS 03C4 J04572CCX CCXJDEOBJ 000D
Message . . . . : 3402 - CPYF FROMFILE(*LIBL/F04572)


Daniel E. 'Danny' Hayes
Senior JD Edwards Developer
813 901-2150 x133154
[cid:image001.png@01D1D110.0FEFF100]
9119 Corporate Lake Drive | Tampa Florida 33634 | www.carecentrix.com<http://www.carecentrix.com/>


________________________________
This communication is intended only for the use of the individual or entity named as the addressee. It may contain information which is privileged and/or confidential under applicable law. If you are not the intended recipient or such recipient's employee or agent, you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited. If you have received this communication in error, please immediately notify CareCentrix Compliance Hot Line at (877) 848-8229 and notify the sender by electronic mail. Please expunge this communication without making any copies. Thank you for your cooperation.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.