Focal Point
[SOLVED] Executing a maintain procedure

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9187055766

February 28, 2014, 11:31 AM
Jay Potter
[SOLVED] Executing a maintain procedure
I am trying to execute a Maintain procedure from a webfocus report. I created all commands via dev studio not maually. I appears that via the Dev Studio, the procedure has to reside within your content folders, so I copied it from the edaserve to the same content folder as the report. I get the following error. The procedure does work when running it via Maintain.

(FOC224) SYNTAX ERROR: /
------------v
PREPENDPATH /WFC/Repository/HomeRoom/PortalIT


 

TABLE FILE CAR
PRINT
     MODEL
     BODYTYPE
     SEATS
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=REPORT,
     URL=/ibi_apps/WFServlet?( \
     IBIF_cmd='MNTCON RUN /WFC/Repository/HomeRoom/PortalIT/ibusersstart.mnt' \
     IBIS_passthru='on' \
     IBIS_connect='on' \
     IBIAPP_app='' \
     IBIC_server='EDASERVE' \
     ),
$
ENDSTYLE
END

 

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
March 11, 2014, 08:23 AM
Maintain Wizard
Jay
I am not sure why the PATH to the Maintain application is causing an error. Can you try this instead?

Add the project name into the IBIAPP_app parameter and just have the MNTCON RUN command perform the mnt file:

TYPE=REPORT,
URL=/ibi_apps/WFServlet?( \
IBIF_cmd='MNTCON RUN ibusersstart.mnt' \
IBIS_passthru='on' \
IBIS_connect='on' \
IBIAPP_app='PortalIT' \
IBIC_server='EDASERVE' \
),
$
ENDSTYLE

If PortalIT is not the name of the project, edit the IBIAPP_app line and put in the corrent one. Also, if the Maintain procedure is not compiled, change the MNTCON RUN to an MNTCON EX.

Mark
March 11, 2014, 09:54 AM
Jay Potter
Thanks!!

That definitley helped. Now I am getting a (FOC03849) Compiled maintain image not loadable: ibusersstart.mnt error, I need to look into.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
March 11, 2014, 09:57 AM
Maintain Wizard
Jay
That error is probably because you have a .MNT file and not a .FCM file. Change:
MNTCON RUN ibusersstart to MNTCON EX ibusersstart. You can remove the .mnt from the command.

Mark