IBM i Global

 View Only
  • 1.  Generating QR codes on IBMi

    Posted Mon August 28, 2023 10:56 AM

    Hello team,

    Please guide on how to get started generating QR codes on IBMi in a COBOL ILE/RPG ILE or Java environment. Any detailed howto or pointers to examples and documentation would be welcome.

    Thank you.



    ------------------------------
    Thomas Varkey
    ------------------------------



  • 2.  RE: Generating QR codes on IBMi

    IBM Champion
    Posted Mon August 28, 2023 11:16 AM

    Easiest way to generate QR codes on IBM i is Python in PASE.
    Recommend you create a virtual environment and activate it, then:

    pip install qrcode
    qr --output=myqrcode.png 'the data for the qr'

    You can load your virtual environment and call the qr command from CL easily using IBM Champion @Richard Schoen's open source QshOni.



    ------------------------------
    Jack Woehr
    IBM Champion 2021 - 2023
    IBM Qiskit Advocate
    ------------------------------



  • 3.  RE: Generating QR codes on IBMi

    Posted Tue August 29, 2023 02:46 AM

    Thank you Jack for your update. Is there some details you could share for the same in COBOL ILE/RPG ILE or Java environment.



    ------------------------------
    Thomas Varkey
    ------------------------------



  • 4.  RE: Generating QR codes on IBMi

    IBM Champion
    Posted Tue August 29, 2023 06:20 AM
    Edited by Satid Singkorapoom Tue August 29, 2023 06:20 AM

    Dear Thomas

    Please look into these two links :

    Create a QR code and email as an attachment from the IBM i at  https://novagem.co.uk/create-a-qr-code-and-email-as-an-attachment-from-the-ibm-i/

    QR Barcode Printing using RPG and DDS - tech tip at  https://www.mcpressonline.com/forum/forum/programming/rpg/18338-qr-barcode-printing-using-rpg-and-dds-tech-tip



    ------------------------------
    Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
    ------------------------------
    Satid S.
    ------------------------------



  • 5.  RE: Generating QR codes on IBMi

    Posted Mon November 06, 2023 12:29 AM

    Thank you Satid.



    ------------------------------
    Thomas Varkey
    ------------------------------



  • 6.  RE: Generating QR codes on IBMi

    IBM Champion
    Posted Wed August 30, 2023 11:40 AM

    As Jack mentioned: Install the Python QR code generator app and call it with the QSHEXEC CL command from RPG or CL and even COBOL.  QR code generation complete.

    QSHONI/QSHEXEC CMDLINE('qr  --output=/tmp/myqrcode.png  "This is my QR Code"') 



    ------------------------------
    Richard Schoen
    ------------------------------



  • 7.  RE: Generating QR codes on IBMi

    Posted Mon November 06, 2023 12:30 AM

    Thank you Richard.



    ------------------------------
    Thomas Varkey
    ------------------------------



  • 8.  RE: Generating QR codes on IBMi

    Posted Mon November 20, 2023 10:32 AM

    Hello Jack,

    We installed python 3.4.10 on IBM i. In this environment, IBM i doesn't talk to internet and there is no repo server configured. 

    How do we achieve the qrcode module install using pip install qrcode ? Please suggest. 

    Best regards,

    Vinit Kumar



    ------------------------------
    Vinit Kumar
    ------------------------------



  • 9.  RE: Generating QR codes on IBMi

    IBM Champion
    Posted Mon November 20, 2023 10:51 AM

    I would recommend uninstalling that version which is part of the deprecated 5733OPS.

    This link should help you resolve offline installation:

    https://ibmi-oss-docs.readthedocs.io/en/latest/yum/README.html



    ------------------------------
    Richard Schoen
    Owner/President
    MobiGoGo LLC
    Minneapolis MN
    612-315-1745
    ------------------------------