Editing the Job Definition Source 
Depending on the job definition type and your license, you can edit the source of the job definition.
The following job definition types allow you to specify a source, if the corresponding license key is enabled:
BASH - For writing Bourne Again SHell (see the documentation shipped with SAP CPS for more information on this feature) scripts. BASH is installed on all Linux systems and optionally on all UNIX (compatible) platforms that SAP CPS runs on.
CSH - For writing C Shell (see the documentation shipped with SAP CPS for more information on this feature) scripts. Available on most UNIX systems.
KSH - For writing Korn Shell (see the documentation shipped with SAP CPS for more information on this feature), for job definitions that run on UNIX (compatible) servers.
PERL - For writing Perl (see the documentation shipped with SAP CPS for more information on this feature) scripts.
PERL (Unicode) - For writing Perl (see the documentation shipped with SAP CPS for more information on this feature) scripts with UNICODE characters in your script source.
CMD - For writing Microsoft Windows Command (see the documentation shipped with SAP CPS for more information on this feature) scripts.
PS1 - For writing Microsoft Windows PowerShell language (see the documentation shipped with SAP CPS for more information on this feature) scripts. PowerShell is available as a download for Microsoft Server 2003, XP and Vista and is delivered with Microsoft Server 2008.
VBScript - For writing Microsoft Windows Visual Basic Script (see the documentation shipped with SAP CPS for more information on this feature) job definitions.
RedwoodScript - The RedwoodScript job definition type allows you to write server based scripts that interact with the repository using the RedwoodScript language.
JCL_FTP - For writing JCL scripts submitted via FTP (see the documentation shipped with SAP CPS for more information on this feature) to remote IBM zSeries servers running the MVS or z/OS operating system controlled by JES2 or JES3.
JCL - For writing JCL scripts (see the documentation shipped with SAP CPS for more information on this feature) submitted to IBM zSeries servers via a Redwood native agent.
The library allows you to use your classes across all job definitions, which is especially useful for RedwoodScript job definitions. It can also be used for parameter validation, you need to setup Redwood Expression Entry points in the library for the methods you would like to expose to Redwood Expression Language. See the Redwood Expression Language for more information.
Some job definition types allow you to specify a user under which the code in the job definition is executed, the user needs to exist and not be locked for the code to be executed on the target system.
SAP recommends the use of Credentials as you only have one object to change when the password changes, for example. When you use credentials there must be a credential for the user or virtual user on the node, also known as endpoint, where the job is running. See the Assign Users from External Platforms to Jobs with Credentials section for more information.
The source tab contains the following fields:
Field |
Description |
Default Value |
Type |
The job definition type |
|
Library |
The library containing your JAVA classes |
Custom |
Run As User |
The user that will execute the source on the process server |
|
Source |
The code to be executed |
The following job definition types do not allow you to change/edit the source code:
JOBCHAIN
JXBP
SAPPI
SAPR3
SYSTEM