× 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.



Mike Schlemme wrote:

>SOS !!!!!
>
>This is a repost, specifically to Barbara Morris, Jon Paris, 
>Gary Guthrie, Mike Cravitz, all other heavies !!

I missed your original post because of the lack of a subject line.  Sorry!
I'm hardly a "heavy", but perhaps I can be of some small assistance.

>I've having a problem, and I need suggestions.  Here are 
>the facts:
>1.  CL program A (called CLA) creates a single work file (called WFx).
>     A.  WFx will be 1 of 6 different formats (called WF1, WF2, etc) 
>           based on logic in CLA.
>2.  RPGLE program A (called RPGA) uses FileA as it's main file.
>     A.  FileA is, in reality, externally defined, containing 20 fields 
>          with a length of 3155.  FileA is, however, internally defined 
>          in RPGA, with a length specified as 3155.
>3.  CLA overrides FileA to WFx LvlChk(*No) and calls RPGA.  
>     4 of the possible 6 WFx's process normally, but with 2 WFx's, 
>     RPGA gives me the following messages: Space offset 
>     X'00000F80' is outside current limit for object WF4 QTEMP WF4.
>     - Function check. MCH0601 unmonitored by RPGA at statement 
>     0000000668, instruction X'0000'.  - Pointer or parameter error (C G D
F).
>     The 'Pointer or parameter error' happens at the 'Read FileA' 
>     statement of RPGA.
>4.  I've checked the obvious things (at least obvious to me).  I've made
>    sure none of the WFx's records formats are larger than FileA, 
>    overrides are in effect when the program was called, etc.
>Any ideas ?

Check the job log for any and all messages.  Nothing is insignificant.
Press F9 and see which program is sending each message
When you say internally defined, are you using I specs? "Based on" data
structure?  External DS and MOVE?  How are you mapping data from the
"generic" FILEA to the individual WFx files?
What else is CLA doing besides CRTPF and OVRDBF?  Is there another program
that manipulates WFx before RPGA?
Which obvious things have you checked?  Parameter list?  Activation group?
Current PTF level?  Batch or interactive (prior overrides?)  Library list
difference between compile and execution (all objects)?
General process is to look at the job / job log, then the CL then the RPG

Buck Calabro
Aptis; Albany, NY
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.