Date: Wed, 14 Apr 1999 21:41:51 +0100
Reply-To: Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Subject: Re: Hardcopies of catalog output entries (VAX VMS)
In-Reply-To: <s7149c25.062@THIOKOL.COM>
For anyone who needs, or would benefit from catalog access method on SAS
v6.09E on MVS or OS/390
see the ftp://ftp.sas.com/techsup/download/technote area, in particular
ts556.txt
or see http://www.sas.com/techsup/download/technote/ts556.html
TS-556
CATALOG, FTP, and SOCKET Access Methods for 6.09E, MVS
The CATALOG, FTP, and SOCKET Access Methods are available in TSLEVEL
455 of Release 6.09E on MVS via the FILENAME statement. This initial
implementation has an experimental status and will be replaced by the
"XX" AMS Access Methods in a future release of The SAS System.
The remainder of the TSnote describes the syntax of each of these
methods and provides examples.
The catalog access method section gives
Syntax
FILENAME fileref 'pgm=sasreadc' pgmparm = 'filename';
where:
fileref is any valid SAS name.
filename is the name of a catalog entry (must be four
level name).
EXAMPLE 1: Creating a Source Entry
filename myfile 'pgm=sasreadc' pgmparm='sasuser.profile.write.source';
data _null_;
file myfile;
put 'source statements';
run;
EXAMPLE 2: Using %INCLUDE to Submit Source Code from a Catalog Entry
filename dir 'pgm=sasreadc' pgmparm='sasuser.profile.write.source';
%include dir;
James R. Donat <DONATJR@THIOKOL.COM> writes
>I recently posted a question on how to copy a catalog entry of type OUTPUT to an
>external file in SCL using SAS 6.09E on VAX VMS (which can then be printed out
>using a system command). I got four solutions on doint this, and I'm sharing
>them here in hopes that someone else will benefit from them. The solutions are
>summarized below:
>
>
>
>(4) data step
>
>Thanks go to Ian Whitlock for this one. This works great if your release of SAS
>supports the catalog option in the filename statement (which Release 6.09E does
>not). The code Ian used is:
>
> %macro copyout ( entry= ) ;
> filename in catalog "lib.cat.&entry..source" ;
> filename out "..." ;
--
Peter Crawford