Synopsis
Create a copy of an existing SAS Workspace
Syntax
Copy-SasWorkspace [-Workspace] <PSObject> [<CommonParameters>]
Description
Creates a new thread with separated WORK-Library from an existing Workspace. The new SAS session stays inside the same server process as the original SAS Workspace.
This method is faster than creating a second workspace by calling the Connect-Sas* cmdlets
Parameters
-Workspace <PSObject>
SAS Workspace object you want to clone.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
Inputs
Outputs
Notes
Examples
-------------- Example 1 --------------
PS C:\> $ws = Connect-SasWorkspaceLocal
$clone = Copy-SasWorkspace $ws;
# do some work with $ws and $clone
Disconnect-SasServer $clone;
Disconnect-SasServer $ws;
Create a second workspace