Previous Topic: MARK STATUS ConsiderationsNext Topic: CA Ideal Users and Systems


How to Modify or Delete a Production Version

Because you cannot modify or delete a version that is in production status directly, you must use the following procedures to modify or delete the production version of a definition.

Note: You can delete SQL dataviews and unmodeled sequential file dataviews directly, even though they are in production status. You cannot duplicate them using the NEXT VERSION option.

To Modify a Production Version

To modify a product version

  1. Make a duplicate copy of the production version by entering the command:
    DUPLICATE definition‑type definition‑name [NEXT VER]
    

    This next version of the definition is in test status.

  2. Make the changes to the new version using the EDIT command.
  3. Make the new version the current production version as follows:
    MARK STATUS definition-type definition-name TO PROD
    

    This statement also marks the current production version to history.

To Delete a Production Version

To delete a production version:

  1. Retire the production version to history as follows:
    MARK STATUS definition-type definition-name TO HIST
    
  2. Delete the history version using the DELETE command:
    DELETE definition‑type definition‑name version nnn
    

The status of a version usually is marked from production to history just before it is deleted. If you replace a production occurrence with a new production version, it is not necessary to first mark the current production version to history.

How to Set a Default Version

The version of a program, panel, or report that is used when you do not specify a version clause in a command or when the version entry is omitted in a prompter is determined as follows:

Note: Some commands (such as DELETE) require a version clause.

For CA Datacom native access dataviews and sequential and VSAM file dataviews

A SET [SITE] DATAVIEW VERSION command, which usually sets PROD as the default, determines the default version of a dataview used as a program resource. The SET [SITE] VERSION command, which usually sets LAST as the default, specifies the default version of a dataview specified by commands such as EDIT, DISPLAY, and PRINT.

For SQL dataviews

Only one version is assigned; version 1 in production status. You cannot set the default version.