Created On: 25 January 2011
Problem:
How do you call the DFCONV utility from a JCL batch job running in Enterprise Server?
Resolution:
It is not possible to call DFCONV directly from JCL, however you can write a program that uses CBL_EXEC_RUN_UNIT to run dfconv. The impotant thing to consider when doing this is that dfconv outputs status messages to the screen. As JCL jobs cannot output to the screen, dfconv will return errors unless you use the -d option to suppress output.
A typical command string passed to CBL_EXEC_RUN_UNIT would look something like this:
MOVE "dfconv profile.pro -d" TO command-line
If you want to get the return code from dfconv to ensure that it ran successfully then you need to ensure that bit zero of the flags parameter for CBL_EXEC_RUN_UNIT is set to 1.
A typical command string passed to CBL_EXEC_RUN_UNIT would look something like this:
MOVE "dfconv profile.pro -d" TO command-line
If you want to get the return code from dfconv to ensure that it ran successfully then you need to ensure that bit zero of the flags parameter for CBL_EXEC_RUN_UNIT is set to 1.
Incident #2497401
Old KB# 33072
#EnterpriseDeveloper
#MFDS