IBM i Global

 View Only
  • 1.  QR Barcode Printing

    Posted Thu November 10, 2022 08:56 AM
    Hi,
    I have to make new programs for QR-barcode printing.
    On top of that it is Swiss QR-code.
    So I applied already SI79287 and SI79289 (for Version V7R3M0).
     
    I made the prtf + rpgle and tested it.
    With my developer user : it works perfectly , everything fine.
     
    When I run the program on another user ... I get errormessage CPD6DF0 : 
     Bar code data did not print correctly due to errors.     
     Exception condition EC_0B00 was detected in the bar code 
     specifications or data.
      EC_0B00 -- The bar code modifier specified is invalid or unsupported for  
    the bar code type specified.                                                
     
    What can this be ??   It's exactly the same Barcode that I want to print : on my developer user , it works perfectly ....
    on another user , I get this error message ? 
    So it has to do something with difference in both usrprf's , I suppose, 
    but what ?? no idea.


    ------------------------------
    Ronny Vliegen
    ------------------------------


  • 2.  RE: QR Barcode Printing

    IBM Champion
    Posted Thu November 10, 2022 08:29 PM
    Edited by Satid Singkorapoom Fri November 11, 2022 06:36 AM
    Dear Ronny

    By "another user", I assume you encounter CPD6DF0 error in the production environment that is separated from the development one. If this is the case, my first guess is that it may be caused by discrepancy between the 2 environments or insufficient authority to access some production objects.   I suggest you check the following things:

    - The status of the 2 PTFs in production environment.

    - Run DSPSFWRSC command in both development and production environments and compare the entries in both lists. If you see any SW product missing from production environment, identify if it has to do with printing or not.  If so, install it (and you may need to apply the 2 PTFs again).

    - Compare the library list of the jobs in development environment against that of the production environment to identify any difference in the entries and their order of appearance and adjust the production list accordingly. (The production job's library list may not have to be exactly the same as the development job's. It can be a superset but it should not be a subset. The order of appearance in library list may also be important.)

    - If the above looks fine, review the production job's log for a few system messages and/or errors that appear right before CPD6DF0 to see if there are additional information before CPD6DF0 that can give you more clues.


    If this "another user" is in the same development environment, please check whether or not this user profile uses a different job description that specifies a different library list.  If this is not the case, the job log of this problematic user profile is the best place you should focus on. Comparing job logs between the two profiles should give you more useful information but please make sure the log contains detailed messages by using CHGJOB  JOB(*) LOG(0 0 *SECLVL) before you run your program.

    If possible, you can upload the job log(s).

    ------------------------------
    Right action is better than knowledge; but in order to do what is right, we must know what is right.
    -- Charlemagne

    Satid Singkorapoom
    ------------------------------



  • 3.  RE: QR Barcode Printing

    Posted Fri November 11, 2022 08:46 AM
    could it be a CCSID between user profiles?

    ------------------------------
    Bryan Dietz
    ------------------------------



  • 4.  RE: QR Barcode Printing

    Posted Mon November 14, 2022 07:11 AM
    Hi there,
    Users are on the same system.
    Libl is OK,
    have the same CCSID.

    The problem is somewhere in authority :
    * Developer user has *allobj auth.   Print is working . Putting it directly to PDF is also working.
    * Normal user has NO *allobj auth .   Print : it prints me a QR code but not a Swiss QR code as it should do.  Putting it directly to PDF : no barcode appears.

    When I give my normal user *allobj auth : Print is working , PDF is working (so = same result as my developer user)

    So there is something not Ok with authority...  but where ? on which object(s) ?


    ------------------------------
    Ronny Vliegen
    ------------------------------



  • 5.  RE: QR Barcode Printing

    IBM Champion
    Posted Tue November 15, 2022 02:16 AM
    Edited by Satid Singkorapoom Tue November 15, 2022 02:26 AM
    Dear Ronny

    Have you looked into the problematic user's job log yet after running the program?  The insufficient authority message is put into the job log when it happens. Please also run the CHGJOB command before running the program as I suggested earlier.

    ------------------------------
    Right action is better than knowledge; but in order to do what is right, we must know what is right.
    -- Charlemagne

    Satid Singkorapoom
    ------------------------------



  • 6.  RE: QR Barcode Printing

    Posted Tue November 15, 2022 03:13 AM
    I checked with IBM yesterday,
    problem is solved 
    QWPZBCIM was the problem.

    ...Case closed...

    ------------------------------
    Ronny Vliegen
    ------------------------------



  • 7.  RE: QR Barcode Printing

    Posted Tue November 15, 2022 08:33 AM
    if you believe it is authority related, you can look thru the audit log for "AF" entries.

    another way is to use Authority Collection.
    Start authority collection - IBM Documentation


    ------------------------------
    Bryan Dietz
    ------------------------------