Chapter Contents

Previous

Next
The GREPLAY Procedure

TCOPY Statement


Copies templates from another catalog to the template catalog or creates a duplicate copy of a template within the template catalog.

Requirements: Assign a template catalog before using the TCOPY statement.
See also: TC statement



Syntax

TCOPY <template-catalog.>template-entry<.TEMPLATE>;


Required Arguments

<template-catalog.>template-entry<.TEMPLATE>
identifies the template entry that is to be copied.

template-catalog
is the SAS catalog that contains the template that is to be copied.

template-entry
is the template entry name.

TEMPLATE
is the catalog entry type. If a template of the same name already exists in the template catalog, the GREPLAY procedure creates a new name.
See also: Duplicate Entry Names


Details

To copy a template from another catalog to the template catalog, specify template-catalog as the catalog from which the template should be copied. For example, if you want to copy NEWTEMP.TEMPLATE from the catalog named ONE.TEMPLT to the catalog named TARGET.TEMPLT, use the following statements:

libname target 'SAS-data-library';
libname one 'SAS-data-library';

proc greplay nofs;
   tc target.templt;
   tcopy one.templt.newtemp.template;
quit;

To create a duplicate copy of a template, simply omit template-catalog from your TCOPY statement. For example, to create a duplicate copy of a template named NEWTEMP within the template catalog, you could use the following statement:

tcopy newtemp.template;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.