Congratulations!! Now you have your first IceBreak server up and running. Now it is time to make it work for you.
One of the key features is to use RPG (or any other ILE language) as a host language for running web application. The key concept is the server root path on the IFS and the application library where the program object is stored.
If we first take a look at the server root path, then you will see something similar to:
The webConfig.xml contains a list of runtime properties for the web application. Where to upload files, routing, hives among other advanced features. The features are described within the webConfig.xml.
This is the file you are reading right now
Is a folder for temporary data, it is a work folder for compiler, sessions, and images.
This is compiler support and development support for Microsoft vsCode environment. It is a free alternative to Microsoft Development studio. Please fell free to download it from here:
https://code.visualstudio.com/
When installed then search for RPG in vsCode extensions to get full edit and compile support for ILE rpg.
The system folder contains shared resources between server instances along with system resources. Note: The system folder is a symbolic link to the /IceBreak/system folder, so do not delete any files with in it. Rather disable the system folder hive in the webconfig.xml file.
Simply paste this into you editor, and save it as "hello.rpgle" on server root path.
<%@ language="RPGLE"%>
<%
ctl-opt main(sayHello);
dcl-proc sayHello;
dcl-s message varchar(256);
// Get the data from the URL
message = qryStr('message');
// Send the response back
%>Hello world. <%= message %>, time is <%= %char(%timestamp())%><%
end-proc;