Showing results for 
Search instead for 
Do you mean 

redirect compile to file

Advisor

redirect compile to file

hi,
I am compiling a program in Cobol that uses a udc that has "list=$stdlist" in the command line of the udc among others. How do I compile the program, but send the output to a file instead of the screen? I have tried
cobol program,list=*output
where output is defined as a disc file (file output;dev=disc)...
6 REPLIES
Frequent Advisor

Re: redirect compile to file

You don't say what version of MPE you are using. Try "coblist=*output". Make sure "output" is defined before the compile. Did you provide a file a name and path?

Additional info: http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01710995/c01710995.pdf

Page H-7 defines listfile parameter.
Advisor

Re: redirect compile to file

thank you, I'll try this. Yes, I provided a file name and path.
Acclaimed Contributor Acclaimed Contributor

Re: redirect compile to file

You'll need to provide more details on your UDC. I assume eventually it invokes the COB85XL command?

>Gary: Try "coblist=*output"

This probably won't work unless you are invoking the compiler directly since COB85XL will also set that file equation.
Frequent Advisor

Re: redirect compile to file

Dennis- Acording to the manual, the default for COBLIST is $STDLIST. "language" wants to route the output to a disk file, instead of the screen, so the default would have to be overridden.
Acclaimed Contributor Acclaimed Contributor

Re: redirect compile to file

>Gary: so the default would have to be overridden.

The only way to override the default is to pass in parms to COB85XL:
http://docs.hp.com/en/32650-90873/ch01s01.html#d0e1410
COB85XL source, object, *output

Or see "Compiling, Linking, and Executing Programs" p H-4 through H-7 in your above URL.
Highlighted
Advisor

Re: redirect compile to file

Thank you both. I'll let you know how it goes.