c_setprt - Sets integer values from the print parameter

SYNTAX

#include "worgen.h"

FUNCTION c_setprt (vblock, term, file, lp, prtfile, filename)

     struct PARBLK      *vblock;
     long               *term;
     long               *file;
     long               *lp;
     char               *prtfile
     char               *filename

PARAMETERS

vblock (input, PARBLK)

TAE parameter block passed by reference. It is assumed that TAE has been initialized prior to calling c_setprt().

term (output, integer)

Integer flag set if the user has specified TERM as one of the print values.
     = 0: Terminal was not specified in print
     = 1: Terminal was specified in print

file (output, integer)

Integer flag set if the user has specified a filename as one of the printvalues.

     = 0: A filename was not specified in print
     = 1: A filename was specified in print

lp (output, integer)

Integer flag set if the user has specified LP as one of the printvalues.

     = 0: Line printer was not specified in print
     = 1: Line printer was specified in print

prtfile (input/output, character, length(CMLEN))

A filename should be input (normally the program name). The input filename will be returned with "xxxxxx.pr" (xxxxxx is a time stamp) appended to the end of it. This filename will also be placed in a local variable of the TAE parameter block called prtfile.

filename (output, character, length(CMLEN))

The filename specified by the user in the print parameter.

DESCRIPTION

The c_setprt() routine is used to set integer values from the print parameter. It is assumed the parameter vblock contains the TAE parameter print. It is also assumed the parameter vblock contains a local variable called prtfile. The filename returned to the local parameter will then need to be sent to the infile parameter of the routine fileutil.

RETURN VALUE

c_setprt() returns

     E_SUCC (0)  --> successful completion
     E_FAIL (-1) --> operation failed