Focal Point
[SOLVED] Passing PARM to Foexec

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

October 05, 2008, 08:55 PM
<dsilvag>
[SOLVED] Passing PARM to Foexec
How do I pass a PARM from MVS JCL to a FOCUS exec. Like //FOCBATCH EXEC PGM=FOCUS,PARM='ABCDXYZ'
In the focexec pick up MYPARM=ABCDXYZ

This message has been edited. Last edited by: Kerry,
October 05, 2008, 09:37 PM
j.gross
No. You have to find a way to imbed the value in the Focus code (SYSIN), or in a dataseet (where your Focus code can access is via Table or -READ).

Your installation may have a utility that transcribes its parameters to card images in a dataset. If so, you can set that up as a prior jobstep, and pass the 'card deck' dataset into the Focus step.


- Jack Gross
WF through 8.1.05
October 06, 2008, 03:00 AM
<JG>
//FOCUS EXEC PGM=FOCUS
//STEPLIB DD DSN=FOCUS.FOCLIB.LOAD,DISP=SHR
//ERRORS DD DSN=FOCUS.ERRORS.DATA,DISP=SHR
//SYSPRINT DD SYSOUT=A
//OFFLINE DD SYSOUT=A
//MASTER DD DSN=MASTER.DATA,DISP=SHR
//FOCEXEC DD DSN=FOCEXEC.DATA,DISP=SHR
//SYSIN DD *
EX fexname MYPARM='ABCDXYZ'
FIN

//*

That's a very basic example, Obviously your JCL for actually calling Focus will be
very different
October 07, 2008, 04:52 PM
Waz
This question has been asked before.

Have a look here


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!