Modifying Source Code

Source Codes belong to the Program definition. You must check out the definition to add, remove, or update Source Codes.

If a Source Code object has a value in its Shared From column, it is an instance of a Source Code definition in another Program. You can modify only a few of its properties; see Source Code Instance.

If a Source Code object does not have a value in its Shared From column, it's definition was created in this Program. You can modify all its properties here; see Source Code Definition.

Source Code Instance

You can modify the Source Code name, description, definition source, order, SAS file reference name (if a SAS Program), instance subtype and instance classifications. You can upgrade to a different version of the Source Code definition; see Upgrading Source Code And Undoing Source Code Upgrades.

If you have the necessary privileges, you can go to the Program definition that contains the Source Code definition (it is listed in the Shared From column) in the Definitions subtab and modify it there, creating a new version. You must then change the definition source for the Source Code instance in this Program to the new version.

Source Code Definition

If the Source Code definition was created in this Program (in which case there is no entry in the Shared From column) the Source Code definition is located in this Program definition, and you can modify it here.

You can edit the actual source code, either in the Editor box or by modifying the file in its development environment (such as SAS) and then uploading it again. You can also change the other Source Code definition properties: File Type, Sharable, Subtype, and classifications.

When you save your changes to a sharable Source Code definition, you have the option to find all instances of the original sharable Source Code and decide whether or not to update them to the new version of the Source Code. See Upgrading One or More Instances from the Definition for further information.