Submitted by Jim T on Sat, 07/28/2012 - 00:00
Forums

Niels,

I have programs that have a .CLP extension. If I try to run one of these under the release V4R04BLD0366 I get page not found. (This did work OK on V2R02BLD0201.)
 
I also changed file MIM00:

                          Display Physical File Member                   
 File . . . . . . :   MIM00               Library  . . . . :   ICEBREAK  
 Member . . . . . :   MIM00               Record . . . . . :   25        
 Control  . . . . .   +1                  Column . . . . . :   1         
 Find . . . . . . .                                                       
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....
CLP       ­­text/html                                                  

https://172.22.48.19:7003/PC902st.clp   doesn’t work.
 
If I change the URL extention to RPGLE (even though it is a CLP) it works.
 
https://172.22.48.19:7003/PC902st.rpgle   does work.
 
Any ideas?
 
Thanks,
Jim 

Niels Liisberg

Sat, 07/28/2012 - 00:00

Hi Jim;

By default the .CLP suffix is reserved in a new installation of IceBreak for Microsoft Movie Clip: 'application/x-msclip'. However I remember that we had a go to meeting session, where we changed the mime type for CLP on your IBMi. You asked about running CLP in IceBreak, and You can still do that by entering the following:

ADDICEMIME SUFFIX(CLP) MIMETYPE('text/html') PGMCALL(*PGM)

.. Option 62 on the GO ICEBREAK main menu.

You can add any suffixes you like; with your default mime type and the behavior of running programs. If you have an IceBreak program that returns PFD files, you can do:

ADDICEMIME SUFFIX(PDFPGM) MIMETYPE('application/pdf') PGMCALL(*PGM)

However the JIT compiler only kicks in for CBLLE,RPGLE,ASPX,ASP,CPP so for other extension you need to use the normal IBMi compiler like CRTCLPGM, to create you programs.

It is the PGMCALL(*PGM) that triggers IceBreak to route the request to the application server and let the application handle the request and produce the response.

Btw ADDICEMIME adds new mime types or replaces the mime type if it already exists.

Best regards,
Niels Liisberg