Getting Started
Data supports the execution of RPGLE code outside AS400 using its internal RPGLE interpreter Jariko.
RPGLE development does not involve the creation of a micro executor because they are interpreted by standard component .
RPGLE sources are are located into JASRC folder and their related /COPY into QILEGEN of a source library.
To properly use RPGLE code in Data to handle the fun execution you can import specific RPGLE /COPY like:
QILEGEN/£UIBDS: Contains the fun interface as*ENTRYQILEGEN/£JAX_D: Contains the declaration of routine to emit Data StructuresQILEGEN/£JAX_C: Contains the routines to emit Data Structures
Hello World example
JASRC/HELLO_WORLD.rpgle
*--------------------------------------------------------------------------------------------*
D/COPY QILEGEN,£JAX_D
*--------------------------------------------------------------------------------------------*
* M A I N
*--------------------------------------------------------------------------------------------*
C EXSR £JAX_IMP0
C EVAL £JAXD1='Hello World'
C EXSR £JAX_ADDO
C EXSR £JAX_FIN0
*
C SETON LR
*--------------------------------------------------------------------------------------------*
C/COPY QILEGEN,£JAX_C
*--------------------------------------------------------------------------------------------*
To see the result you can execute the fun F(TRE;HELLO_WORLD;) pasting it in the frontend search bar and press ENTER.