This chapter is not intended to give a full description of the TASK macro, for which see the relevant manual, but to enable the user to compile and test a PLASYD program using, as far as possible, the default options of the TASK macro.
(a) TASK PLASYD, *CR PROG 1
This call of the TASK macro may be included in a job deck or macro definition, or may be typed on a MOP console. In the latter case the macro will run a background job and return control to the user. This job will send broadcasts back to the user to inform him of its progress, and will send its output to the lineprinter. It will attempt to compile the source file PROG 1 using the PLASYD compiler, and if this is successful, will attempt to consolidate the semicompiled. If this in turn is successful it will enter the binary. At this point the binary will have LP0 assigned to a workfile, which will be listed on the lineprinter. If the program requires data, this may be placed in a file called PROG 1-DAT, (sourcefile name plus -DAT,) which will automatically be assigned to CR0.
(b) TASK PLAS, *CR PROG 2, SAVE, NORUN
This is similar to (a), except that the resultant binary (if any) will be saved in a file called PROG 2-BIN, and will not be run. Note the abbreviation PLAS.
(c) TASK PLAS, *CR PROG 3, COMP, NOCONS
This call will produce a semicompiled file called PROG 3-SEM, and will not attempt to consolidate it. This form can be used if the sourcefile contains subroutines which are to be used by a FORTRAN program, for example. If the FORTRAN sourcefile is called KYPROG, it may now be compiled and tested, with the PLASYD subroutines, by the call:
TASK FORTRAN, *CR MYPROG, SEMI PROG 3-SEM, LINK
If the PLASYD facility PUBLICFILE is used, the required direct access file may be presented to the compiler by including the TASK parameter
*??(AS *DA12, PUBSOURCE)
where PUBSOURCE is the filename. If MACROFILE is used, the parameter is
*??(AS *DA13, filename}
and for READ FROM it is
*??(AS *DA14, filename)
Most users, however, should never need to use these facilities, as program source-code is more conveniently held in GEORGE serial files than in direct access files.