You can see a sample in:

I did it using CGIDEV2 from (free download)

There are two parts, a RPG program and a "web file" (like the wrkstation


Fdocs_f    IF   E           K DISK    extfile('SIFEN_DATA/DOCS_F')   
Fruc_nced  IF   E           K DISK    extfile('SIFEN_DATA/RUC_NCED') 
D i               s             10i 0                                
D fproc           s               d                                  
d ifshtml         c                   'lista_docu.xhtml'             
 /include sifen/qrpglesrc,cgi_init                                   
  fproc = %date();                                                   
  updhtmlvar('fproc': %char(fproc: *eur));                           
  setll (fproc) docs_f;                                              
  for i = 1 to 100;                                                  
     read docs_f;                                                    
     if %eof(docs_f);                                                
     updhtmlvar('RUC': %subst(cdc: 3: 8) + '-' + %subst(cdc: 11: 1));
     chain (%trimr(%subst(cdc: 3: 8): '0')) ruc_nced;      
     if %found(ruc_nced);                                  
        updhtmlvar('NomEmi': nom_ruc);                     
        updhtmlvar('NomEmi': '**** RUC no esta');          
     updhtmlvar('cdc': cdc);                               
     updhtmlvar('fechaEmi': %subst(cdc: 26: 10));          
     updhtmlvar('ndoc': %char(n_doc));                     

"WS FIle"  There are tree "record formats"  a header used once , the
line ,repeated, and the end of page

<!-- _top -->

<html xmlns="";>





<h2>Documentos Electronicos hasta: /%fproc%/</h2> 











<!-- _linea -->






<td><a href="a_showdoc.asp?ndoc=/%ndoc%/">Kude</a></td> 

<td><a href="a_xml.asp?ndoc=/%ndoc%/">XML</a></td> 


<!-- _fintabla -->



<hr/>Fin de pagina 



El 2019-11-25 a las 17:22, Alan Shore via MIDRANGE-L escribió:
Can you supply code on how to do this?

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Raul Jager
Sent: Monday, November 25, 2019 3:19 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] Re: main difference between expandable and singlepage subfile

Using web you can do simple pages, medium, or sophisticates. Using RPG web is very fast, you will not notice any difference in speed. 

You can translate very easily a subfile program to the web, and have it similar to the green screen.

El 2019-11-25 a las 16:34, Patrik Schindler escribió:

Am 25.11.2019 um 19:49 schrieb Raul Jager <raul@xxxxxxxxxx>:

Since a long time ago I do not have limits in sub file size, nor in the width. I have moved to the web. Highly recommended.
Depends. I'm loving text interfaces very much since they are *quick* and very clear when well designed. A browser, transferring and rendering eye-candy and more or less huge tables is often slower and invites to cram as much information in one page as reasonably possible.

Please note: I'm mostly a hobbyist user but my boss thinks alike and
so I'm developing some tools for inhouse use…

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE -

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support by shopping at with our affiliate link:

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.