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



I bet if you wanted all the aspects of your program in one source member you
could take Scott's idea....and take it even farther...
  How about....
    You have Section Identifiers:
        Section Name: Acct1
         Type of Code: CL, RPG, DDS, PRTF
         Library List to Compile with: XXX,XXXXX,XXXXX
         Where to Put Compiled Object:
 
And then you could have an interactive program to give you a subfile with
all these parts, and then you could recompile all or by section if your
dealing with files, or when it comes to editing it would copy out the
portion, and send it to qtemp, and fire up SEU on the extracted portion of
code.  Look at the before and after creation date on the edited code, and if
it changed  over write it back into the big source code module.
      
In my environment this setup would not be very appreciative, but it's a
concept....

my 2 cents...
tim 

> -----Original Message-----
> From: John P Carr [SMTP:jpcarr@tredegar.com]
> Sent: Monday, August 09, 1999 6:54 PM
> To:   RPG400-L
> Subject:      Re: imbedded CL in RPG
> 
> Scott 
> 
> Now you are getting close to what I wanted from Toronto in the following.
> 
>       CL      BEGCL
> CL    SNDPGMMSG XXXXXXXXXXXXX
> CL    MONMSG(CPFXXXX)
> CL            ENDCL
> 
> Since Hans was going to include a monitoring capability to RPG, 
> I thought that they could purcolate the error up.  I wanted THEM
> do something like what you described below.    The other various
> ways of doing a prototyped QCMDEXEC doesn't handle the "True" 
> CL message handling etc.  (As you stated)
> Since Rochester will NEVER give us logic control in CL (subroutines, when,
> if, dou, etc)
> I thought this way I could kinda wrap RPG logic control statements
> "Around" 
> my CL program elements.  
> John Carr
> -------------------------------------------
> Scott Klement said;
> <SNIP>
> >How about having seperate sub-procedures for your CL commands, in
> >other words, each subprocedure would need to be labelled as either
> >RPG or CL.
> >
> >Then, a simple program... a "preprocessor" if you will...  could be
> >written to do the following:
> >          1) Seperate each CL "sub-procedure" into its own source
> >                  member in a file in QTEMP.
> >          2) Seperate the RPG source into its own source member
> >                   in a file in QTEMP.
> >          3) Compile each RPG & CL module (using CRTRPGMOD and
> >                   CRTCLMOD) individually in QTEMP.
> >          4) Finally, bind them all into a program.
> >
> >This would, effectively, allow you to run CL stuff in the same source
> >member as your RPG program...  Since you can bind modules written in
> >CL to modules written in RPG, this would give you very nearly the same
> >performance and benefits of having the CL embedded.
> >
> >Without losing the convienience of having it all in one source member.
> <SNIP>
> +---
> | 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
> +---END
+---
| 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
+---END



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.