How do I perform a generate with DB2 bind under foreground Endevor, and display the bind commands to screen and save them in a listing ?
Batch runs fine and the bind commands are saved to file.
Under foreground, I can either display the bind commands to screen or save them in a listing. Is there a way I can both display and save them ?
One way to do this is to use the DSN trace stream. You invoke the trace stream using the DSNTRACE ddname in your CLIST or REXX used in the bind step (BC1PTMP0) in your Endevor processor. Please see the IBM DB2 documentaion for valid DB2 bind syntax with DSN tracing.
See CA Endevor Administoring Processors :