Submitted by Anonymous (not verified) on Sat, 07/01/2006 - 00:00
Forums

How do I create my first ASP-Program with IceBreak?

Bent Rønne

Sat, 07/01/2006 - 00:00

Open any text editor (e.g. notepad) and put the following text into it:

   <% /free
    *inlr = *ON;
 %>Hello world. Time is: <%= %char(%timestamp) %> 

Save the file at the iSeries IFS as /www/MY_FIRST/hello.asp

Open your browser and enter the url: http://MyIseries:7001/hello.asp

This will compile your source and show the result "Hello world. Time is: 20yy-mm-dd-hh.mm.ss.iiiiii"

The compiler postlist is shown if you make typos. Then just fix the error in the editor - save - and redisplay.

The same program in Fixed format RPG looks like:

  <html>
  Hello world. Time is: <%= %char(%timestamp)%>
 </html>
 <%
 c*ln01factor1+++++++opcode&extfactor2+++++++result++++++++len++d+hiloeq
 ....comments++++++++++++
  C                   SETON                                        LR 

You can find more program samples at: http://www.icebreak.org/tutorials.htm


Have Fun!