How can i Find The RPG-Source Line Based On the Job Log Source Number?

Posted on 2009-04-21
Last Modified: 2013-12-06
Hello All,
I have the Job Log for one RPG PGM, Which i am seeing  Source number 273
Decimal Data Error, But when i check the The RPG PGM the actual Source number
is commanted,

This is the Production Program I cannot compile this PGM also, is ther is any way
to find actual Source line based on this MSG.

TIA- Oramcle
Question by:Oramcle
    LVL 34

    Accepted Solution

    By default, RPG error messages contain the compiler listing line number, not the source line number.  The programmer can change this behavior by compiling with OPTION(*SRCSTMT).

    Compile the program using OPTION(*NOGEN) to generate a listing without actually generating a compiled object.

    - Gary Patterson
    LVL 16

    Expert Comment

    by:theo kouwenhoven
    Hi Oramcle,

    Yep Gary is right, or just compile it in QTEMP to get the compiler listing.


    Author Closing Comment

    Many Thanks.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now