Focal Point
[CLOSED] How to submit procedures to the report server within a procedure in WebFocus

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

November 19, 2014, 09:18 PM
Wilson
[CLOSED] How to submit procedures to the report server within a procedure in WebFocus
We are migrating from VMS focus to WebFocus

current vms focus code
TABLE FILE CLM00
PRINT CLAIM_ID
ON TABLE HOLD AS HEDR FORMAT FOCUS
END
-RUN
-* each of these procedures are dependent on the claim id from -* -* the hedr file
VMS SUBMIT CLMDIAG.FEX
VMS SUBMIT CLMPROC.FEX
VMS SUBMIT CLMSRVLINE.FEX
VMS SUBMIT CLMREV.FEX
VMS SUBMIT CLMBENE.FEX

The claim id in the Hedr is used to pull the detail date in the subsequent procedures that needs to be submitted right after the Hedr is done.
-include will take a lot longer.

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


VMS Focus
November 20, 2014, 12:20 AM
Ram Prasad E
You need to use INCLUDE or EX to call a fex file.
If you need to make a call to OS file then use -UNIX for unix or -WINNT for windows commands.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
November 20, 2014, 12:22 AM
jvb
Not sure if you want to execute the procedures,
you can use EX command in order to execute one procedure.Please refer to the help file for further description of EX procedure.

Thanks,
Vivek


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
November 20, 2014, 11:51 AM
Wilson
EX and -Include will work but will run the procedures one at a time. I need to run all of them at the same time so it will cut the overall run time. Thanks!


VMS Focus
November 20, 2014, 11:37 PM
Ram Prasad E
There could be OS command to get this. But you can also try with HTMLFORM and IFRAME. You can use 4 iframes and make call to each fex file. All 4 calls will run together.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
November 21, 2014, 09:19 AM
jgelona
Here are 3 other ways to run jobs concurrently.

First, set the 4 jobs up in report caster, you may have to let them run once. Get their schedule id and create a master to the Report Caster table BOTSIT. When you are ready to run, update the NEXTRUNTIME field for all 4 jobs and RC will submit them. It is a long story, but this is what we had to do when DSTRUN would not work in our new environment (confirmed bug with SOS using Kerberos).

If it works use set up the 4 jobs in report caster and use DSTRUN.

Create a script to run a job and in the script use edastart -f to run the programs. The advantage to this is that you can get all the messages that would normally go to the screen. -TYPE statements you may put in your code, output from -? &, records counts, etc.

We've done all 3.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.