Re: redirect compile to file (250 Views)
Reply
Advisor
language
Posts: 32
Registered: ‎08-19-2010
Message 1 of 7 (250 Views)

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)...
Frequent Advisor
Gary Tinnes
Posts: 30
Registered: ‎07-12-2000
Message 2 of 7 (250 Views)

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
language
Posts: 32
Registered: ‎08-19-2010
Message 3 of 7 (250 Views)

Re: redirect compile to file

thank you, I'll try this. Yes, I provided a file name and path.
Acclaimed Contributor
Dennis Handly
Posts: 25,058
Registered: ‎03-06-2006
Message 4 of 7 (250 Views)

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
Gary Tinnes
Posts: 30
Registered: ‎07-12-2000
Message 5 of 7 (250 Views)

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
Dennis Handly
Posts: 25,058
Registered: ‎03-06-2006
Message 6 of 7 (250 Views)

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.
Advisor
language
Posts: 32
Registered: ‎08-19-2010
Message 7 of 7 (250 Views)

Re: redirect compile to file

Thank you both. I'll let you know how it goes.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.