3 10 Restore a Function s Definition from Backup Media

LANSA Open System Utilities

3.10 Restore a Function's Definition from Backup Media

Functional Description

The files listed below are restored into temporary files in QTEMP from the specified backup media.

The records relating to the user specified function, in the specified process and partition, are copied from the temporary files in library QTEMP into the corresponding LANSA data library files.

This effectively redefines the function to LANSA.

Note: Only the definition is restored. The function will need to be recompiled before it can be executed.

 

Name

OS@P0010

Type

Control Language Program

Source provided

Yes

 

  

Files Used

DC@F02

System Security

DC@F04

Help Text Storage

DC@F20

Module Definition

DC@F21

Module File Usage

DC@F23

Module Format Definition

DC@F25

Process Field Usage

DC@F29

Function Control Commands

DC@F30

Function Control Parameters

DC@F40

Process / Function Field Definition

DC@F63

Multilingual Extension of DC@F04

DC@F66

Multilingual Extension of DC@F20

DC@F67

Multilingual Extension of DC@F23

DC@F85

Miscellaneous Function Details

  

Warnings That Apply

  • <<osulib>> must be in the library list when running this job.
  • The partition specified must exist.
  • The process specified must exist.
  • The function specified must not exist.
  • This routine does not do any security checking.
  • Job best run interactively.
  • Definition only - not compiled objects.

Parameters

No

Type

Len

Dec

Description

1

Alpha

4

 

Type of backup media (TAPE, SAVF).

2

Alpha

10

 

Name of device / save file name.

3

Alpha

10

 

Save file library.

4

Alpha

3

 

Name of partition where process resides.

5

Alpha

10

 

Name of process to be restored.

6

Alpha

7

 

Name of function to be restored.

 

  

Examples

Restore function FUNC001 from process TEST01 from partition DEM from tape device TAP01

CALL OS@P0010 (TAPE TAP01 ' ' DEM TEST01 FUNC001)

Restore function FUNC002 from process TEST01 from partition DEM from save file SAVEDATA in library <<comlib>>

CALL OS@P0010 (SAVF SAVEDATA <<comlib>> DEM TEST01 FUNC002)