Re: front end RPG MI program
"Rich Hart" <[email protected]> Thu, 16 Aug 2007 08:54:18 -0500
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Message-ID | <000701c7e00c$f0c2b4f0$030fa8c0@NORIHART> |
Emil, I concur with what Kaare says. It is not always easy to decipher an MI compiler listing (or "translator" if you will), but there are several options on the "Create MI Program" API that make it easier (which are also options on Leif's CRTMIPGM command). By the way, there should be a printout associated with the job in which you ran the CRTMIPGM command, which would be output from the API. That should show the line number in the source MI program where the compiler finds the error. Again, I suspect it would be line one. Rich ----- Original Message ----- From: "Kaare Plesner" <[email protected]> To: "'MI Programming on the AS400 / iSeries'" <mi400-Zwy7GipZuJhWk0Htik3J/[email protected]> Sent: Thursday, August 16, 2007 8:31 AM Subject: Re: [MI400] front end RPG MI program Hello Emil, Explanation of below error message CPF6301: As I understand it, the original purpose of the MI translator was to translate (= compile) the IRP code generated by high-level compilers like COBOL and RPG. Therefore, if the MI-translator finds an error in the input, the thought is that it must be caused by an error in the COBOL or RPG compiler that generated the input to the MI translator. Hence the message text "Probable compiler error". Therefore, CPF6301 does NOT mean that there is an error in the MI "compiler", which IBM prefers to call translator (so that it is not confused with high level language compilers). If you write your own MI program and get CPF6301 then you can remain assured that YOU caused the error yourself. Look in the source listing of your MI program, and you will probably find the error messages. If not then they will be in your job log. Good luck! Kaare Plesner iPerformance ApS Denmark www.giapa.com -----Original Message----- From: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of [email protected] Sent: Thursday, August 16, 2007 1:15 PM To: mi400-Zwy7GipZuJhWk0Htik3J/[email protected] Subject: Re: [MI400] front end RPG MI program Hi Rich, here u have the logs when I run the RPG crtmipgm programm: ID message . . . . . . : CPF6301 GravitĂ© . . . . . . . : 40 Type de message . . . : ArrĂȘt programme Date d'envoi . . . . . : 16/08/07 Heure d'envoi . . . . : 13:06:05 Message . . . . : Intermediate representation of program (IRP) contains 6 errors. Probable compiler error. Cause . . . . . : A syntax error was detected during analysis of IRP text. Recovery . . . : No recovery. Report the problem (ANZPRB command). ----Message d'origine---- >De: "Don" <dr2-8VsyYNX/[email protected]> >A: "'MI Programming on the AS400 / iSeries'" <mi400-Zwy7GipZuJhWk0Htik3J/[email protected]> >Date: Thu, 16 Aug 2007 01:03:02 -0400 >Sujet: Re: [MI400] front end RPG MI program > >Damn. When he said it was off list I though he was going to say something >interesting...like Jill Hennesey's home phone # or perhaps how the new v6r1 >stuff works under the covers... > >Yes boys and girls, when you goto v6r1 the conversions going to be kinda >like going from CISC to RISK - on a conceptual basis...they've redone a >lot...but the conversion instructions are a lot smaller than the NY city >phone book...:) > >OH! And, then there's blade....finally...just when the product is about to >die... :) > >Nite... > >Don in DC > >============================================ > >-----Original Message----- >From: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On >Behalf Of Rich Hart >Sent: Wednesday, August 15, 2007 7:15 PM >To: MI Programming on the AS400 / iSeries >Subject: Re: [MI400] front end RPG MI program > >Hi Emil, > >This is a private reply to you, "off list" for now. > >As you might have noticed, the MI list is about dead. Everybody wants to >master Java and C# now, including myself. > >Since I am unemployed right now (due to a choice to move away from my dream >job back to my family), I can help you with the errors if you like. Sounds >like RPG errors; I have *lots* of experience in that. On the MI side, I am >not an expert, but have at least mananged to compile and run every MI >program that I have tackled. Nothing too fancy. And of course, getting the > >MI precompiler part to work should be no problem. > >MI is a useful exercise in understanding a bit better how the iSeries works >"under the covers", but it's probably not a practical business skill >anymore! Fun though. > >Let me know if you want my help. A text file of your Error log would be a >good start. > >thanks > >Rich Hart >[email protected] > >----- Original Message ----- >From: "emilnico" <[email protected]> >To: <mi400-Zwy7GipZuJhWk0Htik3J/[email protected]> >Sent: Wednesday, August 15, 2007 3:23 PM >Subject: [MI400] front end RPG MI program > > >> Hi folks, >> I copy and past the RPG front-end MI compiler of Leif Svalgaard. >> When I run it on an V5R3 Os I have 5 errors without logs. >> Have u an idea ? >> Thanks. >> _______________________________________________ >> This is the MI Programming on the AS400 / iSeries (MI400) mailing list >> To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] >> To subscribe, unsubscribe, or change list options, >> visit: http://lists.midrange.com/mailman/listinfo/mi400 >> or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] >> Before posting, please take a moment to review the archives >> at http://archive.midrange.com/mi400. >> >> > >_______________________________________________ >This is the MI Programming on the AS400 / iSeries (MI400) mailing list >To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/mi400 >or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] >Before posting, please take a moment to review the archives >at http://archive.midrange.com/mi400. > > > >_______________________________________________ >This is the MI Programming on the AS400 / iSeries (MI400) mailing list >To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/mi400 >or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] >Before posting, please take a moment to review the archives >at http://archive.midrange.com/mi400. > > ------------------------------------------------------------- Noos, votre bureau virtuel sur Internet : Mail... Web : webmail.noos.fr _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400. _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400. _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.