I just want to know if someone out there have experienced running cobol routines from web focus. We have a webfocus reporting server on windows and we are using an eda adaptor to connect to our alpha machine. I can run a regular focus with no problem but I dont know how what to use/syntax for calling a cobol routine. I tried most of the examples from the manual but nothing seems to work. Thanks.This message has been edited. Last edited by: Kerry,
September 01, 2004, 04:36 PM
David Sibert
Be of good cheer.
I am running WebFocus 4.3.6 and 5.2.5 and MVS 7.1.1 and 7.2(a).
With this said. I need to know how your environment is set up. At present I am running Webfocus that uses Cobol programs to Update/Insert into multiple DB2 databases and JCL to run other applications on the Mainframe.
So with a little bit more information I can point you in the correct direction.
Regards,
September 28, 2004, 08:17 PM
<Mike Miles>
Can you provide code examples of how you execute a COBOL program and submit JCL via WebFOCUS? Thanks.
September 29, 2004, 12:21 AM
<Pietro De Santis>
Modify the following example. This is assuming you have a JCL example on how to call a cobol program...
but when I run it, it doesn't like the TSO statements. What am I missing?
October 07, 2004, 05:40 PM
<Pietro De Santis>
This is all from so long ago. Are you in a TSO environment on the mainframe?
Try this, it's subtly different - it uses DYNAM ALLOC instead of TSO ALLOC. If I remember correctly, the -? TSO DDNAME command sets the environment variable &DSNAME so that the TSO SUBMIT can run correctly.
-SET &PROC = IF &&MM EQ '01' THEN 'SI920' ELSE 'SI921';
SQL DB2 SET AUTOCOMMIT ON FIN SQL DB2 SET PLAN DB2Named plan -RUN -******************************************************************** -*INVOKE COBOL PROGRAM -********************************************************************
To issue a TSO command such as submit, you need to prefix TSO with a dash.
-TSO SUBMIT(jclfile)
The same goes for any other OS command -DOS... -UNIX...
but as David pointed out - using the DYNAM command should work just fine, and would work from a batch environment as well.This message has been edited. Last edited by: Gizmo,
Windows: WF 7.6.2: SQL Server 2008 R2
May 02, 2011, 06:39 AM
Vinay Kumar
Hi All,
I know this is an old topic! I tried this code but i am getting an error.
Find the error in the below screenshot.
Could anyone help me.
WebFOCUS 7.6.4, Mainframe Focus Windows XP, All Output Formats
May 02, 2011, 07:59 AM
FrankDutch
I suppose you are running on windows
TSO is not a windows/dos command
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
May 02, 2011, 08:04 AM
Vinay Kumar
Ya Frank, i am running on windows.
how to make the code run in windows?
WebFOCUS 7.6.4, Mainframe Focus Windows XP, All Output Formats
May 02, 2011, 12:20 PM
<JG>
You cann't.
A windows WebFOCUS server cannot run a mainframe COBOL or any other type of mainframe procedure.
If you have remote server configured on the mainframe that the Windows WebFOCUS server can use thne you may have possibilities using -REMOTE BEGIN/END
Otherwise no chance
May 02, 2011, 11:34 PM
Vinay Kumar
JG, i do have remote server configured, i will try REMOTE BEGIN/END and let you know my output.
WebFOCUS 7.6.4, Mainframe Focus Windows XP, All Output Formats
May 04, 2011, 06:53 PM
Jim Morrow
If you use Micro-Focus COBOL (no relation to Information builders) to create a .exe. This can be called as a subroutine.
At least you could do this with FOCUS 6 for windows.
That was so long ago, I am not even going to look for an example. Because I am sure it is long gone.
Jim Morrow Web Focus 7.6.10 under Windows 2003 MVS 7.3.3