Please enable JavaScript to view this site.

CopiaFacts™ Reference Manual

Clone and Create a Jobtype folder and JOBTYPE.UJP


 

Inputs:  Parm1 = source UJP path, relative to USERJOBS
         Parm2 = new jobtype folder name [| jobtype name]

Outputs: Parm1 = full path to created JOBTYPE.UJP

Returns:  0 = success
         -1 = owner does not exist
         -2 = folder already exists
         -3 = unable to create folder
         -4 = cannot write UJP file
         -5 = cannot lock owner file
         -6 = jobtypes not permitted for this system
         -7 = jobtypes not permitted for this owner
         -8 = cannot find/open source UJP
         -9 = invalid Parm2

This function creates a jobtype folder and a JOBTYPE.UJP file cloned from the source. If the vertical bar character and the jobtype name are not supplied, the folder name will be used for the new jobtype name.