NAME
Get-SasFileRef
SYNOPSIS
Gets a SasFileRef object from a SAS workspace.
SYNTAX
Get-SasFileRef [-Workspace] <PSObject>
[<CommonParameters>]
Get-SasFileRef [-FileRefName] <String>
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Workspace <PSObject>
SAS.Workspace object
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-FileRefName <String>
Name of the SAS fileref you want to use
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters:
Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction,
WarningVariable,
OutBuffer and OutVariable. For more
information, see
about_CommonParameters
(http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------- Example 1 --------------
PS C:\> $ws = Connect-SasWorkspaceLocal
# allocate fileref via sas code
Invoke-SasCode $ws "filename myfilref
'C:\folder\file.txt';"
# get fileref object from workspace
$fileref = Get-SasFileRef $ws "myfilref"
allocate the fileref via sas code and get the
object with the Get-SasFileRef Commandlet
RELATED LINKS