Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 23 Processing COBOL Programs : Preparing the Program

Preparing the Program
Steps Required
Complete the following tasks to preprocess the program before executing it:
1.
2.
3.
4.
 
Task A Call HLIPREPROCESSOR with the appropriate arguments
The following options are available to you to run the HLIPREPROCESSOR tool:
Ex execute rule ==> HLIPREPROCESSOR<Enter>
A screen appears where you enter values for its arguments.
Call HLIPREPROCESSOR from within a rule, for example:

 
HLI_TEST;
------------------------------------------------------------------------------------
CALL HLIPREPROCESSOR('COBOL', 'HURON', | 1
'HR01.COBOL.SRCIN(COBOST1)','HR01.COBOL.SRCOUT(COBOUT1)', |
'HLL.HLLLIST','ERRORSTOP'); |
----------------------------------------------------------------------------

 
Call HLIPREPROCESSOR from within JCL using the RULE=rulename statement, for example:
RULE=HLIPREPROCESSOR('COBOL','SQL','HUR01.COBOL.SRCIN(COBSQL1)', 'HUR01.COBOL.SRCOUT(COBOST1)','','');
Refer to the members JCLOSTMT and JCLSQL in the JCL data set for sample RULE=HLIPREPROCESSOR statements coded into JCL.
Task B Compile and link the program
Compile and link the program. Refer to the members JCLOSTMT and JCLSQL in the JCL data set for sample JCL to assist you in this procedure.
Task C Place the executable code in a load library
Place the compiled and linked code load module into a library concatenated to the DD statement HRNEXTR.
Task D Identify the program to TIBCO Object Service Broker
You must identify the program and its load module name to TIBCO Object Service Broker through an entry in the ROUTINES table. If the program has arguments, specify these in a table instance of the ARGUMENTS table. You must have adequate security clearance to insert data into these tables before editing them.
Refer to Identifying Your External Routine to TIBCO Object Service Broker for information about the ROUTINES and ARGUMENTS table.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved