• Subject: RE:
  • From: Ragnar Torfi Geirsson <Rato@xxxxxxx>
  • Date: Wed, 28 Apr 1999 16:19:02 -0000

Here what I have done in the past when using RPG/400 programs with /copy
(RPT programs)


When RPT programs are compiled, they are first precompiled into temporary
file wich disappears after the compile.  The task is to recreate this
temporary file.


1. Made sure the member type is RPT
2. Created SRCPF called mylib/QAUTOSRC (any name will do) if it wasn't there
already.
3. When compiling the program using CRTRPTPGM I specify
OUTFILE(mylib/QAUTOSRC) OUTMBR(mbrname) 
        If I just want to regenerate the member I also specify
RPTOPT(*nocompile)
        This will generate a member wich looks like the temporary source
file used to create the object.
4. start debug using STRISDB using SRCMBR(mbrname) SRCF(*LIBL/QAUTOSRC).
        This will run the program in debug mode displaying the temporary
source in the debugger.
        When you start STRISDB it will tell you that src date and time don't
match the object but usually it does not matter.



Ragnar Torfi


> -----Original Message-----
> From: Roberto Gomes [SMTP:rgomes5@hotmail.com]
> Sent: Wednesday, April 28, 1999 11:29 AM
> To:   RPG400-L@midrange.com
> Subject:      
> 
> SP,28/04/99, br
>  - My question is very simple. I need to know how to debbug a 
> COPY FILE when it is part of the program.
> Example:
> I whish to know how to debbug the EXSR.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  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.