I think your map and exec statements are messing things up.  You don't need both. Also, the extension on the URL must be ,REXX (case shouldn't matter, but you DO need to X characters in REXX).

Try the following:
If you prefer to not put .REXX in the URL, change the exec and URL:
Finally, I'll add that CGIDEV (CGIDEV2's precursor) included REXX templates and supporting programs.  Very few people used the REXX support, most likely because:
  • AS/400 / iSeries REXX is very weak compared to other REXX implementations, especially in I/O.
  • Because REXX is interpreted, it doesn't perform as well as compiled RPG IV or ILE COBOL. It was particularly slow back on CISC AS/400s, which comprised most of the AS/400 installed base during CGIDEV's days.  The RISC implementation is much faster, but still not as fast as compiled code.
  • Not many people know REXX well enough to use it for CGI.
For these reasons, I removed REXX support when I developed CGIDEV2.  Your's is the first REXX CGI programming question to appear in the EASY400Group. And, I don't recall receiving any such questions from anywhere else either.

It's okay to use REXX for simple CGI tasks or for educational purposes, but I wouldn't recommend its use beyond that.

Mel Rothman, CGIDEV2 Author
Mel Rothman, Inc.


[EMAIL PROTECTED] wrote:

HI,

I'm trying to execute a rexx procedure from web browser, but i didn't success it. Can someone explain how-to?

I'm using IBM http server (original) on a model 270 Iseries system with V5R1.

here is my http config;

00010     #                                                      
00020     Map  /mis/*       /webmis/*                            
00030     Map  /kod/*       /webmis/scripts/*                    
00040     Map  /resim/*     /webmis/images/*                      
00050     Map  /rexx/*.rex  /QSYS.LIB/WEBMISLIB.LIB/QREXSRC.FILE/*.mbr
00060     #                                                      
00070     Pass /webmis/*                                          
00080     Pass /QSYS.LIB/WEBMISLIB.LIB/*                          
00090     #                                                      
00100     Exec /misp/* /QSYS.LIB/WEBMISLIB.LIB/*  %%EBCDIC%%
00110     Exec /rexx/* /QSYS.LIB/WEBMISLIB.LIB/QREXSRC.FILE/*
00120     AddType .js application/x-_javascript_ 8bit              
00130     #                                                      
00140     #---- CCSID for server jobs                            
00150         DefaultFsCCSID  1026                                
00160         DefaultNetCCSID 1254                                
00170     #                                                      
00180         enable get                                          
00190         enable post                                        
00200     AlwaysWelcome On                                        
00210     Welcome Welcome.html
00220     #                    


here is my test.rex in /QSYS.LIB/WEBMISLIB.LIB/QREXSRC.FILE

 SEU==>                                                                          
 FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...
        *************** Beginning of data ****************************************
0001.00 SAY "Content-type: text/html"                                            
0002.00 SAY "0A"x                                                                
0003.00 SAY "0A"x                                                                
0004.00 SAY "<HTML><HEAD><TITLE>REXX TEST</TITLE></HEAD><BODY>"                  
0005.00 SAY "<h1>Hello from REXX</h1>"                                            
0006.00 SAY "<br>serdar erdem"                                                    
0007.00 SAY "</BODY></HTML>"                                                      
0008.00 RETURN                                                                    
        ****************** End of data *******************************************

when I try the url "http://mySystem/rexx/test.rex" in IE browser session following page appears.
SAY "Content-type: text/html" SAY "0A"x SAY "0A"x SAY "" SAY "

Hello from REXX
" SAY "
serdar erdem" SAY "" RETURN


And I see exactly the same my test.rex source when I select "Show source" in browser.


With by best regards, thank you.
Serdar Erdem



YAHOO! GROUPS LINKS




Reply via email to