Date: Thu, 2 Mar 2000 20:53:55 GMT
Reply-To: sashole@mediaone.net
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul Dorfman <paul_dorfman@HOTMAIL.COM>
Subject: Re: %INCLUDE from SAS WORK? (MVS)
Content-Type: text/plain; format=flowed
Peter,
You are correct, the feature is also available for S/390, but its
implementation looks rather kludgy:
1 filename x 'pgm=sasreadc' pgmparm='work.include.inc.source';
2 data _null_;
3 file x;
4 put "put ':-) ;-) :-( ;-(';";
5 run;
WARNING: This is an experimental version
which will be replaced by XX AMS in Version 7
NOTE: The file X is:
(no system-specific pathname available),
(no system-specific file attributes available)
NOTE: 1 record was written to the file X.
The minimum record length was 22.
The maximum record length was 22.
NOTE: The DATA statement used 0.02 CPU seconds and 3608K.
6 filename d 'pgm=sasreadc' pgmparm='work.include.inc.source';
7 data _null_;
8 %include d;
WARNING: This is an experimental version
which will be replaced by XX AMS in Version 7
10 run;
:-) ;-) :-( ;-(
NOTE: The DATA statement used 0.01 CPU seconds and 3294K.
I am not at all sure whether or for what reason I should prefer all this
stuff to the simple and bulletproof
19 filename t '&t';
20 data _null_;
21 file t;
22 put "put ':-) ;-) :-( ;-(';";
23 run;
NOTE: The file T is:
Dsname=SYS00062.T154114.RA000.UUNVP2D.T.H02,
Unit=3390,Volume=SSHR98,Disp=NEW,Blksize=27920,
Lrecl=80,Recfm=FB
NOTE: 1 record was written to the file T.
NOTE: The DATA statement used 0.02 CPU seconds and 3317K.
24 data _null_;
25 %include t;
27 run;
:-) ;-) :-( ;-(
Maybe in V8 it looks much more elegant, but I won't be able to tell until
after April, unless some kind sasoul will share the already acquired V8
wisdom.
P.S. It just occurred to me that there are notable distinctions between
"sashole", "sasoul", "sashaul", and "sasole", do not you think? Just a side
note.
Kind regards,
======================
Paul M. Dorfman
Jacksonville, Fl
======================
>From: Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
>Howard Schreier <Howard_Schreier@ITA.DOC.GOV> writes
> >Demonstration of catalog access method and %include.
> >
> >This was run using V 6.12 on Win98, but it the code ought to be
> >platform independent.
> >
> >26 filename democam catalog 'work.anything.output';
> >27
> >28 data _null_;
> >29 file democam;
> >30 put 'put "putput";' ;
> >31 run;
> >
> >NOTE: The file DEMOCAM is:
> > Catalog Name=WORK.ANYTHING.OUTPUT.CATAMS,
> > Catalog Page Size=4096,
> > Number of Catalog Pages=6,
> > Created=14:02 Thursday, March 2, 2000,
> > Last Modified=14:04 Thursday, March 2, 2000
> >
> >NOTE: 1 record was written to the file DEMOCAM.
> > The minimum record length was 13.
> > The maximum record length was 13.
> >NOTE: The DATA statement used 0.0 seconds.
> >
> >
> >32
> >33 data _null_;
> >34 %include democam;
> >36 run;
> >
> >putput
> >NOTE: The DATA statement used 0.05 seconds.
>
>
>Unfortunately the catalog access method is experimental on os390/mvs
>
>The syntax is different, but the principles are the same.
>I haven't tested it for this objective, but....
>for details of the syntax see
>ftp.sas.com /techsup/download/technote/ts556.txt (and .html)
>
>TS-556
>CATALOG, FTP, and SOCKET Access Methods for 6.09E, MVS
>
>--
>Peter Crawford
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|