You can call your QUIZ UDC or command file from a COBOL program using
the HPCICOMMAND intrinsic. This works for command files and for
UDC's as well. Pass the name of your executable to QUIZ using
the AUTO= option of the ;INFO parameter.
This works better than creating a process that runs the QUIZ program,
because the QUIZ UDC does a lot more than just run the program.
Also, I think your COBOL program will need to be in a group with
PH capability to do this.
I hope this helps. I'll be glad to give you more information if
you need it.
--Ken Kirby
Vanderbilt University
_______________________________________________________________________
Don Paterwic wrote:
>
> can this be done? I have a cobol program that need to get a
> unique identifier, one that is already generated on the system
> by a quiz program (if I can use it I don't need to worry about
> logic to replicate number). Is it posssible to call this quiz
> program (executable) from a cobol program and use quizes output
> result to a file? Thanks