SAS Institute. The Power to Know

SAS(R) 9.2 Publishing Framework: Developer's Guide

Previous Page | Next Page

Publishing Packages

RETRIEVE_FILE



Retrieves an external binary or text file from a package
Syntax
Arguments
Details

Syntax

CALL RETRIEVE_FILE(entryId, filename, rc);

Arguments

entryId

identifies the file entry.

Type: Numeric
Direction: Input
filename

specifies the name of the file or fileref, using the following syntax:

  • FILENAME: external_filename

  • FILEREF: SAS_fileref

Type: Character
Direction: Input
rc

receives a return code.

Type: Numeric
Direction: Output

Details

Specifying "FILENAME:" , without a filename, applies to the retrieved file the same name that was used when the file was initially inserted into the package.The following example retrieves a binary file from a queue.

fname = "filename: /users/jsmith.bin";
CALL RETRIEVE_FILE(entryId, fname, rc);

Previous Page | Next Page | Top of Page