COMPILE - compiling a B program in batch.

Description:

Basic JCL to compile and execute a B program in batch looks like this.

$	IDENT	userid,banner
$	LOWLOAD
$	PROGRAM	B,LSTIN
$	SELECT	B/COMPILE
$	PRMFL	S*,R,S,userid/sourcefile
$	SELECT	B/EXECUTE
	<your data>
$	ENDJOB

If the source file has no lines longer than 80 characters, it is possible to include the source in the program deck rather than using the $PRMFL card. This inclusion would normally be done using a $$SELECT card. If the source contains non-BCD characters (e.g. "{" instead of "$(") it will be necessary to surround the source with $ASCII and $ENX cards, as in

$	IDENT	userid,banner
$	LOWLOAD
$	PROGRAM	B
$	SELECT	B/COMPILE
$	ASCII
main() {
    printf("Hi there*n");
    exit();
}
$	ENX
$	SELECT	B/EXECUTE
$	ENDJOB

See Also:

expl b batch options
for a list of the options that may be specified on the $PROGRAM B card.
expl b batch load
for more information about loading in batch.

Copyright © 1996, Thinkage Ltd.