How do I debug a PL/I OPM program on IBM i

25 pts.
Tags:
IBM i
ILE
I wrote a simple PL/I program which output to stream file SYSPRINT.
It was compiled with the command CRTPLIPGM, like:
CRTPLIPGM PGM(MYLIB/STMF) SRCFILE(MYLIB/QPLISRC)
I see the generated program type is OPM. Then start debug session:
STRDBG MYLIB/STMF OPMSRC(*YES) DSPMODSRC(*YES)
But I didn't see anything about source code statement lines, but see a message line: (source not available.) I have checked the CRTPLIPGM options, and tried many times but no luck. I just want debug this program statement by statement like debugging ILE program. Please help me out of the trouble. Thanks in advance.


Software/Hardware used:
IBMi V7R1

Answer Wiki

Thanks. We'll let you know when a new response is added.

When starting you debug session if you did not specify a program you need to add one using the Add Program Command  (ADDPGM).

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • GregManzo
    We don't have the PL/I compiler, so I can't check this, but I suspect if you tried creating it as an ILE pgm the debugger would show you what was going on. Try to find an ILE version of the CRTxxxPGM command.
    1,720 pointsBadges:
    report
  • Ray1944
    The CRTPLIPGM is a command, it calls program QPLI/QPCPLIC, 
    It seems like an OPM program, here are details:
    Program creation information:                                                
      Program creation date/time . . . . . . . . . . . :   01/09/08  17:36:40    
      Type of program  . . . . . . . . . . . . . . . . :   OPM                   
      Source file  . . . . . . . . . . . . . . . . . . :                         
        Library  . . . . . . . . . . . . . . . . . . . :                         
      Source member  . . . . . . . . . . . . . . . . . :                         
      Source file change date/time . . . . . . . . . . :                         
      Observable information . . . . . . . . . . . . . :   *UNOBS                
      User profile . . . . . . . . . . . . . . . . . . :   *USER                 
      Use adopted authority  . . . . . . . . . . . . . :   *YES                  
      Fix decimal data . . . . . . . . . . . . . . . . :   *NO                   
      Teraspace enabled  . . . . . . . . . . . . . . . :   *YES                  
                                                                                 
                                                                         
     Program statistics:                                                 
       Number of parameters . . . . . . . . . . . . . . :   0       17   
       Program size (bytes) . . . . . . . . . . . . . . :   40960        
       Associated space size (bytes)  . . . . . . . . . :   0            
       Static storage size (bytes)  . . . . . . . . . . :   0            
       Automatic storage size (bytes) . . . . . . . . . :   512          
       Program state  . . . . . . . . . . . . . . . . . :   *SYSTEM      
       Program domain . . . . . . . . . . . . . . . . . :   *SYSTEM      
       Compiler . . . . . . . . . . . . . . . . . . . . :                
       Earliest release that program can run  . . . . . :   V6R1M0       
       Conversion required  . . . . . . . . . . . . . . :   *NO          
       Conversion detail  . . . . . . . . . . . . . . . :   *COMMON      
       Sort sequence  . . . . . . . . . . . . . . . . . :   *HEX         
                                                                         
                                                                                 
       Language identifier  . . . . . . . . . . . . . . :   *JOBRUN              
     Program performance information:                                            
       Optimization . . . . . . . . . . . . . . . . . . :   *OPTIMIZE            
       Paging pool  . . . . . . . . . . . . . . . . . . :   *BASE                
       Update PASA  . . . . . . . . . . . . . . . . . . :   *UPDPASA             
       Clear PASA . . . . . . . . . . . . . . . . . . . :   *CLRPASA             
       Paging amount  . . . . . . . . . . . . . . . . . :   *BLOCK               
    25 pointsBadges:
    report
  • Ray1944
    I don't know how to get CRTPLIPGM version.
    25 pointsBadges:
    report
  • Splat
    Try GO CMDDBG & see if there are any options there that pertain to PL/I.  
    11,195 pointsBadges:
    report
  • azohawk
    I recall that at a previous employer when we went to v6.1 we had a terrible time getting a PL/I complier for the release. We had 5 systems in different locations that because of some application had to all be on the same OS. We had to delay the upgrade until they could find a compiler. All the PL/I was written and compiled at one location and distributed to the rest of us. I know that there was a separate cost for the compiler and may have had to come from a 3rd party source. So I wonder how much IBM is supporting PL/I code anymore and that might part of your issue.
    2,745 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: